mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
21 lines
349 B
Python
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,
|
|
}
|