Repository navigation
Docs links follow renamed guides, and edit links name real files - #499
Merged
Merged
Conversation
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
force-pushed
the
docs/renamed-page-links
branch
from
December 1, 2026 15:20
352123f to
c62b2de
Compare
Contributor
|
💚 Post-merge health check passed: the deploy of
|
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.
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)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 barefaq.mdbecomes./faq.md, the only form the docs turn into a page address.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.Edit links (
docs/lib/shared.ts)COPIED_CONTENTmapsself-host/todocs/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)Verification
docs/: unit tests (119 pass), build, typecheck, check:links (none broken), check:output, and the end-to-end specs (166 pass).