Fix syspath

This commit is contained in:
Griatch 2020-09-19 18:25:23 +02:00
parent d40fe5f2c9
commit 042b8e4046
2 changed files with 3 additions and 3 deletions

View file

@ -36,6 +36,7 @@ jobs:
# fail early here # fail early here
- name: Quick-test docs (no autodocs) - name: Quick-test docs (no autodocs)
continue-on-error: true
run: | run: |
cd docs/ cd docs/
make quick make quick

View file

@ -223,7 +223,7 @@ autodoc_default_options = {
} }
autodoc_member_order = "bysource" autodoc_member_order = "bysource"
autodoc_typehints = "description" # autodoc_typehints = "description"
def autodoc_skip_member(app, what, name, obj, skip, options): def autodoc_skip_member(app, what, name, obj, skip, options):
@ -315,8 +315,7 @@ def setup(app):
app.add_transform(AutoStructify) app.add_transform(AutoStructify)
# build toctree file # build toctree file
sys.path.insert(1, os.path.join( sys.path.insert(1, os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "docs"))
from docs.pylib import auto_link_remapper from docs.pylib import auto_link_remapper
auto_link_remapper.auto_link_remapper() auto_link_remapper.auto_link_remapper()