-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.readthedocs.yml
37 lines (31 loc) · 1021 Bytes
/
.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
# .readthedocs.yml
# 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
# fail_on_warning might generate hard to fix error, in this case it can be
# disabled but this also means those errors will fail silently, choose wisely.
fail_on_warning: true
build:
os: ubuntu-lts-latest
tools:
python: "mambaforge-23.11"
jobs:
pre_build:
- env SPHINX_APIDOC_OPTIONS="members,undoc-members,show-inheritance,noindex" sphinx-apidoc -o docs/apidoc --private --module-first src/ravenpy
- sphinx-build -M gettext docs docs/_build
- sphinx-build -b linkcheck docs/ _build/linkcheck || true
# FIXME: PDF builds not working since addition of the RavenPy logo
formats: [ ]
conda:
environment: environment-docs.yml
python:
install:
- method: pip
path: .
extra_requirements:
- dev
- docs