-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.readthedocs.yml
62 lines (57 loc) · 2.09 KB
/
.readthedocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ----------------------------------------------------------------------------
# Read the Docs configuration file
# ============================================================================
# https://docs.readthedocs.io/en/stable/config-file/v2.html for details
#
# Example projects:
# https://docs.readthedocs.io/en/stable/examples.html
#
# Automated latest, stable, and previous versions:
# https://docs.readthedocs.io/en/stable/versions.html
# https://docs.readthedocs.io/en/stable/integrations.html
# https://docs.readthedocs.io/en/stable/automation-rules.html
#
# Best practices:
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# https://docs.readthedocs.io/en/stable/guides/best-practice/links.html
#
# --- Connecting Read the Docs with Sphinx/PyData ---
#
# Reference for readthedocs-hosted PyData docs to allow auto-versioning:
# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/index.html
#
# Corresponding config file 'pydata-sphinx-theme/readthedocs.yml':
# https://github.com/pydata/pydata-sphinx-theme/blob/main/readthedocs.yml
#
# ----------------------------------------------------------------------------
# Required
version: 2
# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
# os: ubuntu-latest
tools:
python: "3.10"
jobs:
post_install:
# - pip install sphinx furo pydata-sphinx-theme numpydoc autodoc_pydantic
- pip install -r requirements_docs.txt
- pip install -r requirements.txt
- pip install -r requirements_optional.txt
- pip install --editable .
# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# Optionally build your docs in additional formats such as PDF and ePub
formats:
- htmlzip
- pdf
# - epub
# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
## - sphinx furo pydata-sphinx-theme numpydoc autodoc_pydantic
## - method: pip
# - requirements: docs/requirements.txt