Skip to content

Commit

Permalink
add source folder for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed May 20, 2021
1 parent f1d62f8 commit d81cef9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#
import os
import sys
import pathlib
import sphinx_rtd_theme

sys.path.insert(0, os.path.abspath(".."))
Expand Down Expand Up @@ -78,3 +79,10 @@
}

autodoc_member_order = "bysource"

if "READTHEDOCS" in os.environ:
src_folder = pathlib.Path(__file__).resolve().parent.parent / "authorityspoke"
sys.path.append(str(src_folder))

print("Detected running on ReadTheDocs")
print(f"Added {src_folder} to sys.path")

0 comments on commit d81cef9

Please sign in to comment.