Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions site/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions site/public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
podscript.dev
5 changes: 3 additions & 2 deletions site/scripts/sync-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
6 changes: 3 additions & 3 deletions site/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -62,4 +62,4 @@ narration beginning exactly as the fade starts and continuing over the tail.
</CardGrid>

> **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/).