summaryrefslogtreecommitdiff
path: root/doc/extdev
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-04 22:23:28 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-07 02:12:07 +0900
commitaf4e615a8a25c15df844cf51a2eb2647111bd472 (patch)
tree286bfd6736d7971eaa9a51f7b07cad2dee34417c /doc/extdev
parentac7d574fceddd5dfbedea53af499080f39710aa6 (diff)
downloadsphinx-git-af4e615a8a25c15df844cf51a2eb2647111bd472.tar.gz
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.
Diffstat (limited to 'doc/extdev')
-rw-r--r--doc/extdev/appapi.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/extdev/appapi.rst b/doc/extdev/appapi.rst
index 9f2c10676..a42e9184a 100644
--- a/doc/extdev/appapi.rst
+++ b/doc/extdev/appapi.rst
@@ -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