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
6 changes: 0 additions & 6 deletions .cigen/workflows/docs/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .cigen/workflows/docs/jobs/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ github:
if: github.event_name == 'push'
environment:
name: github-pages
url: https://docspring.github.io/cigen/
url: https://cigen.dev/
2 changes: 1 addition & 1 deletion .cigen/workflows/release/jobs/release_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,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 `/<repo>/`. 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/<path>.png` (`src/pages/og/`, drawn by `src/lib/og-card.ts` with
Expand Down
4 changes: 2 additions & 2 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 /<repo>/.
const site = process.env.CIGEN_SITE_URL || 'https://cigen.dev'
const base = process.env.CIGEN_SITE_BASE || '/'

Expand Down
Loading