Skip to content

Commit b534401

Browse files
DevMacDevMac
authored andcommitted
fix(docs): add site and base path for GitHub Pages
1 parent dbe204d commit b534401

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

docs-site/astro.config.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
import { defineConfig } from 'astro/config';
22
import starlight from '@astrojs/starlight';
3-
export default defineConfig({ integrations: [starlight({ title: 'Askbase Docs', social:{ github:'https://github.com/dsantoreis/askbase' } })] });
3+
4+
const isGitHubPages = process.env.GITHUB_ACTIONS === 'true';
5+
6+
export default defineConfig({
7+
site: 'https://dsantoreis.github.io',
8+
base: isGitHubPages ? '/askbase/' : '/',
9+
integrations: [
10+
starlight({
11+
title: 'Askbase Docs',
12+
social: { github: 'https://github.com/dsantoreis/askbase' },
13+
}),
14+
],
15+
});

0 commit comments

Comments
 (0)