Compare commits

..
Author SHA1 Message Date
Anthony Johnson dca4fc7a00 Normalize variable names 2023-10-23 13:06:43 -07:00
Manuel Kaufmann c4edd8b067 Use css_tag only for standard CSS files from Sphinx
... and keep using the custom `link` HTML tag for CSS files included via the
HTML theme option `extra_css_files`.
2023-10-23 17:28:46 +02:00
Manuel Kaufmann 82ee56f89c Revert "Fix #1522: fix attribute error if css is str"
This reverts commit b22a77f35a.
2023-10-23 17:28:30 +02:00
Mathieu Leplatre b22a77f35a Fix #1522: fix attribute error if css is str 2023-09-28 13:18:44 +02:00
7 changed files with 13 additions and 12 deletions

No files matched your search

+2 -2
View File
@@ -4,11 +4,11 @@ Changelog
.. seealso:: :ref:`howto_upgrade`
.. |theme_version| replace:: 2.0.0rc5
.. |theme_version| replace:: 2.0.0rc3
.. _release-2.0.0:
2.0.0rc4
2.0.0rc2
========
Added
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sphinx_rtd_theme",
"version": "2.0.0rc5",
"version": "2.0.0rc3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "sphinx_rtd_theme",
"main": "js/theme.js",
"version": "2.0.0rc5",
"version": "2.0.0rc3",
"scripts": {
"dev": "webpack-dev-server --open --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
+1 -1
View File
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.0rc5
current_version = 2.0.0rc3
commit = false
tag = false
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<dev>\d+))?
+1 -1
View File
@@ -86,7 +86,7 @@ class TransifexCommand(distutils.cmd.Command):
setup(
version='2.0.0rc5',
version='2.0.0rc3',
cmdclass={
'update_translations': UpdateTranslationsCommand,
'transifex': TransifexCommand,
+1 -1
View File
@@ -12,7 +12,7 @@ from sphinx.locale import _
from sphinx.util.logging import getLogger
__version__ = '2.0.0rc5'
__version__ = '2.0.0rc3'
__version_full__ = __version__
logger = getLogger(__name__)
+6 -5
View File
@@ -29,13 +29,14 @@
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
{%- endif %}
{%- for css_file in css_files %}
{%- if css_file|attr("filename") %}
{{ css_tag(css_file) }}
{%- else %}
<link rel="stylesheet" href="{{ pathto(css_file, 1)|escape }}" type="text/css" />
{%- endif %}
{{ css_tag(css_file) }}
{%- endfor %}
{# "extra_css_files" is a theme option and it's always a string #}
{%- for css_file in extra_css_files %}
<link rel="stylesheet" href="{{ pathto(css_file, 1)|escape }}" type="text/css" />
{%- endfor -%}
{#- FAVICON
favicon_url is the only context var necessary since Sphinx 4.
In Sphinx<4, we use favicon but need to prepend path info.