Skip to content

Commit a0f3b3d

Browse files
committed
Split directives list
1 parent 082d9e1 commit a0f3b3d

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

sphinxlint.py

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,30 @@
7676

7777
# fmt: off
7878
directives = [
79-
# standard docutils ones
80-
'admonition', 'attention', 'caution', 'class', 'compound', 'container',
81-
'contents', 'csv-table', 'danger', 'date', 'default-role', 'epigraph',
82-
'error', 'figure', 'footer', 'header', 'highlights', 'hint', 'image',
83-
'important', 'include', 'line-block', 'list-table', 'meta', 'note',
84-
'parsed-literal', 'pull-quote', 'raw', 'replace',
85-
'restructuredtext-test-directive', 'role', 'rubric', 'sectnum', 'sidebar',
86-
'table', 'target-notes', 'tip', 'title', 'topic', 'unicode', 'warning',
87-
# Sphinx and Python docs custom ones
88-
'acks', 'attribute', 'autoattribute', 'autoclass', 'autodata',
89-
'autoexception', 'autofunction', 'automethod', 'automodule',
90-
'availability', 'centered', 'cfunction', 'class', 'classmethod', 'cmacro',
91-
'cmdoption', 'cmember', 'code-block', 'confval', 'cssclass', 'ctype',
92-
'currentmodule', 'cvar', 'data', 'decorator', 'decoratormethod',
93-
'deprecated-removed', 'deprecated(?!-removed)', 'describe', 'directive',
94-
'doctest', 'envvar', 'event', 'exception', 'function', 'glossary',
95-
'highlight', 'highlightlang', 'impl-detail', 'index', 'literalinclude',
96-
'method', 'miscnews', 'module', 'moduleauthor', 'opcode', 'pdbcommand',
97-
'productionlist', 'program', 'role', 'sectionauthor', 'seealso',
98-
'sourcecode', 'staticmethod', 'tabularcolumns', 'testcode', 'testoutput',
99-
'testsetup', 'toctree', 'todo', 'todolist', 'versionadded',
100-
'versionchanged'
79+
# reStructuredText directives:
80+
'admonition', 'attention', 'caution', 'class', 'code', 'code-block',
81+
'compound', 'container', 'contents', 'csv-table', 'danger', 'date',
82+
'default-role', 'epigraph', 'error', 'figure', 'footer', 'header',
83+
'highlights', 'hint', 'image', 'important', 'include', 'line-block',
84+
'list-table', 'math', 'meta', 'note', 'parsed-literal', 'pull-quote', 'raw',
85+
'replace', 'restructuredtext-test-directive', 'role', 'rubric',
86+
'section-numbering', 'sectnum', 'sidebar', 'sourcecode', 'table',
87+
'target-notes', 'tip', 'title', 'topic', 'unicode', 'warning',
88+
# Added by Sphinx:
89+
'acks', 'centered', 'codeauthor', 'default-domain', 'deprecated',
90+
'describe', 'highlight', 'hlist', 'index', 'literalinclude', 'moduleauthor',
91+
'object', 'only', 'rst-class', 'sectionauthor', 'seealso', 'tabularcolumns',
92+
'toctree', 'versionadded', 'versionchanged',
93+
# Python docs custom ones:
94+
'attribute', 'autoattribute', 'autoclass', 'autodata', 'autoexception',
95+
'autofunction', 'automethod', 'automodule', 'availability', 'cfunction',
96+
'classmethod', 'cmacro', 'cmdoption', 'cmember', 'confval', 'cssclass',
97+
'ctype', 'currentmodule', 'cvar', 'data', 'decorator', 'decoratormethod',
98+
'deprecated-removed', 'deprecated(?!-removed)', 'directive', 'doctest',
99+
'envvar', 'event', 'exception', 'function', 'glossary', 'highlightlang',
100+
'impl-detail', 'method', 'miscnews', 'module', 'opcode', 'pdbcommand',
101+
'productionlist', 'program', 'sourcecode', 'staticmethod', 'testcode',
102+
'testoutput', 'testsetup', 'todo', 'todolist',
101103
]
102104
# fmt: on
103105

0 commit comments

Comments
 (0)