Skip to content

docs: convert RST code-block directives in docstrings to Markdown - #132

Merged
TomeHirata merged 1 commit into
mainfrom
docs/convert-docstring-code-blocks
Aug 20, 2026
Merged

docs: convert RST code-block directives in docstrings to Markdown#132
TomeHirata merged 1 commit into
mainfrom
docs/convert-docstring-code-blocks

Conversation

@TomeHirata

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #130. mkdocstrings renders docstrings as Markdown, so the leftover .. code-block:: python directives inside Example: sections were showing up literally on the API reference pages instead of rendering as syntax-highlighted code blocks.

This converts all 9 occurrences (2 in simple.py, 3 in base.py, 4 in local.py) to fenced ```python blocks, and ruff picked up a couple of adjacent formatting normalizations.

Test plan

  • grep -rn "code-block" dte_adj/ returns 0 hits
  • cd docs && uv run mkdocs build --strict builds cleanly
  • Verify Example blocks render as code on the deployed API pages

🤖 Generated with Claude Code

Follow-up to #130. mkdocstrings renders docstrings as Markdown, so the leftover
`.. code-block:: python` directives in Example: sections were showing up literally
on the API pages instead of rendering as code blocks. Converts all 9 occurrences
(simple.py, base.py, local.py) to fenced ```python blocks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 20, 2026 06:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@TomeHirata
TomeHirata merged commit 994db8b into main Aug 20, 2026
10 checks passed
@TomeHirata
TomeHirata deleted the docs/convert-docstring-code-blocks branch August 20, 2026 06:37
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.

2 participants