From 01f6991a9dae218f8b0731a19451d5493477a834 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Thu, 27 Feb 2020 12:12:47 +0100
Subject: [PATCH] Show short version as header in menu

---
 doc/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/conf.py b/doc/conf.py
index cf1e47b..a66f790 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -22,7 +22,8 @@ from pkg_resources import get_distribution
 # -- Project information -----------------------------------------------------
 
 version = get_distribution('km3io').version
-project = 'km3io {}'.format(version)
+short_version = '.'.join(version.split('.')[:2])
+project = 'km3io {}'.format(short_version)
 copyright = '{0}, Zineb Aly and Tamas Gal'.format(date.today().year)
 author = 'Zineb Aly, Tamas Gal, Johannes Schumann'
 
-- 
GitLab