]> git.phdru.name Git - sqlconvert.git/blobdiff - docs/conf.py
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[sqlconvert.git] / docs / conf.py
index ecbec327e4a27fbcb7b30614ba482bbac37209e5..a224bb8f6bb8816d9b04802a62a9428a550d4440 100644 (file)
@@ -17,9 +17,9 @@
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 #
 from datetime import date
-import os
-import sys
-# sys.path.insert(0, os.path.abspath('.'))
+import os
+import sys
+sys.path.insert(0, os.path.abspath('..'))
 
 # -- General configuration ------------------------------------------------
 
@@ -61,9 +61,11 @@ copyright = u'2016-%d, %s' % (date.today().year, author)
 # built documents.
 #
 # The short X.Y version.
-version = u'0.0'
+from sqlconvert.__version__ import __version__
+# The short X.Y version.
+version = '.'.join(__version__.split('.')[:2])
 # The full version, including alpha/beta/rc tags.
-release = u'0.0.1'
+release = __version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.