Skip to content

Parse Rust doc comments as markdown - #152

Merged
timkpaine merged 2 commits into
python-project-templates:mainfrom
Point72:tkp/sphinxcontrib-rust
Sep 8, 2026
Merged

Parse Rust doc comments as markdown#152
timkpaine merged 2 commits into
python-project-templates:mainfrom
Point72:tkp/sphinxcontrib-rust

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Rust doc comments are markdown by convention, but sphinxcontrib-rust defaults to reStructuredText. That left headings such as # Arguments and # Returns rendering as page headings and fenced code blocks collapsing into literal backticked text.

Description

Brief description of the changes in this PR.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Checklist

  • Linting passes (make lint)
  • Tests pass (make test)
  • New tests added for new functionality
  • Documentation updated (if applicable)
  • Changelog / version bump (if applicable)

Rust doc comments are markdown by convention, but sphinxcontrib-rust
defaults to reStructuredText. That left headings such as # Arguments and
# Returns rendering as page headings and fenced code blocks collapsing into
literal backticked text.
sphinxcontrib-rust shells out to a sphinx-rustdocgen binary that its Python
package only produces as a side effect of compiling the sdist. When uv
serves a cached wheel that step never runs, the binary is absent, and the
docs build fails resolving the executable.

Main only passes today because its cache was cold, so install the binary
directly rather than depending on a cache miss.
@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.19%. Comparing base (16aa2a5) to head (99009c9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #152   +/-   ##
=======================================
  Coverage   86.19%   86.19%           
=======================================
  Files          16       16           
  Lines        2021     2021           
  Branches      209      209           
=======================================
  Hits         1742     1742           
  Misses        217      217           
  Partials       62       62           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@timkpaine
timkpaine merged commit 4dcbc8f into python-project-templates:main Sep 8, 2026
3 checks passed
@timkpaine
timkpaine deleted the tkp/sphinxcontrib-rust branch September 8, 2026 15:04
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