summaryrefslogtreecommitdiff
path: root/tests/roots/test-root/parsermod.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-22 11:38:24 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-25 02:03:56 +0900
commitbece0484e5e21e9488f248eb24d17fa38c4c6cc1 (patch)
tree43ffae21b48622c68dc13391524eefbe740633bf /tests/roots/test-root/parsermod.py
parentdc45877d3cb9f67348d3e2857bc489e16b71f61a (diff)
downloadsphinx-git-bece0484e5e21e9488f248eb24d17fa38c4c6cc1.tar.gz
source_parsers should fill Parser.supported attribute to let Sphinx know supported formats
Diffstat (limited to 'tests/roots/test-root/parsermod.py')
-rw-r--r--tests/roots/test-root/parsermod.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/roots/test-root/parsermod.py b/tests/roots/test-root/parsermod.py
index 3e5330ac8..f98d82f3e 100644
--- a/tests/roots/test-root/parsermod.py
+++ b/tests/roots/test-root/parsermod.py
@@ -3,6 +3,8 @@ from docutils import nodes
class Parser(Parser):
+ supported = ('foo',)
+
def parse(self, input, document):
section = nodes.section(ids=['id1'])
section += nodes.title('Generated section', 'Generated section')