Skip to content

Fix typo in README - #1

Merged
JarryShaw merged 1 commit into
JarryShaw:masterfrom
gousaiyang:master
Nov 16, 2017
Merged

JarryShaw merged 1 commit into
JarryShaw:masterfrom
gousaiyang:master

Conversation

@gousaiyang

Copy link
Copy Markdown

No description provided.

@JarryShaw
JarryShaw merged commit 3fb16f6 into JarryShaw:master Nov 16, 2017
Copilot AI added a commit that referenced this pull request Aug 13, 2026
Co-authored-by: JarryShaw <15666417+JarryShaw@users.noreply.github.com>
@JarryShaw JarryShaw added the docs Pull requests that change documentation only (docs: subject prefix) label Sep 22, 2026
JarryShaw added a commit that referenced this pull request Oct 2, 2026
…the conventions pages

Closes nothing yet; the first tranche of #989. A bare ``#NNN`` renders as literal
text, so every tracker citation in the built documentation is unclickable.

The roles are deliberately opt-in per site rather than an automatic ``#NNN``
rule, because no digit-keyed pattern separates a citation from a packet-diagram
label. ``#\d{3}`` already misses 17 two-digit citations that are real, and
``#\d+`` would catch the 45 one-digit RFC diagram labels in
pcapkit/protocols/internet/hip.py and pcapkit/protocols/transport/sctp.py
(``DH GROUP ID #1``, ``Gap Ack Block #1``), which reference nothing. A role
nobody writes cannot corrupt them.

``:issue:`` and ``:pr:`` both caption ``#%s``, so converting a bare citation or
an explicit link changes the markup and not the rendered text. Six sites were
inline literals and are the exception: ``#934``, ``#949`` and ``#911`` in
documentation.rst and ``#759``, ``#805`` and ``#775`` in process.rst rendered as
monospace and now render as links in body font. They are separate roles because the
issue-versus-pull-request distinction is itself a documented convention and one
role would flatten it in the source. ``:discussion:`` exists because the
repository has five GitHub Discussions -- 105, 106, 127, 251 and 274 -- for
which the issues API returns 404, so ``:issue:`` would render a dead link.

Scope, measured rather than taken from the issue: 895 bare citations sit on the
surface Sphinx actually renders, which is docs/**/*.rst plus pcapkit/
docstrings and ``#:`` comments. All 1,580 autodoc directives target pcapkit.*
and there is no literalinclude, so tests/, util/ and examples/ never reach a
page and their citations cannot fail to resolve. 420 of the 895 are actionable;
the other 475 are under docs/source/changelog, which #657 owns and
util/changelog_md.py generates.

This tranche converts 78 sites across the seven conventions pages -- 45 explicit
links collapsed, 6 inline literals, 27 bare. All 33 distinct numbers were
resolved in one GraphQL issueOrPullRequest call and every one is an issue, so
:issue: is correct at each site; the collapsed links asserted label == URL
number, so every rendered URL is byte-identical to before.

Two tests pinned the bare ``#NNN`` source form and this change reddens both.
test_conventions_doc_claims.py's floor now counts explicit links and role
citations together, keeping the pairwise label-versus-URL comparison over
whatever explicit links remain. test_sentinel_exports_unit.py accepts the
citation in either markup form. Both were checked against the old page, where
the pre-change assertions fail, so neither is vacuous.

Verified: Sphinx 9.1.0 builds with exit code 0, the documented root printed and
confirmed inside the worktree, 78 rendered /issues/NNN anchors matching the 78
conversions, and no warning naming any conventions page. tests/project/ gives
258 passed, 1 skipped, 859 subtests; the page-reading corekit tests give 61
passed, 129 subtests. All exit codes read from the process.

The conf.py comment also had three inaccuracies of its own, which a change about
citation accuracy should not ship: it named two files for the 45 one-digit
diagram labels where they live in three (internet/hip.py 36, transport/sctp.py 7,
schema/internet/hip.py 2); it said ``#\d{3}`` misses four-digit numbers "now
arriving" when there are none yet, and omitted the 17 two-digit ones it does
miss; and it claimed rendering was unchanged without the inline-literal
exception.

The Sphinx build is unchanged against main: 61 warnings and 2 errors on both,
no warning or error naming any conventions page, and no warning kind new to the
branch. Both errors are pre-existing, in pcapkit/corekit/infoclass.py and
pcapkit/protocols/schema/schema.py docstrings, neither of which this change
touches.
@JarryShaw JarryShaw added this to the 0.13 milestone Oct 6, 2026
@JarryShaw JarryShaw moved this to Done in PyPCAPKit Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Pull requests that change documentation only (docs: subject prefix)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants