You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add prerelease-link-subdomain for phase-aware linking to prerelease docs
Blog posts on main need to link to prerelease.quarto.org during RC phase
(when docs only exist there) and switch to quarto.org after release.
Unlike prerelease-subdomain (site identity), this variable is phase-aware:
- Default: '' (links to quarto.org)
- RC profile: 'prerelease.' (docs still on prerelease site)
- prerelease-docs profile: 'prerelease.' (prerelease site links to itself)
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,16 @@ The group order determines which phase is active on **quarto.org** (the main sit
132
132
|---|---|
133
133
| `_quarto-prerelease-docs.yml` | Site-specific configuration for prerelease.quarto.org |
134
134
135
-
The `prerelease-subdomain` variable is defined as empty (`''`) in `_quarto.yml` (so links point to `quarto.org` by default) and overridden to `prerelease.` only in `_quarto-prerelease-docs.yml`.
135
+
### Subdomain variables
136
+
137
+
Two variables control how links resolve across builds. Both use the same pattern — `https://{{< meta VAR >}}quarto.org/...` — but serve different purposes:
138
+
139
+
| Variable | Purpose | Default | Set by `rc` | Set by `prerelease-docs` |
140
+
|---|---|---|---|---|
141
+
| `prerelease-subdomain` | **Site identity** — "am I the prerelease site?" | `''` | — | `prerelease.` |
142
+
| `prerelease-link-subdomain` | **Content linking** — "where do prerelease docs live right now?" | `''` | `prerelease.` | `prerelease.` |
143
+
144
+
Use `prerelease-subdomain` for self-referential links (e.g. RevealJS demo links back to its own site). Use `prerelease-link-subdomain` for content on `main` that references docs only available on prerelease during RC phase (e.g. blog posts announcing upcoming features).
0 commit comments