blob: d466bf1b01b8bafa492770c3a4f0d98fa155f126 [file] [log] [blame]
Nathan Skrzypczakae560972021-10-29 12:05:29 +02001{# This overrides ./sphinx_rtd_theme/versions.html #}
2{# from https://github.com/readthedocs/sphinx_rtd_theme.git #}
3<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="{{ _('Versions') }}">
4 <span class="rst-current-version" data-toggle="rst-current-version">
5 <span class="fa fa-book"> VPP versions</span>
6 {% set version_split = version.split('-') %}
7 {{ version_split[0] }}
8 <span class="fa fa-caret-down"></span>
9 </span>
10 <div class="rst-other-versions">
11 <dl id="version-container">
12 <!-- versions will end up here -->
13 </dl>
14 <dl>
15 <dt>Other links</dt>
16 <dd>
17 <a href="https://fd.io">Project Home</a>
18 </dd>
19 </dl>
20 </div>
21</div>
22<script type="text/javascript">
23$(document).ready(function() {
24 $.getJSON( "https://fd.io/vpp_versions.json", function( data ) {
25 let cont = $("#version-container");
26 cont.empty();
27 cont.append('<dt>Versions</dt>');
28 $.each( data, function( key, val ) {
29 cont.append('<dd><a href="' + val.link + '">' + val.name + '</a></dd>');
30 });
31 });
32});
33</script>