summaryrefslogtreecommitdiff
path: root/.readthedocs.yaml
blob: 07bdc9db83e7095bcc26d01b3cfdc6bd9d8145a3 (plain)
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
---
# https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2
# NOTE: not builing epub because epub does not know how to handle .ico files
# which results in a warning which causes the build to fail due to
# `sphinx.fail_on_warning`
# https://github.com/sphinx-doc/sphinx/issues/10350
formats:
  - htmlzip
  - pdf

build:
  os: ubuntu-20.04
  tools:
    # Using 3.9 as earlier versions have trouble generating documentation for
    # `@typing.overload`` with type aliases.
    python: "3.9"
  jobs:
    post_create_environment:
    # Using requirements-poetry.in as requirements-poetry.txt has conflicts with
    # the readthedocs environment.
    - pip install -r devtools/requirements-poetry.in
    post_install:
    - poetry config virtualenvs.create false
    - poetry install --only=main --only=docs --extras=html
    - poetry env info

sphinx:
  fail_on_warning: true