From 5191b2e4e89bd14c435abeb35ac789aeb0872cf6 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 20 Sep 2020 19:12:10 +0200 Subject: [PATCH] Fix os path to docs dir in standalone mode --- docs/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 9fb62849d5..81ff8327e3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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,7 +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(__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()