Skip to content

Clarify best practice #5 on adding fields to included types#52

Open
rly wants to merge 4 commits intomainfrom
clarify-best-practice-5
Open

Clarify best practice #5 on adding fields to included types#52
rly wants to merge 4 commits intomainfrom
clarify-best-practice-5

Conversation

@rly
Copy link
Copy Markdown
Contributor

@rly rly commented Apr 24, 2026

Summary

  • Tighten the wording of best practice Build of read the docs fails #5 in source/best_practices.rst to explicitly distinguish extension (data_type_def + data_type_inc) from inclusion-only (data_type_inc without data_type_def).
  • Add a concrete VectorData + resolution example to illustrate the discouraged pattern.
  • Add a top-level Best Practices section heading so the page renders in the Sphinx toctree (it was previously missing a title and not appearing in the table of contents).
  • Fix RST list rendering: indent continuation lines of items 2-8 so they parse as part of the enumerated list (previously they broke out of the list and rendered inconsistently).

The previous wording of #5 said "adding ... using data_type_inc is partially supported," which could be read as covering inheritance (the correct pattern) as well as inclusion-only (the discouraged pattern). The new wording mirrors the explicit phrasing used in best practice #6.

Test plan

  • Docs render cleanly on Read the Docs preview
  • Best Practices page appears in the rendered table of contents
  • All eight list items render at the same indentation level

🤖 Generated with Claude Code

Distinguish extension (data_type_def + data_type_inc) from inclusion
(data_type_inc only), and add a VectorData/resolution example.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rly rly requested a review from oruebel April 24, 2026 23:59
rly and others added 3 commits April 24, 2026 17:02
The file had no section title, which prevented Sphinx from showing it
in the index toctree.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
RST requires continuation lines of an enumerated list item to align
with the text after the marker; without indentation, list items 2-8
broke out of the list and rendered inconsistently.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a 1em bottom margin to arabic ordered-list items so the Best
Practices page reads less like a wall of text.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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