Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ project_urls =
[options]
packages = sphinx_rtd_light_dark
setup_requires = setuptools>=44; toml; setuptools_scm>=3.4.3
install_requires = pygments; sphinx_rtd_theme==0.4.3
install_requires = pygments; sphinx_rtd_theme>=2.0.0
include_package_data = True
python_requires = >=3.6.0

Expand Down
6 changes: 3 additions & 3 deletions sphinx_rtd_light_dark/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
css_files method does *not require* pathto() but do not understand why
-->
{% block extrahead %}
<link rel="stylesheet" href="{{ pathto("_static/pygments/default.css", True) }}" type="text/css" id="pygments-style">
<link rel="stylesheet" href="{{ pathto("_static/light-dark.css", True) }}" type="text/css">
<link rel="stylesheet" href="{{ pathto('_static/pygments/default.css', True) }}" type="text/css" id="pygments-style">
<link rel="stylesheet" href="{{ pathto('_static/light-dark.css', True) }}" type="text/css">
{{ super() }}
{% endblock %}
{% block document %}
<script type="text/javascript" src={{ pathto("_static/light-dark.js", True) }}></script>
<script type="text/javascript" src="{{ pathto('_static/light-dark.js', True) }}"></script>
{{ super() }}
{% endblock %}