diff options
author | 2016-02-17 19:00:27 -0500 | |
---|---|---|
committer | 2016-02-17 19:00:27 -0500 | |
commit | 059358d7d01e8eb652c01951ab2f1cc281a7bef3 (patch) | |
tree | 28ecd1eedabf1de19479e04d9e4d34fc921a6538 /doc | |
parent | pquery: add some extended docs for repo type arguments (diff) | |
download | pkgcore-059358d7d01e8eb652c01951ab2f1cc281a7bef3.tar.gz pkgcore-059358d7d01e8eb652c01951ab2f1cc281a7bef3.tar.bz2 pkgcore-059358d7d01e8eb652c01951ab2f1cc281a7bef3.zip |
doc: use pkgcore.const to find project dir
Diffstat (limited to 'doc')
-rw-r--r-- | doc/conf.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/conf.py b/doc/conf.py index 6cb169fe5..a76ff84f0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -23,7 +23,7 @@ if os.path.exists(libdir): sys.path.insert(0, libdir) sys.path.insert(1, os.path.abspath('..')) -from pkgcore import __version__ +from pkgcore import __version__, const from snakeoil.dist.generate_docs import generate_man, generate_html on_rtd = os.environ.get('READTHEDOCS', None) == 'True' @@ -105,10 +105,9 @@ pygments_style = 'sphinx' #modindex_common_prefix = [] # auto-generate required files for RTD build environment -project_dir = os.path.abspath('..') if on_rtd: - generate_man(project, project_dir) - generate_html(project, project_dir) + generate_man(project, const.DATA_PATH) + generate_html(project, const.DATA_PATH) # -- Options for HTML output --------------------------------------------------- |