From ac98ddca7f2dd78fa719f771f202608ff19c266e Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 2 Jun 2021 07:16:53 +0300 Subject: [PATCH] docs: show full version number in sidebar Change the sidebar customization so that the full version (e.g. v0.2.0) is displayed, instead of the truncated "releae branch version" (e.g. v0.2) 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 node-feature-discovery repo commit 4d19e1ab85b6cf4c6a2f6e556bf04654e4fb238e. --- docs/_config.yml | 5 +++-- docs/_includes/class/sidebar-wrap.liquid | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index f6b27729..75fedad5 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -45,8 +45,9 @@ remote_theme: rundocs/jekyll-rtd-theme@v2.0.9 version: master 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: master # Container image which to point to in the documentation diff --git a/docs/_includes/class/sidebar-wrap.liquid b/docs/_includes/class/sidebar-wrap.liquid index e2a7340a..e7fdcce2 100644 --- a/docs/_includes/class/sidebar-wrap.liquid +++ b/docs/_includes/class/sidebar-wrap.liquid @@ -6,7 +6,7 @@ {{ site.title }} - {{ site.version }} + {{ site.release }}