Merge pull request #5034 from tk0miya/add_html_js_files

Add :confval:`html_js_files`
This commit is contained in:
Takeshi KOMIYA
2018-06-09 11:51:11 +09:00
committed by GitHub
7 changed files with 80 additions and 16 deletions

View File

@@ -879,6 +879,22 @@ that use Sphinx's HTMLWriter class.
.. versionadded:: 1.8
.. confval:: html_js_files
A list of JavaScript *filename*. The entry must be a *filename* string or a
tuple containing the *filename* string and the *attributes* dictionary. The
*filename* must be relative to the :confval:`html_static_path`, or a full
URI with scheme like ``http://example.org/script.js``. The *attributes* is
used for attributes of ``<script>`` tag. It defaults to an empty list.
Example::
html_js_files = ['script.js',
'https://example.com/scripts/custom.js',
('custom.js', {'async': 'async'})]
.. versionadded:: 1.8
.. confval:: html_static_path
A list of paths that contain custom static files (such as style