Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions documentation/markup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -707,10 +707,9 @@ where simpler markup should be used:

In addition, the CPython documentation defines a few custom roles:

* ``:cve:`YYYY-NNNNN```: link to a Common Vulnerabilities and Exposures entry.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* ``:cwe:`NNN```: link to a Common Weakness Enumeration entry.
* ``:gh:`ID```: link to a GitHub issue.
* ``:issue:`ID```: link to a bugs.python.com issue.
* ``:oss-fuzz:`ID```: link to an OSS-Fuzz issue.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* ``:pypi:`NAME```: link to a project on PyPI.
* ``:source:`PATH```: link to a source file on GitHub.

Expand Down Expand Up @@ -970,6 +969,16 @@ in a different style:

The following roles generate external links:

.. describe:: cve

Link to a `Common Vulnerabilities and Exposures <https://www.cve.org/>`__
entry. You can link to a specific section by using ``:cve:`number#anchor```.

.. describe:: cwe

Link to a `Common Weakness Enumeration <https://cwe.mitre.org/>`__ entry.
You can link to a specific section by using ``:cwe:`number#anchor```.

.. describe:: pep

A reference to a Python Enhancement Proposal. This generates appropriate
Expand Down
Loading