From c73a0e183baa709fbf3be0dc5312eab63b49eaa7 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 4 Dec 2026 16:47:30 +1300 Subject: [PATCH] Serve the site at https://cigen.dev/ The docs workflow no longer builds for docspring.github.io/cigen/: the site's defaults (https://cigen.dev and /) apply. The deploy environment URL, the release notes' install one-liner, and the README's links point at cigen.dev. --- .cigen/workflows/docs/jobs/build.yml | 6 ------ .cigen/workflows/docs/jobs/deploy.yml | 2 +- .cigen/workflows/release/jobs/release_create.yml | 2 +- .github/workflows/docs.yml | 5 +---- .github/workflows/release.yml | 2 +- README.md | 10 +++++----- docs/README.md | 4 ++-- docs/astro.config.mjs | 4 ++-- 8 files changed, 13 insertions(+), 22 deletions(-) diff --git a/.cigen/workflows/docs/jobs/build.yml b/.cigen/workflows/docs/jobs/build.yml index 881ab62..1fbdd49 100644 --- a/.cigen/workflows/docs/jobs/build.yml +++ b/.cigen/workflows/docs/jobs/build.yml @@ -3,12 +3,6 @@ image: ubuntu-latest needs: - ci_gate -# The site is built for https://docspring.github.io/cigen/ until cigen.dev points at GitHub -# Pages. Then remove these two variables: the site defaults to https://cigen.dev/. -env: - CIGEN_SITE_URL: https://docspring.github.io - CIGEN_SITE_BASE: /cigen/ - steps: - name: Setup pnpm uses: pnpm/action-setup@v4 diff --git a/.cigen/workflows/docs/jobs/deploy.yml b/.cigen/workflows/docs/jobs/deploy.yml index 486860f..0c1352d 100644 --- a/.cigen/workflows/docs/jobs/deploy.yml +++ b/.cigen/workflows/docs/jobs/deploy.yml @@ -13,4 +13,4 @@ github: if: github.event_name == 'push' environment: name: github-pages - url: https://docspring.github.io/cigen/ + url: https://cigen.dev/ diff --git a/.cigen/workflows/release/jobs/release_create.yml b/.cigen/workflows/release/jobs/release_create.yml index 5960c9f..303d82d 100644 --- a/.cigen/workflows/release/jobs/release_create.yml +++ b/.cigen/workflows/release/jobs/release_create.yml @@ -56,7 +56,7 @@ steps: ## Installation ### One-liner (Linux/macOS) - curl -fsSL https://docspring.github.io/cigen/install.sh | sh + curl -fsSL https://cigen.dev/install.sh | sh ### Direct downloads - macOS (Intel): https://github.com/${{ github.repository }}/releases/download/${{ env.RELEASE_TAG }}/cigen-macos-amd64.tar.gz diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7ebea2c..96ef9ce 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,9 +30,6 @@ jobs: runs-on: ubuntu-latest needs: - ci_gate - env: - CIGEN_SITE_BASE: /cigen/ - CIGEN_SITE_URL: https://docspring.github.io steps: - name: Checkout repository uses: actions/checkout@v4 @@ -90,7 +87,7 @@ jobs: deploy: environment: name: github-pages - url: https://docspring.github.io/cigen/ + url: https://cigen.dev/ if: github.event_name == 'push' runs-on: ubuntu-latest needs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b3cf36..d8569f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -183,7 +183,7 @@ jobs: ## Installation ### One-liner (Linux/macOS) - curl -fsSL https://docspring.github.io/cigen/install.sh | sh + curl -fsSL https://cigen.dev/install.sh | sh ### Direct downloads - macOS (Intel): https://github.com/${{ github.repository }}/releases/download/${{ env.RELEASE_TAG }}/cigen-macos-amd64.tar.gz diff --git a/README.md b/README.md index 053c418..e9e8b42 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # cigen -**CI that skips the jobs that already passed.** +**CI that skips the jobs that already passed.** Docs: [cigen.dev](https://cigen.dev/) Most pushes touch a handful of files, and CI runs every job anyway: the full test suite after a typo fix in the README, or the docs build after a change that never went near the docs. cigen compiles one config into native GitHub @@ -88,9 +88,9 @@ workflows: - `cigen validate --format json` reports every problem at once as data: file, line, key path, message and fix. - JSON Schemas for every config file are in [schemas/v1/](schemas/v1/), for editors and agents that validate as they write. -- The docs are Markdown for agents too: [llms.txt](https://docspring.github.io/cigen/llms.txt), - [llms-full.txt](https://docspring.github.io/cigen/llms-full.txt), and - [install.md](https://docspring.github.io/cigen/install.md), a setup guide an agent can follow from start to finish. +- The docs are Markdown for agents too: [llms.txt](https://cigen.dev/llms.txt), + [llms-full.txt](https://cigen.dev/llms-full.txt), and [install.md](https://cigen.dev/install.md), a setup guide an + agent can follow from start to finish. - Generated files say so in their header, with the command that regenerates them. ## Modules @@ -133,7 +133,7 @@ cargo install --locked --git https://github.com/DocSpring/cigen \ ``` The providers are separate binaries that cigen finds beside its own. Prebuilt binaries and a one-line installer come -with v0.2.0. Then follow the [quick start](https://docspring.github.io/cigen/docs/quick-start/). +with v0.2.0. Then follow the [quick start](https://cigen.dev/docs/quick-start/). ## Status diff --git a/docs/README.md b/docs/README.md index f1e24f2..27af20a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -26,8 +26,8 @@ pnpm --dir docs build # writes docs/dist - **The homepage** is `src/pages/index.astro`, with its content in `src/lib/home.ts`. Design tokens are in `src/styles/tokens.css`; colours and fonts are always referenced through them. - **Base path.** The site defaults to `https://cigen.dev/`. `CIGEN_SITE_URL` and `CIGEN_SITE_BASE` build it for another - address (the workflow sets them for `https://docspring.github.io/cigen/` until the domain points at Pages). Write - links in Markdown as `/docs/...`; the build adds the base. + address, such as a fork's Pages site under `//`. Write links in Markdown as `/docs/...`; the build adds the + base. - **Search and social cards.** `src/layouts/Base.astro` writes each page's canonical URL, Open Graph and Twitter tags and any JSON-LD it's given (`src/lib/seo.ts` builds SoftwareApplication, BreadcrumbList and Article objects). Every page gets a generated 1200×630 card at `/og/.png` (`src/pages/og/`, drawn by `src/lib/og-card.ts` with diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index fa02fdb..daafb6e 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -6,8 +6,8 @@ import { defineConfig } from 'astro/config' import { baseLinks } from './src/lib/base-links.mjs' import { installScript } from './src/lib/install-script.mjs' -// The site is served from https://cigen.dev/. Until that domain points at GitHub Pages, the -// docs workflow builds it for https://docspring.github.io/cigen/ by setting both variables. +// The site is served from https://cigen.dev/. CIGEN_SITE_URL and CIGEN_SITE_BASE build it for +// another address, such as a fork's GitHub Pages under //. const site = process.env.CIGEN_SITE_URL || 'https://cigen.dev' const base = process.env.CIGEN_SITE_BASE || '/'