diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-02 18:17:19 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-02 18:17:19 +0300 |
commit | 7739b7d7dde827ce11dc8a94659e149dc51fef98 (patch) | |
tree | 3acde3601aae337e8929e512c2dfc14a792829e9 /sphinx/application.py | |
parent | e9a4ebf70d39f5777100d77e0eadb7a2778066c6 (diff) |
doc: Add explanation about stable sort of html_*_files
Diffstat (limited to 'sphinx/application.py')
-rw-r--r-- | sphinx/application.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 39ab93ed1..2252705c0 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -929,9 +929,11 @@ class Sphinx: Add *filename* to the list of JavaScript files that the default HTML template will include in order of *priority* (ascending). The filename must be relative to the HTML static path , or a full URI with scheme. - If the keyword argument ``body`` is given, its value will be added - between the ``<script>`` tags. Extra keyword arguments are included as - attributes of the ``<script>`` tag. + If the priority of JavaScript file is the same as others, the JavaScript + files will be included in order of the registration. If the keyword + argument ``body`` is given, its value will be added between the + ``<script>`` tags. Extra keyword arguments are included as attributes of + the ``<script>`` tag. Example:: @@ -974,8 +976,10 @@ class Sphinx: Add *filename* to the list of CSS files that the default HTML template will include in order of *priority* (ascending). The filename must be - relative to the HTML static path, or a full URI with scheme. The - eyword arguments are also accepted for attributes of ``<link>`` tag. + relative to the HTML static path, or a full URI with scheme. If the + priority of CSS file is the same as others, the CSS files will be + included in order of the registration. The keyword arguments are also + accepted for attributes of ``<link>`` tag. Example:: |