Readthedocs (#1555)

* add readthedocs config file for sphinx-copy button
This commit is contained in:
Michel Oosterhof 2021-05-04 00:15:10 +08:00 committed by GitHub
parent 813f35e86d
commit f74cd0d741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

17
.readthedocs.yml Normal file
View File

@ -0,0 +1,17 @@
---
# .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 docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
# Optionally Python version and requirements required to build your docs
python:
version: 3.9
install:
- requirements: docs/requirements.txt

3
docs/requirements.txt Normal file
View File

@ -0,0 +1,3 @@
Sphinx==3.5.4
sphinx-copybutton==0.3.1
sphinx_rtd_theme==0.5.2