Repository navigation
docs(schema): convert bare citations to the issue role in docstrings - #1004
Conversation
|
NEEDS CHANGES at
Sphinx emits no warning for it, which is exactly why a green build and identical warning sets are not evidence here. The second form is being applied. I scanned every string token in the six trees for a role inside Two corrections to the description, now fixed above:
Everything else held, including the whole-diff collapse-back and |
…cstrings (#989) - Replace bare `#NNN` citations in docstrings and `#:` attribute doc-comments with `:issue:` under schema, transport, application, link, misc and data; plain `#` comments keep the bare form per the #989 ruling. - Fold the explicit `#NNN <.../issues/NNN>`__ hyperlinks in the pcapng docstrings into the same role. - Leave the one- and two-digit `#N` packet-diagram labels in sctp.py and hip.py untouched; they are RFC diagram text, not citations. Markup only: ast equivalence with docstrings blanked, docs build warning set unchanged, targeted protocol tests pass.
995eaca to
e95ecba
Compare
|
GOOD TO GO at Confirmed with a real Sphinx build using this repo's One rendering delta I under-stated earlier. I said the sentence reads identically word-for-word, which is true of the words but not of the emphasis: the base bolded Three checks came back stronger than mine:
Also a correction to a number I relayed: the Not ready to merge yet — 7 CheckRun legs still in flight, 0 failures. |
|
Ready to merge at Yours to merge. |
Please follow the guide below
make testpasses, and a test case covers the change — docstring-only, so no test change, matching docs(corekit): convert bare citations to the issue role in corekit docstrings #1000, docs(foundation): convert bare citations to the issue role in docstrings #1002 and docs(internet): convert bare citations to the issue role in docstrings #1003What is the purpose of your pull request?
docs— documentation onlyDescription of your pull request and other information
Fifth tranche of #989, after #1000 (
corekit), #1002 (foundationand friends) and #1003 (protocols/internet). Covers the rest ofpcapkit/protocols/—schema,transport,application,link,miscanddata.Scope follows the ruling on #989: plain
#comments keep the bare form, so only docstrings and#:autodoc doc-comments convert. Other string literals are deliberately excluded — the citation in theSchemaErrorf-string atpcapkit/protocols/schema/schema.py:338stays bare, because a role there would print as raw markup in a user-facing traceback.Tokenised by token kind, base
e8a60d153→ head:#:doc-comments#comments#commentsissues/NNNhyperlinks:issue:roles111 roles = 97 bare sites + 14 explicit hyperlinks, across 48 distinct numbers, every one an issue rather than a pull request. The 9 survivors are RFC packet-diagram labels — Chunk, Gap Ack Block, Address Type and Missing Param Type in
transport/sctp.py, andTF type #1/#2inschema/internet/hip.py.The diff is provably pure markup: collapsing every role and every hyperlink back to
#NNNmakes the removed and added text identical across all 25 files.ast.dumpwith every docstring blanked is also identical, so no behaviour can change. 91 of the 111 roles sit in docstring-position literals and the other 20 in#:comments, whichastdoes not see. Docs build warning sets are identical before and after, including the two pre-existing docutils errors.