Skip to content

fix(docs): the published docs site had empty pages, and the build stayed green - #35

Merged
webdevsamran merged 1 commit into
mainfrom
fix/docs-site-was-empty
Sep 9, 2026
Merged

fix(docs): the published docs site had empty pages, and the build stayed green#35
webdevsamran merged 1 commit into
mainfrom
fix/docs-site-was-empty

Conversation

@webdevsamran

Copy link
Copy Markdown
Owner

Every --8<-- include in this site was silently resolving to nothing.

All nine used a ../ path — --8<-- "../ARCHITECTURE.md" and friends — which pymdownx.snippets refuses because it escapes base_path. check_paths: false turned that refusal into silence, and mkdocs build --strict passed with nothing to say.

The result is live

webdevsamran.github.io/devrepro-doctor has been serving an Architecture page of 68 words — all of it navigation chrome — and the same for Roadmap, Contributing, Security, Interop, Product gaps, Changelog and Code of conduct. The home page was missing its README section entirely.

Page Before After
Architecture 68 words 645
Roadmap 68 383
Security 68 398
Contributing 68 655

Found while porting this docs setup to api-verity-lab: the same include pattern failed there, and rather than work around it I checked whether it had ever worked here. It hadn't.

The fix

  • base_path points at the repository root, and every include drops its ../, so paths stay inside base_path.
  • check_paths: true — a missing snippet is now a build failure, not a silent skip.
  • validation.links.not_found downgraded to info, deliberately and with the reasoning recorded in mkdocs.yml: included root documents carry repo-relative links that are correct where most people read them but sit outside the docs tree inside the site. That check is cosmetic here; check_paths is the one that matters, and it is now loud.

What keeps it fixed

scripts/check_docs_site.py asserts the built site has content, not merely that it built. A page under 120 words is chrome rather than a document — the empty ones measured 68, the real ones 383–655.

Verified by reintroducing the ../ path and watching the build fail.

16 pages now build, all carrying real content.

…yed green

Every `--8<--` include in this site was silently resolving to nothing. All nine
used a `../` path -- `--8<-- "../ARCHITECTURE.md"` and friends -- which
pymdownx.snippets refuses because it escapes `base_path`, and `check_paths:
false` turned that refusal into silence. `mkdocs build --strict` then passed
with nothing to say.

The result is live: https://webdevsamran.github.io/devrepro-doctor/ has been
serving an Architecture page of 68 words, all of it navigation chrome, and the
same for Roadmap, Contributing, Security, Interop, Product gaps, Changelog and
Code of conduct. The home page was missing its README section.

Found while porting this docs setup to api-verity-lab: the same include
pattern failed there, and rather than work around it I checked whether it had
ever worked here. It had not.

Fixed by pointing `base_path` at the repository root and dropping the `../`
from every include, so the paths stay inside base_path. `check_paths` is now
true, which makes a missing snippet a build failure rather than a silent skip.

`validation.links.not_found` is downgraded to info, deliberately and with the
reason recorded in mkdocs.yml: included root documents carry links written
relative to the repository, where they are correct and where most people read
them, but which sit outside the docs tree inside the site. That check is
cosmetic here; `check_paths` is the one that matters, and it is now loud.

scripts/check_docs_site.py asserts the built site has content rather than
merely building. A page under 120 words is chrome, not a document -- empty
pages measured 68, real ones 383 to 655. Verified by reintroducing the `../`
path and watching the build fail.

16 pages now build with real content in all of them.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@webdevsamran
webdevsamran merged commit 4ec5f97 into main Sep 9, 2026
18 checks passed
@webdevsamran
webdevsamran deleted the fix/docs-site-was-empty branch September 9, 2026 12:00
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