Skip to content

[Sync to prerelease] Fix profile configuration for prerelease website#1937

Merged
cderv merged 1 commit intoprereleasefrom
sync-1932-to-prerelease
Mar 4, 2026
Merged

[Sync to prerelease] Fix profile configuration for prerelease website#1937
cderv merged 1 commit intoprereleasefrom
sync-1932-to-prerelease

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 4, 2026

Description

Sync of #1932 to prerelease.

Original PR

Fix profile configuration for prerelease website

The prerelease site (prerelease.quarto.org) gets wrong values from the profile system in two ways:

  1. CI sets QUARTO_PROFILE=prerelease-docs, but the profile group [rc, prerelease] auto-adds rc (the group default), giving the prerelease site RC branding instead of pre-release branding.

  2. prerelease-subdomain is defined in the phase profiles (_quarto-prerelease.yml / _quarto-rc.yml), but which subdomain to use is a site concern, not a phase concern. During dev phase, the main site incorrectly links to prerelease.quarto.org.

Additionally, "flip to RC" commits that reorder the profile group get auto-backported to the prerelease branch via port-to-prerelease.yml, causing empty cherry-picks.

Fix

Separate prerelease-subdomain from phase variables:

  • Base _quarto.yml defines prerelease-subdomain: '' (links to quarto.org)
  • Only _quarto-prerelease-docs.yml overrides it to prerelease.
  • Phase profiles (_quarto-prerelease.yml, _quarto-rc.yml) no longer set it

Fix CI to explicitly activate the prerelease profile:

  • QUARTO_PROFILE changes from prerelease-docs to prerelease,prerelease-docs
  • This satisfies the profile group so rc is not auto-added
  • Makes the prerelease site immune to group order changes
Scenario Active profiles Title Links to
quarto.org (RC phase) base + rc "Release Candidate" quarto.org
quarto.org (dev phase) base + prerelease "Pre-release" quarto.org
prerelease.quarto.org base + prerelease + prerelease-docs "Pre-release" prerelease.quarto.org

* Move prerelease-subdomain from phase profiles to base/site profiles

prerelease-subdomain is a site concern (which domain am I on?), not a
phase concern (prerelease vs RC). Previously, the rc profile set it to
empty and the prerelease profile set it to 'prerelease.', which caused
the main site to link to prerelease.quarto.org during dev phase.

Now the base _quarto.yml defines prerelease-subdomain as empty (links
to quarto.org) and only _quarto-prerelease-docs.yml overrides it to
'prerelease.' for the prerelease site.

* Fix CI to explicitly activate prerelease profile for prerelease site

When CI set QUARTO_PROFILE=prerelease-docs, the profile group
[rc, prerelease] auto-added rc (the group default), giving the
prerelease site RC branding. Adding 'prerelease' explicitly
(prerelease,prerelease-docs) satisfies the group so the default
is not auto-added.

This also makes the prerelease site immune to "flip to RC" commits
that reorder the profile group, eliminating empty cherry-picks when
those commits are auto-backported to the prerelease branch.

* Document profile system in README

Explain the two-layer profile architecture (phase profiles vs site
profile), what each _quarto-*.yml file does, the release lifecycle,
and how to preview locally with different profiles.

* 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)

(cherry picked from commit 8516589)
@cderv
Copy link
Collaborator

cderv commented Mar 4, 2026

/deploy-preview

@github-actions
Copy link
Contributor Author

github-actions bot commented Mar 4, 2026

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-1937.quarto.org

@cderv cderv merged commit 83a56a6 into prerelease Mar 4, 2026
@cderv cderv deleted the sync-1932-to-prerelease branch March 4, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant