File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 58
58
.wy-side-nav-search > a {
59
59
display : flex;
60
60
align-items : center;
61
- justify-self : center;
61
+ margin : auto;
62
+ width : max-content;
62
63
}
63
64
64
65
.wy-side-nav-search > a img .logo {
Original file line number Diff line number Diff line change 12
12
< a class ="logo " href ="{{ pathto(root_doc) }} ">
13
13
< img class ="logo " src ="{{ logo_url }} " />
14
14
{%- set nav_version = version %}
15
- {% if READTHEDOCS and current_version %}
15
+ {% if current_version %}
16
16
{%- set nav_version = current_version %}
17
17
{% endif %}
18
18
{# don't show the version on RTD if it's the default #}
Original file line number Diff line number Diff line change @@ -180,12 +180,7 @@ def setup(app: Sphinx) -> None:
180
180
app .connect ("source-read" , on_read_source )
181
181
182
182
183
- # Our docs use the READTHEDOCS variable, so copied from:
184
- # https://about.readthedocs.com/blog/2024/07/addons-by-default/
185
- if os .environ .get ("READTHEDOCS" , "" ) == "True" :
186
- if "html_context" not in globals ():
187
- html_context = {}
188
- html_context ["READTHEDOCS" ] = True
183
+ html_context = {"current_version" : os .environ .get ("READTHEDOCS_VERSION_NAME" )}
189
184
190
185
# -- General configuration ------------------------------------------------
191
186
You can’t perform that action at this time.
0 commit comments