Skip to content

Commit fe0368b

Browse files
committed
Fix minor deployment issues
1 parent 2c27c2f commit fe0368b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/astro.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@ import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import 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
711
export 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
{

docs/src/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hero:
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

0 commit comments

Comments
 (0)