From 009986efbc6b0f8621a20e14aaeb44f86e299169 Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Sat, 13 Mar 2021 17:54:24 +0100 Subject: [PATCH] automaticlally set version in Sphinx from release --- docs/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index abd02d3..66931df 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,11 +59,14 @@ author = 'aMQTT contributers' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = '0.10' + # The full version, including alpha/beta/rc tags. release = '0.10.0 alpha 0' +# The short X.Y version. +version = ".".join(release.split(".")[:2]) + + # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #