1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +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.
This commit is contained in:
Markus Lehtonen 2021-05-19 10:37:12 +03:00
parent d566ad826b
commit 4d19e1ab85
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: master version: master
display_version_list: true display_version_list: true
# Release is used to make external links to point to the correct blobs in the # Release is the full released version number. Used to make external links to
# Github repo # 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: master release: master
# Container image which to point to in the documentation # Container image which to point to in the documentation

View file

@ -6,7 +6,7 @@
<i class="fa fa-home"></i> {{ site.title }} <i class="fa fa-home"></i> {{ site.title }}
</a> </a>
</div> </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"> <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...' }}"> <input class="form-control input-block input-sm" type="text" name="q" placeholder="{{ __.search_docs | default: 'Search docs...' }}">
</form> </form>