File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,30 @@ <h3>{{ _('Quick search') }}</h3>
73
73
{%- endmacro %}
74
74
75
75
{%- macro css() %}
76
- < link rel ="stylesheet " href ="{{ pathto('_static/basic .css', 1) }} " type ="text/css " />
77
- < link rel ="stylesheet " href ="{{ pathto('_static/' + style , 1) }} " type ="text/css " />
76
+ < link rel ="stylesheet " href ="{{ pathto('_static/NO_basic .css', 1) }} " type ="text/css " />
77
+ < link rel ="stylesheet " href ="{{ pathto('_static/' + styles[-1] , 1) }} " type ="text/css " />
78
78
< link rel ="stylesheet " href ="{{ pathto('_static/pygments.css', 1) }} " type ="text/css " />
79
79
{%- for cssfile in css_files %}
80
80
< link rel ="stylesheet " href ="{{ pathto(cssfile, 1) }} " type ="text/css " />
81
81
{%- endfor %}
82
82
{%- endmacro %}
83
83
84
+ {#
85
+ In newer sphinx styles is an array and style does not exist
86
+ In older sphinx (1.x) style is the style set in conf.py.
87
+
88
+ If style exists, assume styles doesn't exist and make styles
89
+ exist with style as the only value.
90
+
91
+ So we can use styles[-1] in the css() macro.
92
+ When sourceforge lets me build docs with something newer than sphinx 1,
93
+ we can delete this.
94
+ #}
95
+ {% if style %}
96
+ {% set styles = [] %}
97
+ {{ styles.append( style ) }}
98
+ {% endif %}
99
+
84
100
< html lang ="en ">
85
101
< head >
86
102
< meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 ">
Original file line number Diff line number Diff line change 84
84
#
85
85
# This is also used if you do content translation via gettext catalogs.
86
86
# Usually you set "language" from the command line for these cases.
87
- language = None
87
+ language = 'en'
88
88
89
89
# There are two options for replacing |today|: either, you set today to some
90
90
# non-false value, then it is used:
117
117
# The name of the Pygments (syntax highlighting) style to use.
118
118
pygments_style = 'sphinx'
119
119
120
+ # disable permalinks
121
+ html_add_permalinks = ''
122
+ html_permalinks = False # when sphinx > 3.5 is used.
123
+
120
124
# A list of ignored prefixes for module index sorting.
121
125
#modindex_common_prefix = []
122
126
Original file line number Diff line number Diff line change 168
168
# template names.
169
169
#html_additional_pages = {}
170
170
171
+ # disable permalinks
171
172
html_add_permalinks = ''
173
+ html_permalinks = False # when sphinx > 3.5 is used.
172
174
173
175
# If false, no module index is generated.
174
176
#html_use_modindex = True
Original file line number Diff line number Diff line change
1
+ sphinx_sitemap
You can’t perform that action at this time.
0 commit comments