Skip to content

Commit

Permalink
Fix netlify build until its configuration is updated
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Dec 5, 2022
1 parent 82fcfa7 commit b28675c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions styleguide/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export default defineConfig({

srcDir: '../docs',
outDir: './build',
// TODO: configure netlify to use build dir as root, then remove this option & index.html
base: '/build/',

markdown: {
highlight: (str, language, attr) => `<pre ${attr} v-pre><code>${hljs.highlight(str, { language: language === 'vue' || language === '' ? 'xml' : language }).value}</code></pre>`
Expand Down
6 changes: 6 additions & 0 deletions styleguide/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<head>
<meta http-equiv="refresh" content="5; URL=/build/" />
</head>
<body>
<p>If you are not redirected in five seconds, <a href="/build/">click here</a>.</p>
</body>

0 comments on commit b28675c

Please sign in to comment.