Close #6241: html: Allow to add JS/CSS files to the specific page

Allow to add JS/CSS files to the specific page when an extension calls
`app.add_js_file()` or `app.add_css_file()` on `html-page-context`
event.
This commit is contained in:
Takeshi KOMIYA
2021-01-04 22:23:28 +09:00
parent ac7d574fce
commit af4e615a8a
9 changed files with 49 additions and 13 deletions

View File

@@ -369,6 +369,9 @@ Here is a more detailed list of these events.
You can return a string from the handler, it will then replace
``'page.html'`` as the HTML template for this page.
.. note:: You can install JS/CSS files for the specific page via
:meth:`Sphinx.add_js_file` and :meth:`Sphinx.add_css_file` since v3.5.0.
.. versionadded:: 0.4
.. versionchanged:: 1.3