Skip to content

Commit

Permalink
[docs] add readthedocs configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
spj101 committed Aug 24, 2021
1 parent a9523b7 commit 2cd274d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .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: doc/source/conf.py

# Optionally build your docs in additional formats such as PDF
formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
python:
version: "3.7"
install:
- requirements: doc/requirements.txt
- method: setuptools
path: doc
7 changes: 7 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# packages required to build docs (needed by readthedocs)
numpy==1.19.1
sphinx==3.5.1
sympy==1.8
enscons==0.26
toml==0.10
packaging==20.5
2 changes: 2 additions & 0 deletions doc/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import sys, os
exit(os.system(f"{sys.executable} -m SCons pySecDec/metadata.py"))

0 comments on commit 2cd274d

Please sign in to comment.