forked from pybamm-team/pybamm-eis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.readthedocs.yaml
34 lines (30 loc) · 861 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
version: 2
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: false
formats:
- epub
- htmlzip
python:
install:
- method: pip
path: .
extra_requirements:
- docs
build:
os: ubuntu-22.04
apt_packages:
- "graphviz"
tools:
python: "3.12"
jobs:
post_checkout:
- git fetch --unshallow
post_build:
- mkdir -p $READTHEDOCS_OUTPUT/pdf/
- python -m sphinx -T -E -b latex -d docs/_build/doctrees -D language=en docs docs/build/
- cd docs/build/ && cat latexmkrc
- cd docs/build/ && latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=pybamm-eis -interaction=nonstopmode || true
- test -f docs/build/pybamm-eis.pdf && echo "pybamm-eis.pdf exists. Copying source file to $READTHEDOCS_OUTPUT/pdf/."
- cp "docs/build/pybamm-eis.pdf" $READTHEDOCS_OUTPUT/pdf/