mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
15 lines
346 B
Python
15 lines
346 B
Python
from docutils import nodes
|
|
from docutils.parsers import Parser
|
|
|
|
|
|
class Parser(Parser):
|
|
supported = ('foo',)
|
|
|
|
def parse(self, input, document):
|
|
section = nodes.section(ids=['id1'])
|
|
section += nodes.title('Generated section', 'Generated section')
|
|
document += section
|
|
|
|
def get_transforms(self):
|
|
return []
|