@@ -152,20 +152,6 @@ def add_directive_header(self, sig: str) -> None:
152152 self .add_line (" " + _ ("Bases: %s" ) % ", " .join (bases ), sourcename )
153153
154154
155- def visit_seealso (translator : LaTeXTranslator , node : addnodes .seealso ) -> None :
156- """
157- Visit an :class:`addnodes.seealso`` node.
158-
159- :param translator:
160- :param node:
161- """
162-
163- if len (node ) > 1 :
164- LaTeXTranslator .visit_seealso (translator , node )
165- else :
166- translator .body .append ('\n \n \\ sphinxstrong{%s:} ' % admonitionlabels ["seealso" ])
167-
168-
169155class Autosummary (AutosummaryWidths ):
170156 """
171157 Modified autosummary directive which allows the summary of objects to be customised.
@@ -272,17 +258,6 @@ def run(self) -> List[Node]:
272258 return nodes
273259
274260
275- class BoldTitle (SphinxRole ):
276-
277- def run (self ) -> Tuple [List [nodes .Node ], List [nodes .system_message ]]:
278-
279- node_list = [
280- nodes .raw ('' , r"\vspace{10px}" , format = "latex" ),
281- nodes .strong (f"**{ self .text } **" , self .text ),
282- ]
283-
284- return node_list , []
285-
286261
287262class AutoUnitDirective (SphinxDirective ):
288263 required_arguments = 1
@@ -302,11 +277,7 @@ def setup(app: Sphinx):
302277 app .add_autodocumenter (TemporaryDirectorySubclassDocumenter )
303278
304279 app .add_role ("inline-code" , InlineRole ())
305- app .add_role ("bold-title" , BoldTitle ())
306-
307280 app .add_directive ("autounit" , AutoUnitDirective )
308-
309- app .add_node (addnodes .seealso , latex = (visit_seealso , LaTeXTranslator .depart_seealso ), override = True )
310281 app .add_directive ("autosummary2" , Autosummary , override = True )
311282
312283
0 commit comments