From 7369dba352864486cea94671417f2e2c3c665cae Mon Sep 17 00:00:00 2001 From: vincanger <70215737+vincanger@users.noreply.github.com> Date: Wed, 6 Dec 2023 15:02:49 +0100 Subject: [PATCH] use Astro.site for header url --- docs/astro.config.mjs | 3 +-- docs/constants.ts | 1 - docs/src/components/MyHeader.astro | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 docs/constants.ts diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 1b64ffd..b3ecb05 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -1,11 +1,10 @@ import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; import starlightBlog from 'starlight-blog'; -import { BASE_URL } from './constants'; // https://astro.build/config export default defineConfig({ - site: BASE_URL, + site: 'https://opensaas.sh', integrations: [ starlightBlog({ title: 'Blog', diff --git a/docs/constants.ts b/docs/constants.ts deleted file mode 100644 index f4a2adc..0000000 --- a/docs/constants.ts +++ /dev/null @@ -1 +0,0 @@ -export const BASE_URL = 'https://opensaas.sh' \ No newline at end of file diff --git a/docs/src/components/MyHeader.astro b/docs/src/components/MyHeader.astro index 85caf4b..9fe00aa 100644 --- a/docs/src/components/MyHeader.astro +++ b/docs/src/components/MyHeader.astro @@ -3,10 +3,10 @@ import { logos } from 'virtual:starlight/user-images'; import config from 'virtual:starlight/user-config'; import blogConfig from 'virtual:starlight-blog-config' import type { Props } from '@astrojs/starlight/props'; -import { BASE_URL } from '../../constants'; +const href = Astro.site --- - + { config.logo && logos.dark && ( <>