sphinx/tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
201 B
Python
Raw Normal View History

from docutils.parsers import Parser
class TestSourceParser(Parser):
supported = ('test',)
def setup(app):
app.add_source_suffix('.test', 'test')
app.add_source_parser(TestSourceParser)