forked from blaylockbk/goes2go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.readthedocs.yml
39 lines (32 loc) · 1.05 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
# .readthedocs.yml
# Read the Docs configuration file
# Details
# - https://docs.readthedocs.io/en/stable/config-file/v2.html
# Required
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.10"
apt_packages:
- libgeos-dev
# Work around timeout error.
# ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
# https://stackoverflow.com/questions/43298872/how-to-solve-readtimeouterror-httpsconnectionpoolhost-pypi-python-org-port#comment110786026_43560499
# https://github.com/readthedocs/readthedocs.org/issues/6311#issuecomment-1324426604
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-jobs
jobs:
post_checkout:
- echo "export PIP_DEFAULT_TIMEOUT=100" >> ~/.profile
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
python:
install:
- method: pip
path: .
extra_requirements:
- docs
# Optionally build your docs in additional formats such as PDF
formats:
- pdf