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

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

21 lines
348 B
Python
Raw Normal View History

import sys
from pathlib import Path
2018-02-19 07:39:14 -06:00
sys.path.insert(0, str(Path.cwd().resolve()))
from docutils.parsers import Parser
class DummyTestParser(Parser):
supported = ('dummy',)
2017-01-03 07:24:00 -06:00
extensions = ['source_parser']
source_suffix = {
'.rst': 'restructuredtext',
'.test': 'restructuredtext',
}
source_parsers = {
'.test': DummyTestParser
}