Skip to content

Fix 30 broken documentation links, and check them from now on - #450

Merged
sridharkalaibala merged 2 commits into
developfrom
docs/fix-broken-links
Sep 2, 2026
Merged

sridharkalaibala merged 2 commits into
developfrom
docs/fix-broken-links

Conversation

@sridharkalaibala

Copy link
Copy Markdown
Contributor

Closes the report in discussion #25.

What was wrong

docs/GOVERNANCE.md linked to docs/DEVELOPMENT.md — from inside docs/. So it resolved to docs/docs/DEVELOPMENT.md and 404'd. The file was there the whole time.

Scanning for the same shape found 30 broken links across six files:

File Broken
docs/TERMS_OF_USE.md 8
docs/GOVERNANCE.md 7
docs/PRIVACY.md 6
.github/SECURITY.md 4
docs/ROADMAP.md 4
.github/CODE_OF_CONDUCT.md 1

Every target existed. Not one of the links reached it. So this PR repoints 30 links and adds no new documents — 30 insertions, 30 deletions.

Two mistakes, repeated:

  • writing docs/X.md from inside docs/
  • referring to SECURITY.md, CODE_OF_CONDUCT.md, LICENSE, THIRD-PARTY-NOTICES.md as if every file were in the same directory

Why it survived

A relative link looks right in an editor, resolves in most previewers, and is wrong only on GitHub — which is where the reader is.

And nothing checked. The one link test that existed covered the README alone and resolved paths from the repository root rather than from the file, so it could not have caught a single one of these.

The check

tests/docs-links.test.js resolves every relative link from the directory of the file it appears in — what GitHub actually does — across every tracked markdown file. A second test names the docs/-inside-docs/ mistake specifically, so the failure explains itself rather than posing a puzzle:

these are already inside docs/, so "docs/" is one level too many:
  docs/GOVERNANCE.md:180 -> docs/DEVELOPMENT.md  (drop the "docs/")

Both mutation-checked: I reintroduced the original bug and confirmed they fail.

npm test — 1255 pass, 0 fail.

Somebody who wanted to contribute read the docs, clicked through to the
developer guide, and got a 404. They opened discussion #25 about it rather than
simply leaving, which is more than anyone is owed.

docs/GOVERNANCE.md linked to `docs/DEVELOPMENT.md` from inside docs/, so it
resolved to docs/docs/DEVELOPMENT.md. The file had been there the whole time.

Scanning for the same shape found 30 broken links across six files:
.github/CODE_OF_CONDUCT.md, .github/SECURITY.md, docs/GOVERNANCE.md,
docs/PRIVACY.md, docs/ROADMAP.md and docs/TERMS_OF_USE.md. Every single target
existed and not one of the links reached it - so this is 30 repointed links and
no new documents.

Two mistakes, repeated: writing docs/X.md from inside docs/, and referring to
SECURITY.md, CODE_OF_CONDUCT.md, LICENSE and THIRD-PARTY-NOTICES.md as though
every file sat in the same directory.

They survived because a relative link looks right in an editor, resolves in most
previewers, and is only wrong on GitHub - which is where the reader is - and
because nothing checked. The one link check that existed covered the README
only, and resolved from the repository root rather than from the file, so it
could not have caught any of these.

tests/docs-links.test.js now resolves every relative link from the directory of
the file it appears in, across every tracked markdown file. A second test names
the docs/-inside-docs/ mistake specifically, so the failure explains itself
instead of posing a puzzle. Both were mutation-checked.
@sridharkalaibala
sridharkalaibala merged commit ed139fb into develop Sep 2, 2026
7 checks passed
@github-actions github-actions Bot added the ready for QA Merged to develop and live on develop.posnic.io - anyone can test it label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Merged to develop. Anyone can test this - you do not need write access.

Try it at https://develop.posnic.io, or run it yourself:

git fetch origin develop && git checkout develop
npm install && npm --prefix api install
npm run dev   # then http://localhost:3000

When you have tested it, say what you did and what happened, and set
QA passed or QA failed. If you cannot set labels, just comment -
a maintainer will.

Reporting that something is broken is as useful as fixing it. It is
better found here than by a shopkeeper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for QA Merged to develop and live on develop.posnic.io - anyone can test it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant