File tree 2 files changed +8
-4
lines changed 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';
3
3
import starlight from '@astrojs/starlight' ;
4
4
import mtasaStartlightThemePlugin from 'starlight-theme-mtasa'
5
5
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
+
6
10
// https://astro.build/config
7
11
export default defineConfig ( {
8
- site : 'https://multitheftauto.github.io' ,
9
- base : 'starlight-theme-mtasa' ,
12
+ site : siteName ,
13
+ base : ownerName ,
10
14
integrations : [
11
15
starlight ( {
12
16
title : 'Multi Theft Auto: Theme' ,
13
17
plugins : [ mtasaStartlightThemePlugin ( ) ] ,
14
18
social : {
15
- github : 'https://github.com/withastro /starlight' ,
19
+ github : 'https://github.com/multitheftauto /starlight-theme-mtasa ' ,
16
20
} ,
17
21
sidebar : [
18
22
{
Original file line number Diff line number Diff line change 6
6
tagline : Congrats on setting up a new Starlight project!
7
7
actions :
8
8
- text : Example Guide
9
- link : / guides/example/
9
+ link : guides/example/
10
10
icon : right-arrow
11
11
- text : Read the Starlight docs
12
12
link : https://starlight.astro.build
You can’t perform that action at this time.
0 commit comments