@@ -65,31 +65,6 @@ def gh_issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
6565 return [refnode ], []
6666
6767
68- # Support for marking up implementation details
69-
70- class ImplementationDetail (SphinxDirective ):
71-
72- has_content = True
73- final_argument_whitespace = True
74-
75- # This text is copied to templates/dummy.html
76- label_text = sphinx_gettext ('CPython implementation detail:' )
77-
78- def run (self ):
79- self .assert_has_content ()
80- pnode = nodes .compound (classes = ['impl-detail' ])
81- content = self .content
82- add_text = nodes .strong (self .label_text , self .label_text )
83- self .state .nested_parse (content , self .content_offset , pnode )
84- content = nodes .inline (pnode [0 ].rawsource , translatable = True )
85- content .source = pnode [0 ].source
86- content .line = pnode [0 ].line
87- content += pnode [0 ].children
88- pnode [0 ].replace_self (nodes .paragraph (
89- '' , '' , add_text , nodes .Text (' ' ), content , translatable = False ))
90- return [pnode ]
91-
92-
9368class PyCoroutineMixin (object ):
9469 def handle_signature (self , sig , signode ):
9570 ret = super (PyCoroutineMixin , self ).handle_signature (sig , signode )
@@ -219,7 +194,6 @@ def patch_pairindextypes(app, _env) -> None:
219194def setup (app ):
220195 app .add_role ('issue' , issue_role )
221196 app .add_role ('gh' , gh_issue_role )
222- app .add_directive ('impl-detail' , ImplementationDetail )
223197 app .add_object_type ('opcode' , 'opcode' , '%s (opcode)' , parse_opcode_signature )
224198 app .add_object_type ('pdbcommand' , 'pdbcmd' , '%s (pdb command)' , parse_pdb_command )
225199 app .add_object_type ('monitoring-event' , 'monitoring-event' , '%s (monitoring event)' , parse_monitoring_event )
0 commit comments