corp build fix

This commit is contained in:
tim
2025-02-17 11:02:48 -04:00
parent 9f0a4b3cca
commit 7d8dc550ba
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/src/.vitepress/cache /src/.vitepress/cache
/src/.vitepress/dist

View File

@@ -11,7 +11,7 @@ export default defineConfig({
[ 'link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }], [ 'link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }],
[ 'link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Victor+Mono:ital,wght@0,100..700;1,100..700&display=swap' }], [ 'link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Victor+Mono:ital,wght@0,100..700;1,100..700&display=swap' }],
], ],
transformHead() { transformHead({assets}) {
// put the path of local assets into the <head> // put the path of local assets into the <head>
let fontFile = assets.find(file => /forgotten_futurist\.\w+\.ttf/.test(file)) let fontFile = assets.find(file => /forgotten_futurist\.\w+\.ttf/.test(file))
// adjust the regex accordingly for new fonts // adjust the regex accordingly for new fonts
@@ -81,6 +81,7 @@ export default defineConfig({
}, },
}, },
// FFS I cannot stop markdown-it from rendering (c) as ©
markdown: { markdown: {
config: (md) => { config: (md) => {
md.disable(['replacements'], false) md.disable(['replacements'], false)