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
- name: Quick-test docs (no autodocs)
continue-on-error: true
run: |
cd docs/
make quick

View file

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