File tree Expand file tree Collapse file tree 5 files changed +31
-21
lines changed Expand file tree Collapse file tree 5 files changed +31
-21
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ jobs:
114
114
sphinx-copybutton
115
115
sphinx-design
116
116
sphinx-gallery
117
- sphinx_rtd_theme<3.0
117
+ sphinx_rtd_theme
118
118
cairosvg
119
119
sphinxcontrib-svg2pdfconverter
120
120
tectonic
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ dependencies:
31
31
- sphinx-copybutton
32
32
- sphinx-design
33
33
- sphinx-gallery
34
- - sphinx_rtd_theme<3.0
34
+ - sphinx_rtd_theme
35
35
# Dev dependencies (building PDF documentation)
36
36
# 'sphinxcontrib-svg2pdfconverter' is required since it's added to `extensions`.
37
37
- sphinxcontrib-svg2pdfconverter
Original file line number Diff line number Diff line change 52
52
max-width : 1000px ;
53
53
}
54
54
55
+ /* Compatibility with sphinx_rtd_theme v3.x.x */
56
+ /* https://github.com/TexasInstruments/processor-sdk-doc/commit/4fa6276ddcf7f9db919af2e5b3aec7e70a1afa16 */
57
+ .wy-side-nav-search > div .version {
58
+ margin-top : -.4045em ;
59
+ margin-bottom : .809em ;
60
+ font-weight : 400 ;
61
+ color : hsla (0 , 0% , 100% , .3 );
62
+ }
63
+
55
64
/* Format parameters section similar to sphinx_rtd_theme v4.x.x (not a grid) */
56
65
html .writer-html5 .rst-content dl .field-list {
57
66
display : initial;
Original file line number Diff line number Diff line change 31
31
{% endblock %}
32
32
33
33
34
- {% block sidebartitle %}
35
- < a href ="{{ pathto(root_doc) }} "> < h2 class ="sidebar-title "> {{ project }}</ h2 > </ a >
36
-
37
- {% if theme_display_version %}
38
- {%- set nav_version = version %}
39
- {% if READTHEDOCS and current_version %}
40
- {%- set nav_version = current_version %}
41
- {% endif %}
42
- {% if nav_version %}
43
- < div class ="version ">
44
- {{ nav_version }}
45
- </ div >
46
- {% endif %}
47
- {% endif %}
48
-
49
- {% include "searchbox.html" %}
50
-
51
- {% endblock %}
34
+ {%- block sidebartitle %}
35
+ {# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #}
36
+ {# the master_doc variable was renamed to root_doc in Sphinx 4 (master_doc still exists in later Sphinx versions) #}
37
+ {%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %}
38
+ {%- set _root_doc = root_doc|default(master_doc) %}
39
+ < a href ="{{ pathto(_root_doc) }} ">
40
+ {% if not theme_logo_only %}< h2 class ="sidebar-title "> {{ project }}</ h2 > {% endif %}
41
+ {%- if logo or logo_url %}
42
+ < img src ="{{ _logo_url }} " class ="logo " alt ="{{ _('Logo') }} "/>
43
+ {%- endif %}
44
+ </ a >
45
+ {%- set nav_version = version %}
46
+ {%- if nav_version %}
47
+ < div class ="version ">
48
+ {{ nav_version }}
49
+ </ div >
50
+ {%- endif %}
51
+ {%- include "searchbox.html" %}
52
+ {% endblock %}
52
53
53
54
54
55
{% block menu %}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ dependencies:
43
43
- sphinx-copybutton
44
44
- sphinx-design
45
45
- sphinx-gallery>=0.19.0
46
- - sphinx_rtd_theme<3.0
46
+ - sphinx_rtd_theme
47
47
# Dev dependencies (building PDF documentation)
48
48
- cairosvg
49
49
- sphinxcontrib-svg2pdfconverter
You can’t perform that action at this time.
0 commit comments