From: kaliko Date: Fri, 9 Feb 2024 15:14:53 +0000 (+0100) Subject: Fixed sphinx build X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=e4f642e20348dab3523316157dafdd609fa32455;p=mpd-sima.git Fixed sphinx build --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ae3330..fde280f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,7 +29,8 @@ smoketest: # build wheel and source - python setup.py bdist_wheel sdist # manual and HTML documentation - - python setup.py build_sphinx + - sphinx-build -d ./build/doctrees doc/source -b man ./build/man/ + - sphinx-build -d ./build/doctrees doc/source -b html ./build/html/ # install - pip install dist/*.whl # smoke test diff --git a/doc/source/conf.py b/doc/source/conf.py index d051efa..d4040d0 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -17,6 +17,9 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) +import os +import sys +sys.path.insert(0, os.path.abspath('../../')) from sima.info import __author__ # -- General configuration ------------------------------------------------