Skip to content

docs: name and link the example file before every snippet include - #447

Merged
allen0099 merged 1 commit into
masterfrom
claude/lucid-archimedes-4gzb2o-394-snippets
Oct 8, 2026
Merged

allen0099 merged 1 commit into
masterfrom
claude/lucid-archimedes-4gzb2o-394-snippets

Conversation

@allen0099

Copy link
Copy Markdown
Owner

Fixes #394

Summary

GitHub renders a page under docs/ without expanding --8<--, so a reader there saw only the include line where the code should be. Rather than inlining the examples (which would duplicate what tests/test_examples.py keeps working), the sentence before every include now names the example file and links to it on GitHub:

  • English: APP_CACHE.md, BACKENDS.md, HTTP_CACHING.md (×2), JWT_CLAIMS.md (×3; the fourth already linked the file), STATE.md. SESSION.md already linked its two.
  • zh-TW: the same pages, with the usual "(程式碼註解為英文)" note.
  • README.md says once, at the top of the Documentation section, that the guides are meant to be read on the site and why.
  • DEVELOPMENT.md records the convention next to the snippet instructions, so new includes follow it.

Both sites build with zensical build --strict. Docs only, no changelog fragment.

Checklist

  • The issue above is assigned to me
  • Tests under tests/ cover the change (not applicable: docs)
  • A changelog fragment changelog.d/<issue>.<section>.md (required for any change under fastapi_cachex/) (not applicable)
  • uv run pre-commit run --all-files and uv run pytest pass

🤖 Generated with Claude Code

https://claude.ai/code/session_01UTXhK1BtwXTBDaouEcKtpW


Generated by Claude Code

GitHub renders a page under docs/ without expanding `--8<--`, so a
reader there saw only the include line where the code should be. The
sentence before each include now links the example file on GitHub, in
both languages, the README says so once for the whole docs/ tree, and
the development guide records the convention.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UTXhK1BtwXTBDaouEcKtpW
@allen0099
allen0099 merged commit cd52ca6 into master Oct 8, 2026
13 checks passed
@allen0099
allen0099 deleted the claude/lucid-archimedes-4gzb2o-394-snippets branch October 8, 2026 06:17
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.

docs: pages that include example files render as raw --8<-- lines on GitHub

2 participants