sphinx/tests/roots/test-root/parsermod.py
2018-02-19 23:20:56 +09:00

13 lines
320 B
Python

from docutils import nodes
from docutils.parsers import Parser
class Parser(Parser):
def parse(self, input, document):
section = nodes.section(ids=['id1'])
section += nodes.title('Generated section', 'Generated section')
document += section
def get_transforms(self):
return []