sphinx
sphinx copied to clipboard
Add CVE and CWE roles
Subject:
Feature or Bugfix
- Feature
Purpose
- Add a
cverole to turn:cve:`2020-10735`into https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735 - Add a
cwerole to turn:cwe:`787`into https://cwe.mitre.org/data/definitions/787.html
Detail
- Add
cveandcweroles, similar to existingpepandrfcroles, to link to the Common Vulnerabilities and Exposures and Common Weakness Enumeration websites.
Relates
- https://github.com/sphinx-doc/sphinx/pull/11780
No objection in principle, though this feels like a feature is missing to make this easier -- these roles are just extlinks, in bold, with customised classes ('cve'/'cwe') and index entries.
A
We could refactor this by adding a class reponsible for this kind of things maybe?