Skip to content

docs: use .. rubric:: References, not a :references: field, in every docstring - #1004

Merged
petercorke merged 1 commit into
mainfrom
docs/references-rubric
Nov 28, 2026
Merged

petercorke merged 1 commit into
mainfrom
docs/references-rubric

Conversation

@petercorke

Copy link
Copy Markdown
Owner

What

63 docstrings had a :references:, :References: or :reference: field, in 48 source files. Sphinx does not know that as a section: it renders as one more field after the parameters. Each is now a .. rubric:: References, with the body at the rubric's own indentation, as the ecosystem guidance (rvc-ecosystem/AGENTS.md, Docstrings) says. The model template in src/roboticstoolbox/models/DH/README.md has the same change, so new models start correct. Two forms needed care: inline text (such as the Bug2 and Dubins references) moved under the rubric, and one empty :Reference: in Bug2.py followed by a bullet list.

Behaviour

Docstrings and one README only. No code, tests or numerical results change, and no files at the repository root.

What I ran, and what I could not

  • git grep finds no :references: field left in the repository, and every changed file compiles.
  • A local Sphinx HTML build from this branch (pure-Python path, parallel): 2 warnings, both the sphinx_pyrunblock "not safe for parallel reading" notice, none about indentation or lists in the converted docstrings. I read the rendered trajectory page: the References heading is followed by the reference.
  • Some .. runblock:: examples of the compiled-only ik_LM, ik_NR and ik_GN print tracebacks in my pure-Python environment; none is in a file this PR changes.
  • Could not run: a side-by-side build of main, and the other operating systems and Python versions (CI is the check).

AI assistance

Written with Claude Code (Claude Sonnet 5.5), reviewed by the maintainer.

🤖 Generated with Claude Code

…docstring

63 docstrings (and the model template in models/DH/README.md) had a :references:,
:References: or :reference: field.  Sphinx does not know it as a section: it renders as
one more field after the parameters.  Each is now a ``.. rubric:: References``, with the
body at the rubric's own indentation, as the ecosystem guidance says.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit 5aef407 into main Nov 28, 2026
24 checks passed
@petercorke
petercorke deleted the docs/references-rubric branch November 28, 2026 07:31
@github-actions github-actions Bot mentioned this pull request Nov 28, 2026
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