Skip to content

docs: consolidate contribution guides, fix broken doc links - #149

Merged
MDA2AV merged 1 commit into
mainfrom
docs/fold-agents-md-into-guides
Aug 15, 2026
Merged

docs: consolidate contribution guides, fix broken doc links#149
MDA2AV merged 1 commit into
mainfrom
docs/fold-agents-md-into-guides

Conversation

@MDA2AV

@MDA2AV MDA2AV commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Two related commits, both about the contribution docs being wrong in ways that would bite anyone following them.

1. Fold AGENTS.md into the on-site guides

AGENTS.md duplicated the Add a Test and Add a Framework guides in a second, LLM-facing copy, and the two had drifted apart. This removes it and moves everything it carried that the site was missing into the guides themselves, so there is one source of truth that both humans and agents follow.

Add a Framework was missing most of what AGENTS.md documented:

  • the /cookie endpoint — spec, response format, and the Flask example (the page documented only / and /echo, so a contributor following it would fail the entire Cookies suite)
  • Dockerfile requirements: repo-root build context, bind 0.0.0.0:8080, ENTRYPOINT over CMD
  • probe.json with language (the page showed {"name": "..."} only) plus the optional repository field
  • a new step 4 for the docs/content/servers/ page, using the current frontmatter shape rather than the stale template in AGENTS.md
  • a Verify section with the docker / curl / probe commands

Add a Test gained the RFC Requirement Dashboard step, the category folder table, the WS-/CAP- prefixes, and the ctx.HostHeader / MakeRequest conventions. Fixes along the way:

  • Suite paths were wrong. The guide listed src/TestCases/Suites/…; the real path is src/Http11Probe/TestCases/Suites/…. Anyone following it would not have found the files.
  • Broken dashboard links. Both pages used {{< relref "docs/rfc-requirement-dashboard" >}}, which web/build.mjs expands to /docs/docs/rfc-requirement-dashboard.html — a 404.
  • Stale preview command. hugo serverweb/build.mjs.
  • Dangling reference. The landing card still advertised "the machine-readable AGENTS.md guide".

2. Fix server source links and CAP-* docs mapping

38 of the 39 server pages linked to github.com/MDA2AV/tree/main/... — missing the repository segment, so every "View source on GitHub" 404s. All now point at github.com/MDA2AV/Http11Probe/tree/main/..., matching the one page that was already correct. Verified that every link target directory exists under src/Servers/.

CAP-* was the only test prefix with no rule in DocsUrlMap, so the CLI printed those nine results without a docs link while every other category got one. The nine tests map 1:1 onto the caching/ pages, so this is a prefix rule rather than nine dictionary entries. The website was never affected — web/build.mjs builds its own slugmap from the doc pages and already covered all nine.

Before / after, on the same run:

CAP-ETAG-304    WARN*  304  200  OK
CAP-ETAG-304    WARN*  304  200  OK  https://mda2av.github.io/Http11Probe/docs/caching/etag-304

Verification

  • dotnet build Http11Probe.slnx -c Release — 0 warnings, 0 errors
  • node build.mjs — 281 pages, no AGENTS references, no unexpanded shortcodes, no leftover broken server links in dist/
  • Probed a live server with --test CAP-ETAG-304 --test CAP-IMS-FUTURE --test WS-UPGRADE-POST --test COMP-BASELINE; all four now print docs links
  • Confirmed the dashboard links resolve to the real /docs/rfc-requirement-dashboard.html

The only remaining AGENTS.md mentions are two dated CHANGELOG entries, left as history.

AGENTS.md duplicated the Add a Test and Add a Framework guides for LLM
consumption, and the two had drifted apart. Remove it and move the parts
it carried that the site was missing into the guides themselves.

Add a Framework gains the /cookie endpoint, the Dockerfile requirements
(repo-root build context, bind 0.0.0.0, ENTRYPOINT over CMD), the
language field in probe.json, the server documentation page step, and a
verification section.

Add a Test gains the RFC Requirement Dashboard step, the category folder
table, and the WS-/CAP- prefixes. Its suite file paths were missing the
Http11Probe/ segment, so anyone following it would not have found the
files.

Also fixes the relref links on both pages: the site generator expands
them to /docs/docs/..., which 404s.
@sonarqubecloud

Copy link
Copy Markdown

@MDA2AV
MDA2AV merged commit cb870f7 into main Aug 15, 2026
2 checks passed
@MDA2AV MDA2AV changed the title docs: fold AGENTS.md into the on-site contribution guides docs: consolidate contribution guides, fix broken doc links Aug 15, 2026
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