forked from beeware/toga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.readthedocs.yaml
37 lines (32 loc) · 892 Bytes
/
.readthedocs.yaml
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.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
build:
os: ubuntu-22.04
tools:
# Docs are always built on Python 3.12. See also the tox config and contribution docs.
python: "3.12"
jobs:
post_checkout:
# RTD defaults to a depth of 50 but Toga versioning may require
# much more git history to accurately determine the SCM version
- git fetch --unshallow
pre_build:
- tox -e docs-lint
# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true
# Build docs as PDF (other options are epub and htmlzip)
formats:
- pdf
# Install extras for build - dev is needed to run tox
python:
install:
- method: pip
path: core
extra_requirements:
- dev
- docs