Custom Read The Docs config, to get autodoc working

This commit is contained in:
Simon Willison 2021-08-10 10:39:51 -07:00
commit 50dcfc01dc
2 changed files with 15 additions and 4 deletions

12
.readthedocs.yaml Normal file
View file

@ -0,0 +1,12 @@
version: 2
sphinx:
configuration: docs/conf.py
python:
version: "3.9"
install:
- method: pip
path: .
extra_requirements:
- docs

View file

@ -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 ------------------------------------------------