Skip to content

Fix TypeDoc broken links - #172

Merged
jitsedesmet merged 2 commits into
mainfrom
docs/typedoc-stable-linking
Aug 6, 2026
Merged

Fix TypeDoc broken links#172
jitsedesmet merged 2 commits into
mainfrom
docs/typedoc-stable-linking

Conversation

@jitsedesmet

Copy link
Copy Markdown
Member

No description provided.

jitsedesmet and others added 2 commits August 6, 2026 09:22
Links written as repository root absolute paths (`/engines/parser-sparql-1-1`)
resolve on GitHub, but TypeDoc deliberately skips absolute paths when rewriting
relative links, so they ended up pointing at comunica.github.io/engines/... on
the documentation site. The same bug hid the logo on all seven engine pages,
which embedded it as `/assets/white-on-red/...`. Both are now relative.

The pages under docs/ were not part of the documentation at all: linking to them
only registered them as assets, so guidelines.md was served as a raw text file
instead of a rendered page. They are added through `projectDocuments`.

What is left are links TypeDoc has no page for: source files and directories
that are not a package. TypeDoc copies those into media/, which turns a source
file into a raw text dump and a directory into a dead link, and `#L75` line
anchors never survive onto a generated page. Rather than hardcoding the
repository host in every markdown file, typedoc.plugin.mjs rewrites exactly
those links using the `repositoryLinkTemplate` option, keeping the markdown
relative and GitHub native, with the host configured in one place.

Also fixes two links that were dead on GitHub as well: lib/toAlgebra.ts (the
file lives at lib/toAlgebra/toAlgebra.ts) and a spec reference in algebra.ts
that had lost its base URL.

Verified over the built site: all internal links across 1232 pages resolve,
and all local images resolve.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@jitsedesmet
jitsedesmet merged commit 0f5f04f into main Aug 6, 2026
49 checks passed
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