Skip to content

Fix subject-format doc path in the validate endpoints#1036

Closed
malberts wants to merge 4 commits into
masterfrom
fix-validate-api-subject-format-link
Closed

Fix subject-format doc path in the validate endpoints#1036
malberts wants to merge 4 commits into
masterfrom
fix-validate-api-subject-format-link

Conversation

@malberts

Copy link
Copy Markdown
Contributor

Follows-up to #1034 (based on its branch).

ValidateSubjectApi and ValidateSubjectUpdateApi point their statements param description at
docs/SubjectFormat.md, a path that has never existed (it predates the docs reorganisation). The create and
replace endpoints already reference docs/api/subject-format.md; this points the validate pair at the same doc,
so all four subject endpoints agree.

Based on the #1034 branch because that is where docs/api/subject-format.md lives (on master the doc is still at
docs/reference/subject-format.md), so the fix lands together with the reorg and needs no re-touch afterwards.

AI-authored — Claude Code, Opus 4.8 (max); @malberts asked to fix this pre-existing reference flagged during the #1034 review, one-line ask, no revisions; diff not yet human-reviewed; target docs/api/subject-format.md confirmed present on the base branch, no test exercises these param strings, CI on the branch.

JeroenDeDauw and others added 4 commits July 13, 2026 02:21
… extending

The single reference/ directory mixed docs for very different readers — wikitext/Lua
authors, HTTP API integrators, RDF/ontology practitioners, and extension developers —
under one flat, unlabelled list. Split it into audience-scoped directories so the sidebar
and the docs landing page can each signpost a reader to the right surface:

- authoring/ — parser-functions, lua-api (wikitext + Lua on the wiki)
- api/       — rest-api, query-api, schema-format, subject-format, validation-codes, graph-model
- rdf/       — rdf-export, ontology-mapping (with a forward link to the person-to-edm example)
- extending/ — extending

Also:
- Rewrite docs/README.md as a goal-based router (learn the model / build on your wiki /
  integrate over HTTP / publish as RDF / extend / run / architecture), with live-sandbox
  and install pointers up top.
- Give query-api and validation-codes the title/order frontmatter they were missing, so
  they sort correctly in the website sidebar instead of dangling at the end.
- Fix all in-tree links to the moved files (ADRs, planning docs, glossary, the example).
- Update RestApiDocsCoverageTest and two REST param descriptions that referenced the moved
  rest-api.md / subject-format.md paths.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The Glossary lived at docs/Glossary.md until #825 moved it into a concepts/ directory
"ahead of publishing it on the VitePress site". The website's sidebar builder can only
group directories, so the docs grew a one-file directory to satisfy the tool. That is
the tool dictating the structure.

It is also a category error in the new layout: every other directory is an audience or
surface (authoring, api, rdf, extending) or a genre serving one (examples, operations,
adr). The Glossary is neither. It is the shared vocabulary underneath all of them, the
one doc every audience reads first, and the most-linked doc in the project. Filing it as
a peer of the audience directories implies it is one more surface you might skip.

Back to docs/glossary.md, so it reads as the prerequisite it is and gets the URL it
deserves (/docs/glossary). The website side teaches the sidebar to render top-level docs
as ungrouped links, which is a rule rather than a special case.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The docs reorganisation moved glossary.md to the docs root and
extending.md/lua-api.md into audience directories, but three links that
live outside docs/ still pointed at the old paths, so the docs-tree
link check did not catch them:

- README.md linked to docs/concepts/glossary.md
- tests/RedHerb/README.md linked to docs/reference/extending.md
- DemoData/Page/Developers.wikitext linked (by absolute master URL) to
  docs/reference/lua-api.md

Point each at its new location.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The validate and validate-update endpoints pointed their statements
param at docs/SubjectFormat.md, a path that does not exist. The create
and replace endpoints already reference docs/api/subject-format.md;
point the validate pair at the same doc so all four subject endpoints
agree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Base automatically changed from docs/audience-based-structure to master July 13, 2026 16:25
@alistair3149

Copy link
Copy Markdown
Member

Closing in favor of #1037 because it has a doc drift test

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.

3 participants