Skip to content

Commit 667a983

Browse files
committed
Fix netlify build until its configuration is updated
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
1 parent 3616674 commit 667a983

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

styleguide/.vitepress/config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export default defineConfig({
8787

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

9193
markdown: {
9294
highlight: (str, language, attr) => `<pre ${attr} v-pre><code>${hljs.highlight(str, { language: language === 'vue' || language === '' ? 'xml' : language }).value}</code></pre>`

styleguide/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<head>
2+
<meta http-equiv="refresh" content="5; URL=/build/" />
3+
</head>
4+
<body>
5+
<p>If you are not redirected in five seconds, <a href="/build/">click here</a>.</p>
6+
</body>

0 commit comments

Comments
 (0)