11{% extends "!layout.html" %}
2- {%- block extrahead %}
3- < script src ="https://www.ti.com/assets/js/headerfooter/analytics.js " type ="text/javascript " charset ="utf-8 "> </ script >
4- {{ super() }}
2+ {%- block extrahead %}
3+ < script src ="https://www.ti.com/assets/js/headerfooter/analytics.js " type ="text/javascript " charset ="utf-8 "> </ script >
4+ {{ super() }}
55{% endblock %}
66{%- block sidebartitle %}
7- {# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #}
8- {# the master_doc variable was renamed to root_doc in Sphinx 4 (master_doc still exists in later Sphinx versions) #}
9- {%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %}
10- {%- set _root_doc = root_doc|default(master_doc) %}
11- < a href ="{{ pathto(_root_doc) }} "{% if not theme_logo_only %} class ="icon icon-home "{% endif %} >
12- {% if not theme_logo_only %}{{ project }}{% endif %}
13- {%- if logo or logo_url %}
14- < img src ="{{ _logo_url }} " class ="logo " alt ="{{ _('Logo') }} "/>
15- {%- endif %}
16- </ a >
17- {%- set nav_version = version %}
18- {%- if nav_version %}
19- < div class ="version ">
20- {{ nav_version }}
21- </ div >
7+ {# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #}
8+ {# the master_doc variable was renamed to root_doc in Sphinx 4 (master_doc still exists in later Sphinx versions) #}
9+ {%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %}
10+ {%- set _root_doc = root_doc|default(master_doc) %}
11+ < a href ="{{ pathto(_root_doc) }} " {% if not theme_logo_only %} class ="icon icon-home " {% endif %} >
12+ {% if not theme_logo_only %}{{ project }}{% endif %}
13+ {%- if logo or logo_url %}
14+ < img src ="{{ _logo_url }} " class ="logo " alt ="{{ _('Logo') }} " />
2215 {%- endif %}
23- {%- include "searchbox.html" %}
24- {% endblock %}
16+ </ a >
17+ {%- set nav_version = version %}
18+ {%- if nav_version and versions %}
19+ < div class ="version ">
20+ < select id ="version-selector "
21+ onchange ="location.href = location.href.replace(/\/docs\/[^\/]+\//, '/docs/' + this.value + '/'); "
22+ style ="background-color: white; color: black; border: 1px solid #d9d9d9; padding: 5px; border-radius: 3px; ">
23+ {% for v in versions %}
24+ < option value ="{{ v }} " {% if v ==nav_version %}selected{% endif %} > {{ v }}</ option >
25+ {% endfor %}
26+ </ select >
27+ </ div >
28+ {%- elif nav_version %}
29+ < div class ="version ">
30+ {{ nav_version }}
31+ </ div >
32+ {%- endif %}
33+ {%- include "searchbox.html" %}
34+ {% endblock %}
0 commit comments