-
Notifications
You must be signed in to change notification settings - Fork 1
/
.readthedocs.yml
65 lines (53 loc) · 2.15 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
63
64
65
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"
apt_packages:
- graphviz
# ALL JOBS implied: https://docs.readthedocs.io/en/stable/builds.html
jobs:
pre_install:
- python -m pip install tox==3.27.1
# - python -m pip install poetry
# - tox -e pin-deps -- -E docs
# Pre Install must generate a req-docs.txt file, if 'python:' section is used
post_install:
# introducing myst-parser for parsing .md files, required a bump
# of sphinx to 6.x, somehow `poetry lock` was ok, but poetry export not!
# due to this we do not have 100% reproducible builds here, but we should be fine.
# when we retire python 2.6, 3.7 stuff, this can go back to `poery export` :)
- python -m pip install -e .[docs]
# 8/3/2024: latest 'myst-parser' PyPI release 2.0.0
- python -m pip install "myst-parser>=2.0.0,<2.1.0"
# 8/3/2024: latest 'markdown-it-py' PyPI release 3.0.0
- python -m pip install "markdown-it-py>=3.0.0,<3.1.0"
pre_build:
- tox -e pydeps
- cp -r pydeps/* docs/contents/35_development/arch
- ls -l docs/contents/35_development/arch
- chmod +x ./scripts/visualize-ga-workflow.py
- ./scripts/visualize-ga-workflow.py .github/workflows/test.yaml --rst > ./docs/contents/35_development/ci_cd_pipeline_mermaid.rst
- chmod +x ./scripts/visualize-dockerfile.py
- ./scripts/visualize-dockerfile.py --rst > docs/contents/35_development/docker_build_mermaid.rst
# SPHINX BUILD documentation in the docs/ directory
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: false
# Sphinx only: Optionally build in additional formats
formats:
- 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:
# # Pre Install must generate a reqs.txt
# - requirements: reqs.txt