summaryrefslogtreecommitdiff
path: root/sphinx/application.py
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2018-12-28 12:50:20 +0100
committerjfbu <jfbu@free.fr>2018-12-28 12:50:20 +0100
commit32d57b8637b89cdbd90da748f7cd7cd0e6d7d9f8 (patch)
tree6ec66ea9f429f4853e063a47cf4d2cfcd46bc092 /sphinx/application.py
parent4f37b3342a2497913258d05cde413242bae543d7 (diff)
parent38c5ec13a54a2b7fcd7e70956ee99a656a651f13 (diff)
downloadsphinx-git-32d57b8637b89cdbd90da748f7cd7cd0e6d7d9f8.tar.gz
Merge branch '1.8'
resolved Conflicts: doc/development/tutorials/todo.rst sphinx/locale/__init__.py sphinx/search/zh.py
Diffstat (limited to 'sphinx/application.py')
-rw-r--r--sphinx/application.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index 0e3bcac3e..50bb9dfda 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -936,10 +936,10 @@ class Sphinx:
Example::
app.add_js_file('example.js')
- # => <scrtipt src="_static/example.js"></script>
+ # => <script src="_static/example.js"></script>
app.add_js_file('example.js', async="async")
- # => <scrtipt src="_static/example.js" async="async"></script>
+ # => <script src="_static/example.js" async="async"></script>
.. versionadded:: 0.5
@@ -1145,13 +1145,14 @@ class Sphinx:
# type: (str, Tuple[Callable, Callable], Tuple[Callable, Callable]) -> None
"""Register a math renderer for HTML.
- The *name* is a name of the math renderer. Both *inline_renderers* and
- *block_renderes* are used as visitor functions for HTML writer.
- *inline_renderers* is used for inline math node (``nodes.math`)). The
- another is used for block math node (``nodes.math_block``). About
- visitor functions, see :meth:`add_node` for more details.
+ The *name* is a name of math renderer. Both *inline_renderers* and
+ *block_renderers* are used as visitor functions for the HTML writer:
+ the former for inline math node (``nodes.math``), the latter for
+ block math node (``nodes.math_block``). Regarding visitor functions,
+ see :meth:`add_node` for details.
.. versionadded:: 1.8
+
"""
self.registry.add_html_math_renderer(name, inline_renderers, block_renderers)