Skip to content

The docs site's previous/next links follow the sidebar, and long fences stay code - #591

Merged
zlareb1 merged 2 commits into
mainfrom
docs/site-followup
Nov 13, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
docs/site-followup

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Related: #588

Changelog category (leave one):

  • Documentation (changelog entry is not required)

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:

  • The sidebar is reordered in on_nav, but MkDocs links each page to its previous and next page before that event, so rel="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.
  • The fence rule knew only three-character fences, so a four-backtick block (the usual way to show a fenced example) ended at its first inner fence, and links after it were rewritten inside a code example. A fence is now a run of three or more backticks or tildes, closed by the same run alone on its line.
  • The edit button came off any page that quoted "not this page" or "This page is generated". It now comes off only on the generators' own markers: a <!-- Generated by … not this page comment, or the line that starts "This page is generated from" (the settings generator's sentence on reference/configuration.md).
  • The SoftwareApplication block could not produce a search result without fields the page does not carry; the home page keeps one SoftwareSourceCode block, with the package links.

Also: mkdocs.yml drops tables (MkDocs always loads it), and docs/development/testing.md adds 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

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert.

Tests

  • mkdocs build --strict: 0 warnings. The built home page links rel="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.
  • Prettier on every Markdown and YAML file, ruff, and a YAML parse of the workflow: clean.

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

  • Docs describe the system as it now is.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off.

🤖 Generated with Claude Code

zlareb1 and others added 2 commits November 13, 2026 00:56
…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]>
@zlareb1
zlareb1 merged commit 16f4779 into main Nov 13, 2026
41 checks passed
@zlareb1
zlareb1 deleted the docs/site-followup branch November 13, 2026 01:36
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