From cca29cf6237d9a00c44011929cc51bbf4ba66bff Mon Sep 17 00:00:00 2001 From: "David B. Kinder" Date: Thu, 4 Apr 2019 14:32:53 -0700 Subject: [PATCH] doc: make doc version selector more obvious Move the doc version selector menu higher on the left nav to make it more visible (from its prior bottom of the nav menu) Signed-off-by: David B. Kinder --- doc/_templates/aversions.html | 25 +++++++++++++++++++++++++ doc/_templates/layout.html | 14 ++++++++++++++ doc/_templates/versions.html | 26 +------------------------- doc/static/acrn-custom.css | 5 +---- 4 files changed, 41 insertions(+), 29 deletions(-) create mode 100644 doc/_templates/aversions.html create mode 100644 doc/_templates/layout.html 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;