From 50dcfc01dca2935fe5dc25be24447211271e4a69 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 10 Aug 2021 10:39:51 -0700 Subject: [PATCH] Custom Read The Docs config, to get autodoc working --- .readthedocs.yaml | 12 ++++++++++++ docs/conf.py | 7 +++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..943372c --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,12 @@ +version: 2 + +sphinx: + configuration: docs/conf.py + +python: + version: "3.9" + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/docs/conf.py b/docs/conf.py index e9264cb..c93b408 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,10 +16,9 @@ from subprocess import Popen, PIPE # 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. # -import os -import sys - -sys.path.insert(0, os.path.abspath("../../")) +# import os +# import sys +# sys.path.insert(0, os.path.abspath("../")) # -- General configuration ------------------------------------------------