sphinx/tests/roots/test-add_source_parser-conflicts-with-users-setting/conf.py
2025-01-03 01:33:14 +00:00

21 lines
349 B
Python

import sys
from pathlib import Path
sys.path.insert(0, str(Path.cwd().resolve()))
from docutils.parsers import Parser
class DummyTestParser(Parser):
supported = ('dummy',)
extensions = ['source_parser']
source_suffix = {
'.rst': 'restructuredtext',
'.test': 'restructuredtext',
}
source_parsers = {
'.test': DummyTestParser,
}