From 3c3a85d1bc8ccaa80f6ef16d00d2a1d448bdb5fe Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Thu, 28 Oct 2021 17:12:30 -0700 Subject: [PATCH] PYTHON-2817 Add .readthedocs.yaml config file (#769) --- .readthedocs.yaml | 19 +++++++++++++++++++ doc/docs-requirements.txt | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 .readthedocs.yaml create mode 100644 doc/docs-requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 000000000..358e7502f --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,19 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Build documentation in the doc/ directory with Sphinx +sphinx: + configuration: doc/conf.py + +# Set the version of Python and requirements required to build the docs. +python: + version: 3.8 + install: + # Install pymongo itself. + - method: pip + path: . + - requirements: doc/docs-requirements.txt diff --git a/doc/docs-requirements.txt b/doc/docs-requirements.txt new file mode 100644 index 000000000..ce5d1abf3 --- /dev/null +++ b/doc/docs-requirements.txt @@ -0,0 +1,3 @@ +Sphinx~=4.2 +sphinx_rtd_theme~=0.5 +readthedocs-sphinx-search~=0.1