1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

docs: show full version number in sidebar

Change the sidebar customization so that the full version (e.g. v0.8.2)
is displayed, instead of the truncated "releae branch version" (e.g.
v0.8) in the top left corner of the page. The items in the version menu
are unchanged and will still show the shorter form.

(cherry picked from commit 4d19e1ab85)
This commit is contained in:
Markus Lehtonen 2021-05-19 10:37:12 +03:00
parent 94dbcbcd5a
commit 702461cf43
2 changed files with 4 additions and 3 deletions

View file

@ -44,8 +44,9 @@ remote_theme: rundocs/jekyll-rtd-theme@v2.0.9
version: v0.8
display_version_list: true
# Release is used to make external links to point to the correct blobs in the
# Github repo
# Release is the full released version number. Used to make external links to
# point to the correct blobs in the Github repo. This is also the version shown
# in the sidebar (top left corner of the page)
release: v0.8.2
# Container image which to point to in the documentation

View file

@ -6,7 +6,7 @@
<i class="fa fa-home"></i> {{ site.title }}
</a>
</div>
<span class="version">{{ site.version }}</span>
<span class="version">{{ site.release }}</span>
<form class="search pt-2" action="{{ site.baseurl }}/search.html" method="get" autocomplete="off">
<input class="form-control input-block input-sm" type="text" name="q" placeholder="{{ __.search_docs | default: 'Search docs...' }}">
</form>