mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Add "suspicious" builder which finds leftover markup in the HTML files.
Patch by Gabriel Genellina.
This commit is contained in:
parent
775aa4a026
commit
700cf28f41
5 changed files with 430 additions and 12 deletions
|
|
@ -92,6 +92,9 @@ class PydocTopicsBuilder(Builder):
|
|||
finally:
|
||||
f.close()
|
||||
|
||||
# Support for checking for suspicious markup
|
||||
|
||||
import suspicious
|
||||
|
||||
# Support for documenting Opcodes
|
||||
|
||||
|
|
@ -116,5 +119,6 @@ def parse_opcode_signature(env, sig, signode):
|
|||
def setup(app):
|
||||
app.add_role('issue', issue_role)
|
||||
app.add_builder(PydocTopicsBuilder)
|
||||
app.add_builder(suspicious.CheckSuspiciousMarkupBuilder)
|
||||
app.add_description_unit('opcode', 'opcode', '%s (opcode)',
|
||||
parse_opcode_signature)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue