Skip to content

Docs links follow renamed guides, and edit links name real files - #499

Merged
coderhelm[bot] merged 4 commits into
mainfrom
docs/renamed-page-links
Dec 1, 2026
Merged

coderhelm[bot] merged 4 commits into
mainfrom
docs/renamed-page-links

Conversation

@nambok

@nambok nambok commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two fixes found by a sweep of the docs. Links between self-host guides broke when a guide was renamed or linked without ./, and "Edit this page" on the site's own self-host pages pointed at a generated file. (The third fix this branch had, tab titles spelling the product CoderHelm, is already on main, so it is dropped here.)

Changes

Links between self-host guides (docs/scripts/import-platform.mjs, docs/scripts/check-links.mjs, docs/scripts/lib/out.mjs)

  • New guideLink(). A link to a guide imported under another name (APP_PAGE_RENAMES) follows the rename: a link to a heading goes to the imported page, where the heading is, and a plain link goes to the app page that kept the address. A bare faq.md becomes ./faq.md, the only form the docs turn into a page address.
  • New guideLinkProblems(). It runs at the end of the self-host import and fails the build on any relative link to a file that wasn't imported, and on any /self-host/ link to neither a page nor an app page.
  • check:links used to skip relative links. It now reports any link a page still ships relative, since such a link resolves differently with and without a trailing slash.

Edit links (docs/lib/shared.ts)

  • COPIED_CONTENT maps self-host/ to docs/content/self-host-site/, so the site's own self-host pages link to the file they are copied from. Imported guides keep their own edit link to the platform repo.

Platform pin (docs/platform.lock.json, docs/published-pages.json)

  • The pin moves to the platform's current main, whose FAQ links the renamed uninstall heading. The new sign-in guide it brings is recorded as a published page.

Verification

  • Rebased onto main.
  • New unit tests: links to a renamed guide with and without a heading, bare links, the import failing on a renamed, missing or bare link and passing once each is fixed, check:links flagging a relative link, and an edit link per page kind naming a file git tracks.
  • Locally in docs/: unit tests (119 pass), build, typecheck, check:links (none broken), check:output, and the end-to-end specs (166 pass).

Links between self-host guides follow a renamed guide, a bare link gets
its ./, and the self-host import fails on any link to a file it did not
import. check:links also reports a link a page still ships relative.
"Edit this page" on the site's own self-host pages names the file they
are copied from.

The platform pin moves to the commit whose FAQ links the renamed
uninstall heading, and the new sign-in guide it brings is recorded in
published-pages.json.
@nambok
nambok force-pushed the docs/renamed-page-links branch from 352123f to c62b2de Compare December 1, 2026 15:20
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 1, 2026
@nambok nambok changed the title Docs links follow renamed guides, edit links name real files, and tabs spell CoderHelm Docs links follow renamed guides, and edit links name real files Dec 1, 2026
coderhelm[bot]

This comment was marked as outdated.

@coderhelm

coderhelm Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of 3589e2d completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

coderhelm[bot]

This comment was marked as outdated.

coderhelm[bot]

This comment was marked as outdated.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved with notes e24e77b (merged)

@coderhelm
coderhelm Bot merged commit 3589e2d into main Dec 1, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant