mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
docs: customize the theme to show current version
Show current version (configured in _config.yml) in the sidebar instead of the latest release from Github.
This commit is contained in:
parent
611612fd97
commit
37cbf80c19
1 changed files with 18 additions and 0 deletions
18
docs/_includes/class/sidebar-wrap.liquid
Normal file
18
docs/_includes/class/sidebar-wrap.liquid
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div class="sidebar-wrap overflow-hidden">
|
||||
<div class="sidebar height-full overflow-y-scroll overflow-x-hidden">
|
||||
<div class="header d-flex flex-column p-3 text-center">
|
||||
<div class="title pb-1">
|
||||
<a class="h4 no-underline py-1 px-2 rounded-1" href="{{ site.baseurl }}/" title="{{ site.description }}">
|
||||
<i class="fa fa-home"></i> {{ site.title }}
|
||||
</a>
|
||||
</div>
|
||||
<span class="version">{{ site.version }}</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>
|
||||
</div>
|
||||
<div class="toctree py-2" data-spy="affix" role="navigation" aria-label="main navigation">
|
||||
{% include class/_toctree.liquid %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue