We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02d716 commit 54c6f29Copy full SHA for 54c6f29
doc/sources/sphinxext/preprocess.py
@@ -6,6 +6,7 @@
6
import types
7
import sys
8
from os.path import dirname, join
9
+import sphinx
10
from sphinx.ext.autodoc import MethodDocumenter
11
12
class CythonMethodDocumenter(MethodDocumenter):
@@ -109,7 +110,10 @@ def setup(app):
109
110
sys.path += [join(dirname(kivy.__file__), 'extras')]
111
from highlight import KivyLexer
112
- app.add_lexer('kv', KivyLexer)
113
+ if sphinx.version_info[0] >= 3:
114
+ app.add_lexer('kv', KivyLexer)
115
+ else:
116
+ app.add_lexer('kv', KivyLexer())
117
app.add_autodocumenter(CythonMethodDocumenter)
118
app.connect('autodoc-process-docstring', callback_docstring)
119
app.connect('autodoc-process-signature', callback_signature)
0 commit comments