MCPcopy
hub / github.com/sphinx-doc/sphinx / get_transforms

Method get_transforms

sphinx/parsers.py:68–75  ·  view source on GitHub ↗

Sphinx's reST parser replaces a transform class for smart-quotes by its own refs: sphinx.io.SphinxStandaloneReader

(self)

Source from the content-addressed store, hash-verified

66 """A reST parser for Sphinx."""
67
68 def get_transforms(self) -> list[type[Transform]]:
69 """Sphinx's reST parser replaces a transform class for smart-quotes by its own
70
71 refs: sphinx.io.SphinxStandaloneReader
72 """
73 transforms = super(RSTParser, RSTParser()).get_transforms()
74 transforms.remove(SmartQuotes)
75 return transforms
76
77 def parse(self, inputstring: str | StringList, document: nodes.document) -> None:
78 """Parse text and generate a document tree."""

Callers 5

read_docMethod · 0.45
__init__.pyFile · 0.45
parseFunction · 0.45
docutils.pyFile · 0.45
_parse_str_to_doctreeFunction · 0.45

Calls 2

RSTParserClass · 0.85
removeMethod · 0.45

Tested by

no test coverage detected