diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1dce12f..896c35d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -44,7 +44,12 @@ jobs: cache: 'npm' - name: Configure Pages + # enablement: turn Pages on (build type = GitHub Actions) via the API if + # it isn't already, so the deploy step doesn't fail with + # "Deployment failed, try again later". uses: actions/configure-pages@v5 + with: + enablement: true # --ignore-scripts skips husky install; no hooks needed to build docs. - run: npm ci --ignore-scripts diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 4814064..9948629 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -3,7 +3,10 @@ import { defineConfig } from 'vitepress'; export default defineConfig({ title: 'ootk', description: 'Orbital Object Toolkit - satellite propagation, orbit determination, sensors, and maneuver planning in TypeScript', - base: '/ootk/', + // Served at the root of the custom domain (ootk.kruczeklabs.com), so base is + // '/'. If you ever drop the custom domain and serve at thkruz.github.io/ootk/, + // change this back to '/ootk/'. + base: '/', // README.md stays for GitHub folder browsing; index.md is the site home srcExclude: ['README.md'], themeConfig: { diff --git a/docs/public/CNAME b/docs/public/CNAME new file mode 100644 index 0000000..12b3a02 --- /dev/null +++ b/docs/public/CNAME @@ -0,0 +1 @@ +ootk.kruczeklabs.com