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
18 changes: 7 additions & 11 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,14 @@ const config: Config = {
// `@docusaurus/faster` + `future: { experimental_faster: true }` if build
// speed becomes a concern.

// === GitHub Pages: deployed from the rossoctl/.github repo ===
// Served today at https://rossoctl.github.io/.github/ (project-page path =
// repo name ".github"). When a custom domain is added, flip baseUrl to '/'
// and drop a static/CNAME file (change all four below together).
// On GitHub Pages this is a project page served at rossoctl.github.io/.github/.
// On Netlify PR previews the site is served at the domain root, so baseUrl must
// be '/' there (Netlify sets NETLIFY=true and DEPLOY_PRIME_URL). When the
// rossoctl.dev custom domain is added, baseUrl becomes '/' everywhere.
url: process.env.DEPLOY_PRIME_URL || 'https://rossoctl.github.io',
baseUrl: process.env.NETLIFY ? '/' : '/.github/',
// Published to GitHub Pages at the custom domain https://www.rossoctl.dev
// (HTTPS enforced; the domain lives in static/CNAME). A custom domain serves
// at the root, so baseUrl is '/'. Netlify PR previews also serve at the root;
// DEPLOY_PRIME_URL sets the preview's canonical url.
url: process.env.DEPLOY_PRIME_URL || 'https://www.rossoctl.dev',
baseUrl: '/',
organizationName: 'rossoctl', // GitHub org that owns the repo
projectName: '.github', // repo name -> drives the Pages path
projectName: '.github', // repo name

// Relaxed to 'warn' so the docs synced from rossoctl/rossoctl:docs/ (which
// still contain some cross-repo relative links) don't fail the Pages build.
Expand Down
1 change: 1 addition & 0 deletions static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.rossoctl.dev
Loading