mirror of https://github.com/kivy/kivy.git
Sphinx: Use class instead of instance in add_lexer + Fixes search on sphinx>1.7.9 (#7623)
* Use class instead of instance in add_lexer * Fixes search with newer sphinx
This commit is contained in:
parent
9152bc8590
commit
6a99134255
|
@ -1,6 +1,5 @@
|
|||
Cython>=0.24
|
||||
# Frozen Sphinx requirements for easier pip installation
|
||||
sphinx==1.7.9
|
||||
sphinxcontrib-actdiag
|
||||
sphinxcontrib-blockdiag
|
||||
sphinxcontrib-nwdiag
|
||||
|
|
|
@ -106,12 +106,14 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
{%- block scripts %}
|
||||
{%- for scriptfile in script_files %}
|
||||
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
||||
{%- endfor %}
|
||||
<script type="text/javascript" src="{{ pathto('_static/jquery-effects-core-and-slide.js', 1) }}"></script>
|
||||
<script type="text/javascript" src="{{ pathto('_static/jquery.cookie.js', 1) }}"></script>
|
||||
<script type="text/javascript" src="{{ pathto('_static/kivy.js', 1) }}"></script>
|
||||
{%- endblock %}
|
||||
{%- if use_opensearch %}
|
||||
<link rel="search" type="application/opensearchdescription+xml"
|
||||
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
|
||||
|
|
|
@ -109,7 +109,7 @@ def setup(app):
|
|||
sys.path += [join(dirname(kivy.__file__), 'extras')]
|
||||
from highlight import KivyLexer
|
||||
|
||||
app.add_lexer('kv', KivyLexer())
|
||||
app.add_lexer('kv', KivyLexer)
|
||||
app.add_autodocumenter(CythonMethodDocumenter)
|
||||
app.connect('autodoc-process-docstring', callback_docstring)
|
||||
app.connect('autodoc-process-signature', callback_signature)
|
||||
|
|
Loading…
Reference in New Issue