File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,20 @@ import { defineConfig } from 'astro/config';
33import starlight from '@astrojs/starlight' ;
44import mtasaStartlightThemePlugin from 'starlight-theme-mtasa'
55
6+ const isDeploy = process . env . GITHUB_ACTIONS === 'true' ;
7+ const ownerName = isDeploy ? process . env . GITHUB_REPOSITORY_OWNER : undefined ;
8+ const siteName = isDeploy ? `https://${ process . env . GITHUB_REPOSITORY_NAME } .github.io` : undefined ;
9+
610// https://astro.build/config
711export default defineConfig ( {
8- site : 'https://multitheftauto.github.io' ,
9- base : 'starlight-theme-mtasa' ,
12+ site : siteName ,
13+ base : ownerName ,
1014 integrations : [
1115 starlight ( {
1216 title : 'Multi Theft Auto: Theme' ,
1317 plugins : [ mtasaStartlightThemePlugin ( ) ] ,
1418 social : {
15- github : 'https://github.com/withastro /starlight' ,
19+ github : 'https://github.com/multitheftauto /starlight-theme-mtasa ' ,
1620 } ,
1721 sidebar : [
1822 {
Original file line number Diff line number Diff line change 66 tagline : Congrats on setting up a new Starlight project!
77 actions :
88 - text : Example Guide
9- link : / guides/example/
9+ link : guides/example/
1010 icon : right-arrow
1111 - text : Read the Starlight docs
1212 link : https://starlight.astro.build
You can’t perform that action at this time.
0 commit comments