Commit 666fdfd 1 parent 768ec1d commit 666fdfd Copy full SHA for 666fdfd
File tree 2 files changed +8
-3
lines changed
tlcpack_sphinx_addon/_templates
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
"""Setup TLCPack."""
3
3
from setuptools import setup , find_packages
4
4
5
- __version__ = "0.2.2 "
5
+ __version__ = "0.2.3 "
6
6
7
7
8
8
setup (
Original file line number Diff line number Diff line change 18
18
{%- set sphinx_writer = 'writer-html5' if html5_doctype else 'writer-html4' %}
19
19
{% set theme_asset_url = theme_asset_url | default(pathto('_static/',1 )) %}
20
20
21
+ {%- set (_ver_major, _ver_minor) = (sphinx_version.split('.') | list)[:2] | map('int') -%}
22
+ {%- set sphinx_version_info = (_ver_major, _ver_minor, -1) -%}
23
+
21
24
<!DOCTYPE html>
22
25
< html class ="{{ sphinx_writer }} " lang ="{{ lang_attr }} " >
23
26
< head >
30
33
31
34
{# CSS #}
32
35
< link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css " integrity ="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm " crossorigin ="anonymous ">
33
- < link rel ="stylesheet " href ="{{ pathto('_static/' + style, 1) }} " type ="text/css " />
36
+ {%- if sphinx_version_info < (4, 0) -%}
37
+ < link rel ="stylesheet " href ="{{ pathto('_static/' + style, 1) }} " type ="text/css " />
38
+ {%- endif %}
34
39
{%- for css in css_files %}
35
40
{%- if css|attr("rel") %}
36
41
< link rel ="{{ css.rel }} " href ="{{ pathto(css.filename, 1) }} " type ="text/css "{% if css.title is not none %} title ="{{ css.title }} "{% endif %} />
158
163
{% for version in version_prefixes %}
159
164
{% set version_url = "/" if version == "main" else version %}
160
165
{% set version_desc = nav_version + " (main)" if version == "main" else version.strip("/") %}
161
-
166
+
162
167
< li > < div class ="version "> < a style ="font-size: 0.8em; padding: 4px " href ="{{ version_url }} "> {{ version_desc }}</ a > </ div > </ li >
163
168
{% endfor %}
164
169
</ ol >
You can’t perform that action at this time.
0 commit comments