From e4f642e20348dab3523316157dafdd609fa32455 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 9 Feb 2024 16:14:53 +0100 Subject: [PATCH] Fixed sphinx build --- .gitlab-ci.yml | 3 ++- doc/source/conf.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 ------------------------------------------------ -- 2.39.5