Repository navigation
The docs site's previous/next links follow the sidebar, and long fences stay code - #591
Merged
Merged
Conversation
…ny length, whole-page generated markers only, one structured-data block Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…e back link tested Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #588
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
...
Why
Four gaps in the documentation site's build:
on_nav, but MkDocs links each page to its previous and next page before that event, sorel="prev"/rel="next"and the keyboard shortcuts that read them still followed the file order. The hook now relinks every page in the sorted order.<!-- Generated by … not this pagecomment, or the line that starts "This page is generated from" (the settings generator's sentence onreference/configuration.md).SoftwareApplicationblock could not produce a search result without fields the page does not carry; the home page keeps oneSoftwareSourceCodeblock, with the package links.Also:
mkdocs.ymldropstables(MkDocs always loads it), anddocs/development/testing.mdadds the workflow file to the paths that trigger the build.Scope and risk
scripts/docs_site/hooks.py,scripts/docs_site/overrides/main.html,mkdocs.yml,docs/development/testing.md,tests/unit/test_docs_site_hooks.py. The site is not published yet (Pages is off), so nothing live changes.Compatibility, rollout and rollback
Tests
mkdocs build --strict: 0 warnings. The built home page linksrel="next"to Getting started → Overview, and Overview to Quickstart.pytest tests/unit/test_docs_site_hooks.py tests/unit/test_page_summary.py tests/unit/test_test_inventory.py tests/unit/test_doc_links.py tests/unit/test_public_copy.py tests/unit/test_agent_instructions.py: 476 passed. New cases: previous/next after the sort, a four-backtick block holding a fenced example, the configuration page's marker, and a hand-written page that quotes the marker phrase.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code; the build was run and its HTML checked.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
🤖 Generated with Claude Code