Skip to content

feat: preserve configured section and guide URLs - #852

Merged
has2k1 merged 2 commits into
mainfrom
fix/preserve-section-urls
Dec 4, 2026
Merged

has2k1 merged 2 commits into
mainfrom
fix/preserve-section-urls

Conversation

@has2k1

@has2k1 has2k1 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Choose a published directory for a section or User Guide and retain numbered section filenames when existing links depend on them. TBsim can keep user_guide/, and BoFire can keep 001-Himmelblau.html. Section sidebar IDs stay stable when their output directories change.

user_guide:
  dir: user_guide
  output: user_guide   # Default: user-guide
sections:
  - title: Benchmarks
    dir: benchmarks
    output: docs/tutorials/benchmarks   # Default: the section directory’s slug
    keep_numeric_prefixes: true         # Default: false for ordinary sections

Before at BoFire’s numbered URL:

The numbered Himmelblau benchmark URL returns a 404

After at the same URL:

The Himmelblau benchmark at its numbered URL

Allow sections and the user guide to choose a published directory. Keep section numbering when requested so existing page URLs continue to work after migration.
@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 47327097420

# or always the latest build for this PR
great-docs preview --pr 852
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 814ff5d into main Dec 4, 2026
7 checks passed
@has2k1
has2k1 deleted the fix/preserve-section-urls branch December 4, 2026 12: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