Skip to content

Commit 2f9f524

Browse files
Fix base path for GitHub Pages
1 parent 2f23d3a commit 2f9f524

1 file changed

Lines changed: 22 additions & 21 deletions

File tree

astro.config.mjs

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
// @ts-check
21
import { defineConfig } from 'astro/config';
32
import starlight from '@astrojs/starlight';
43

5-
// https://astro.build/config
64
export default defineConfig({
7-
integrations: [
8-
starlight({
9-
title: 'My Docs',
10-
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
11-
sidebar: [
12-
{
13-
label: 'Guides',
14-
items: [
15-
// Each item here is one entry in the navigation menu.
16-
{ label: 'Example Guide', slug: 'guides/example' },
17-
],
18-
},
19-
{
20-
label: 'Reference',
21-
autogenerate: { directory: 'reference' },
22-
},
23-
],
24-
}),
25-
],
5+
site: 'https://tamarindmonkey.github.io',
6+
base: '/lan',
7+
integrations: [
8+
starlight({
9+
title: 'My Docs',
10+
social: {
11+
github: 'https://github.com/withastro/starlight',
12+
},
13+
sidebar: [
14+
{
15+
label: 'Guides',
16+
items: [
17+
{ label: 'Example Guide', slug: 'guides/example' },
18+
],
19+
},
20+
{
21+
label: 'Reference',
22+
autogenerate: { directory: 'reference' },
23+
},
24+
],
25+
}),
26+
],
2627
});

0 commit comments

Comments
 (0)