Skip to content

Fix smdcoe nav - #4

Merged
risacher merged 2 commits into
mainfrom
fix-smdcoe-nav
Aug 7, 2026
Merged

Fix smdcoe nav#4
risacher merged 2 commits into
mainfrom
fix-smdcoe-nav

Conversation

@risacher

@risacher risacher commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

The nav listed the Army SMDCoE story as plays/army-smdcoe-play.md, but the
file is docs/stories/army-smdcoe.md. MkDocs cannot resolve a nav target that
does not exist, so it emitted the raw path as the link href and the navbar
sent readers to /AI4SDLC/plays/army-smdcoe-play.md, which 404s -- both because
no such page exists and because this site uses directory URLs, so no .md URL
ever resolves.

The story itself built and deployed correctly the whole time; only the way in
was broken.

MkDocs did warn about this ("A reference to 'plays/army-smdcoe-play.md' is
included in the 'nav' configuration, which is not found in the documentation
files"), but nothing surfaced it: code.mil's scripts/test runs mkdocs with
--quiet, and its htmlproofer sweep excludes /AI4SDLC/ entirely.
MkDocs was emitting nine link warnings. None failed the build, because
code.mil runs the mkdocs build with --quiet and excludes /AI4SDLC/ from its
htmlproofer sweep, so nothing surfaced them.

Four links pointed at 'ai_sdlc_workflows_play.md'. The file is
'ai_sdlc_workflows-play.md' -- a hyphen, not an underscore, before "play".

Four more in aiswec_play-outline.md were still written for the path the file
had before it moved into docs/plays/, and carried a '../../docs/' prefix that
resolves nowhere from its current location. The authoring notes in that file
recorded the move as pending and prescribed exactly this fix, so this applies
it and updates the note to describe where the file now lives.

One pointed at 'resources/risk-reference.md', which does not exist anywhere in
the repository. The surrounding sentence describes the Risk Reference
Companion as upcoming, so the reference stays and only the dead link is
removed; it can be linked once the document lands.

Also repairs a tenth link that MkDocs does not check, because it validates
Markdown targets and this one is a directory: documentation-play.md pointed at
'../resources/', which has no index page and returns 404 on the live site
today. It now links the two resources that exist.

Verified by crawling the built site: 1631 internal links, none broken.
@risacher
risacher merged commit 1e1b2a7 into main Aug 7, 2026
1 check 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