diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs
index 1c6593e..1b64ffd 100644
--- a/docs/astro.config.mjs
+++ b/docs/astro.config.mjs
@@ -1,13 +1,14 @@
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: 'https://opensaas.sh',
+ site: BASE_URL,
integrations: [
starlightBlog({
- title: 'The Best Blog Ever',
+ title: 'Blog',
authors: {
vince: {
name: 'Vince',
@@ -18,7 +19,7 @@ export default defineConfig({
},
}),
starlight({
- title: 'Open SaaS',
+ title: 'OpenSaaS.sh',
description: 'Open SaaS is a free, open-source, full-stack SaaS starter kit for React + NodeJS.',
logo: {
src: '/src/assets/logo.png',
@@ -28,9 +29,10 @@ export default defineConfig({
baseUrl: 'https://github.com/wasp-lang/open-saas/edit/main',
},
components: {
+ SiteTitle: './src/components/MyHeader.astro',
MarkdownContent: 'starlight-blog/overrides/MarkdownContent.astro',
Sidebar: 'starlight-blog/overrides/Sidebar.astro',
- ThemeSelect: 'starlight-blog/overrides/ThemeSelect.astro',
+ // ThemeSelect: 'starlight-blog/overrides/ThemeSelect.astro',
},
social: {
github: 'https://github.com/wasp-lang/open-saas',
diff --git a/docs/constants.ts b/docs/constants.ts
new file mode 100644
index 0000000..f4a2adc
--- /dev/null
+++ b/docs/constants.ts
@@ -0,0 +1 @@
+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
new file mode 100644
index 0000000..85caf4b
--- /dev/null
+++ b/docs/src/components/MyHeader.astro
@@ -0,0 +1,89 @@
+---
+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';
+
+---
+
+ {
+ config.logo && logos.dark && (
+ <>
+
+ {/* Show light alternate if a user configure both light and dark logos. */}
+ {!('src' in config.logo) && (
+
+ )}
+ >
+ )
+ }
+
+ {config.title}
+
+
+