diff --git a/doc/_templates/aversions.html b/doc/_templates/aversions.html new file mode 100644 index 0000000000..ce088c4912 --- /dev/null +++ b/doc/_templates/aversions.html @@ -0,0 +1,25 @@ +{# Add rst-badge after rst-versions for small badge style. #} +
+ + Project ACRN + v: {{ current_version }} + + +
+
+
{{ _('Document Versions') }}
+ {% for slug, url in versions %} +
{{ slug }}
+ {% endfor %} +
+
+
{{ _('projectacrn.org links') }}
+
+ Project Home +
+
+ Wiki +
+
+
+
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html new file mode 100644 index 0000000000..f893294cd2 --- /dev/null +++ b/doc/_templates/layout.html @@ -0,0 +1,14 @@ +{% extends "!layout.html" %} +{% block document %} + {% if is_release %} +
+ The latest development version + of this page may be more current than this released {{ version }} version. +
+ {% endif %} + {{ super() }} +{% endblock %} +{% block menu %} + {% include "aversions.html" %} + {{ super() }} +{% endblock %} diff --git a/doc/_templates/versions.html b/doc/_templates/versions.html index 2fd8271b9c..cd602720c2 100644 --- a/doc/_templates/versions.html +++ b/doc/_templates/versions.html @@ -1,25 +1 @@ -{# Add rst-badge after rst-versions for small badge style. #} -
- - Project ACRN - v: {{ current_version }} - - -
-
-
{{ _('Versions') }}
- {% for slug, url in versions %} -
{{ slug }}
- {% endfor %} -
-
-
{{ _('On projectacrn.org') }}
-
- Project Home -
-
- Wiki -
-
-
-
+{# wipe out the versions.html from the rtd theme #} diff --git a/doc/static/acrn-custom.css b/doc/static/acrn-custom.css index f1c100bb14..5c84ac84ac 100644 --- a/doc/static/acrn-custom.css +++ b/doc/static/acrn-custom.css @@ -30,13 +30,10 @@ font-weight: bold; } -/* tweak doc version selection +/* tweak doc version selection */ .rst-versions { position: static; - border-top: none; - padding: 0px; } -*/ .rst-versions .rst-current-version { padding: 5px;