diff --git a/site/astro.config.mjs b/site/astro.config.mjs index 3e7f53f..9727a17 100644 --- a/site/astro.config.mjs +++ b/site/astro.config.mjs @@ -14,10 +14,9 @@ const GITHUB = 'https://github.com/mikkel-bergmann/podscript'; // https://astro.build/config export default defineConfig({ - // Project GitHub Pages: served under /podscript. If a custom domain is added - // later, drop `base` (and update BASE in scripts/sync-docs.mjs) and add a CNAME. - site: 'https://mikkel-bergmann.github.io', - base: '/podscript', + // Served at the root of the custom domain (site/public/CNAME). If you ever revert + // to project GitHub Pages, set base: '/podscript' and BASE in scripts/sync-docs.mjs. + site: 'https://podscript.dev', integrations: [ starlight({ title: 'Podscript', diff --git a/site/public/CNAME b/site/public/CNAME new file mode 100644 index 0000000..f59b3b7 --- /dev/null +++ b/site/public/CNAME @@ -0,0 +1 @@ +podscript.dev diff --git a/site/scripts/sync-docs.mjs b/site/scripts/sync-docs.mjs index 074cd1a..1775cfa 100644 --- a/site/scripts/sync-docs.mjs +++ b/site/scripts/sync-docs.mjs @@ -12,8 +12,9 @@ import { readFileSync, writeFileSync, mkdirSync, readdirSync } from 'node:fs'; import { dirname } from 'node:path'; // Keep in sync with `base` in astro.config.mjs. In-content markdown links are not -// base-prefixed by Astro, so we bake the base into internal links here. -const BASE = '/podscript'; +// base-prefixed by Astro, so we bake the base into internal links here. Empty for +// the custom domain (served at root); '/podscript' for project GitHub Pages. +const BASE = ''; const GITHUB = 'https://github.com/mikkel-bergmann/podscript'; /** Drop a leading SPDX HTML-comment header, if present. */ diff --git a/site/src/content/docs/index.mdx b/site/src/content/docs/index.mdx index b5a171a..6574aef 100644 --- a/site/src/content/docs/index.mdx +++ b/site/src/content/docs/index.mdx @@ -6,11 +6,11 @@ hero: tagline: Podcasts as code. actions: - text: Get started - link: /podscript/guide/authoring/ + link: /guide/authoring/ icon: right-arrow variant: primary - text: Read the spec - link: /podscript/reference/spec/ + link: /reference/spec/ variant: secondary - text: GitHub link: https://github.com/mikkel-bergmann/podscript @@ -62,4 +62,4 @@ narration beginning exactly as the fade starts and continuing over the tail. > **This project is the specification**, its conformance suite, and examples — not an -> implementation. The normative document is the [specification](/podscript/reference/spec/). +> implementation. The normative document is the [specification](/reference/spec/).