Mercurial > kallithea
comparison docs/conf.py @ 8668:2ff983214ea0
imports: always import the whole kallithea module to use top level kallithea variables
This is slightly more lazy and might avoid some depeendency issues.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 11 Oct 2020 01:07:51 +0200 |
parents | e63bcce18fef |
children | cf4c300fe036 |
comparison
equal
deleted
inserted
replaced
8667:072c0352dd36 | 8668:2ff983214ea0 |
---|---|
12 # serve to show the default. | 12 # serve to show the default. |
13 | 13 |
14 import os | 14 import os |
15 import sys | 15 import sys |
16 | 16 |
17 from kallithea import __version__ | 17 import kallithea |
18 | 18 |
19 | 19 |
20 # If extensions (or modules to document with autodoc) are in another directory, | 20 # If extensions (or modules to document with autodoc) are in another directory, |
21 # add these directories to sys.path here. If the directory is relative to the | 21 # add these directories to sys.path here. If the directory is relative to the |
22 # documentation root, use os.path.abspath to make it absolute, like shown here. | 22 # documentation root, use os.path.abspath to make it absolute, like shown here. |
54 # built documents. | 54 # built documents. |
55 # | 55 # |
56 # The short X.Y version. | 56 # The short X.Y version. |
57 root = os.path.dirname(os.path.dirname(__file__)) | 57 root = os.path.dirname(os.path.dirname(__file__)) |
58 sys.path.append(root) | 58 sys.path.append(root) |
59 version = __version__ | 59 version = kallithea.__version__ |
60 # The full version, including alpha/beta/rc tags. | 60 # The full version, including alpha/beta/rc tags. |
61 release = __version__ | 61 release = kallithea.__version__ |
62 | 62 |
63 # The language for content autogenerated by Sphinx. Refer to documentation | 63 # The language for content autogenerated by Sphinx. Refer to documentation |
64 # for a list of supported languages. | 64 # for a list of supported languages. |
65 #language = None | 65 #language = None |
66 | 66 |