Skip to content

Commit ca188f1

Browse files
committed
Get version number for docs from module
1 parent 6970744 commit ca188f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
#sys.path.insert(0, os.path.abspath('.'))
19+
sys.path.insert(0, os.path.abspath('..'))
2020

2121
# -- General configuration -----------------------------------------------------
2222

@@ -47,10 +47,11 @@
4747
# |version| and |release|, also used in various other places throughout the
4848
# built documents.
4949
#
50+
import xdg
5051
# The short X.Y version.
51-
version = '0.23'
52+
version = xdg.__version__
5253
# The full version, including alpha/beta/rc tags.
53-
release = '0.23'
54+
release = xdg.__version__
5455

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

0 commit comments

Comments
 (0)