Skip to content

fix: scope notebook pages to their configured versions - #863

Merged
has2k1 merged 1 commit into
mainfrom
fix/versioned-section-notebooks
Dec 4, 2026
Merged

has2k1 merged 1 commit into
mainfrom
fix/versioned-section-notebooks

Conversation

@has2k1

@has2k1 has2k1 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Notebook pages now follow the section’s versions setting. A section limited to version 2.0 previously published its notebook in 1.0 as well. The older version now omits the page and its navigation links, and the version selector uses the published notebook pages to choose where to send readers.

sections:
  - title: Guide
    dir: guide
    versions: ["2.0"]

Omit versions to include the section in every version.

Before (the notebook appeared in version 1.0):

Notebook Guide page incorrectly shown in version 1.0

After (the notebook is available in version 2.0):

Notebook Guide page in its configured version 2.0

Remove notebook pages from versions excluded by their sections and prune the corresponding navigation. Use rendered notebook pages in the version selector so downloads do not appear as pages.
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 47340668618

# or always the latest build for this PR
great-docs preview --pr 863
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@has2k1
has2k1 merged commit dfc67be into main Dec 4, 2026
7 checks passed
@has2k1
has2k1 deleted the fix/versioned-section-notebooks branch December 4, 2026 13:46
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