-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy path.readthedocs.yml
57 lines (49 loc) · 1.62 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
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.12"
apt_packages:
# More closely mirror https://github.com/sphinx-doc/sphinx-docker-images
- graphviz
- imagemagick
- make
- pandoc
- texlive-latex-base
- texlive-latex-recommended
- texlive-latex-extra
- texlive-fonts-recommended
commands:
# setup
- pip install ".[docs]"
- cp -r demos docs/source/demos
- cp README.md docs/source/README.md
- cp ARCHITECTURE.md docs/source/ARCHITECTURE.md
- cp CONTRIBUTING.md docs/source/CONTRIBUTING.md
- cp DEVELOP.md docs/source/DEVELOP.md
# build html
- sphinx-build -b html -d docs/doctrees docs/source $READTHEDOCS_OUTPUT/html/
# build epub
- sphinx-build -b epub -d docs/doctrees docs/source docs/_build/latexpdf
- mkdir -p $READTHEDOCS_OUTPUT/epub
- cp docs/_build/latexpdf/PyGraphistry.epub $READTHEDOCS_OUTPUT/epub/PyGraphistry.epub
# build pdf
- sphinx-build -b latex -d docs/doctrees docs/source docs/_build/latexpdf
- cd docs/_build/latexpdf && pdflatex -file-line-error -interaction=nonstopmode PyGraphistry.tex && pdflatex -file-line-error -interaction=nonstopmode PyGraphistry.tex && echo ok || { echo fail && exit 1 ; }
- mkdir -p $READTHEDOCS_OUTPUT/pdf
- cp docs/_build/latexpdf/PyGraphistry.pdf $READTHEDOCS_OUTPUT/pdf/PyGraphistry.pdf
#for nav links?
formats:
- pdf
- epub
- htmlzip
python:
install:
- method: pip
path: .
extra_requirements:
- docs