Skip to content

Commit 33e293c

Browse files
committed
Merge pull request #45 from gtback/dynamic_version
Automatically update the version number in the docs.
2 parents c80b2d1 + 1a90aed commit 33e293c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import sys, os
1515
#import sphinx_rtd_theme
1616

17+
from tmuxp import __version__
18+
1719
sys.path.append(os.path.abspath('.'))
1820
sys.path.append(os.path.abspath('_themes'))
1921

@@ -68,9 +70,9 @@
6870
# built documents.
6971
#
7072
# The short X.Y version.
71-
version = '0.1'
73+
version = __version__
7274
# The full version, including alpha/beta/rc tags.
73-
release = '0.1-dev'
75+
release = __version__
7476

7577
# The language for content autogenerated by Sphinx. Refer to documentation
7678
# for a list of supported languages.

0 commit comments

Comments
 (0)