Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-02 20:04:36 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-02 20:41:17 +0300
commit5b392e39514eefe9ff2dea5d0b084f00c0f740cd (patch)
treec23ed600c820c1f920f54c3947d982857e277c60 /sphinx/themes
parenta9c7dd70374b60d9eee640f8c78694c0b568b589 (diff)
refactor: Move CSS tags in basic/layout.html to ``css_files`` variable
To make CSS customizable, all CSS files in basic/layout.html has their priority: 200. Therefore, extensions and users can insert their own custom CSS files before or just after them. As a side effect, the CSS tags in basic/layout.html are removed. These CSS files will be rendered via `css_files` template variable. refs: #8634, c5f03980107e123210fb602f4c31f5ae950e2af4
Diffstat (limited to 'sphinx/themes')
-rw-r--r--sphinx/themes/basic/layout.html2
1 files changed, 0 insertions, 2 deletions
diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html
index bd56681c0..bae8ddd68 100644
--- a/sphinx/themes/basic/layout.html
+++ b/sphinx/themes/basic/layout.html
@@ -95,8 +95,6 @@
{%- endmacro %}
{%- macro css() %}
- <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
- <link rel="stylesheet" href="{{ pathto('_static/' + style, 1)|e }}" type="text/css" />
{%- for css in css_files %}
{%- if css|attr("filename") %}
{{ css_tag(css) }}