mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
13 lines
320 B
Python
13 lines
320 B
Python
|
from docutils.parsers import Parser
|
||
|
from docutils import nodes
|
||
|
|
||
|
|
||
|
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 []
|