-
Notifications
You must be signed in to change notification settings - Fork 89
/
.readthedocs.yml
45 lines (38 loc) · 1.17 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
# 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"
apt_packages:
- curl
- graphviz
- npm
- openjdk-21-jre-headless
- texlive
tools:
nodejs: "16"
python: "3.10"
jobs:
pre_build:
- python3 scripts/SchemaToRSTDocumentation.py -s src/coreComponents/schema/schema.xsd -o src/docs/sphinx
post_install:
- npm install -g [email protected]
- npm install -g @mermaid-js/[email protected]
# If you change the `/tmp/plantuml.jar` path, be sure to also update where this path is used as well (e.g. in `conf.py`).
- curl -fsSL https://github.com/plantuml/plantuml/releases/download/v1.2024.3/plantuml-gplv2-1.2024.3.jar -o /tmp/plantuml.jar
# Set requirements to build the docs
python:
install:
- requirements: src/docs/sphinx/requirements.txt
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: src/conf.py
builder: html
fail_on_warning: true
# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
submodules:
include:
- src/coreComponents/constitutive/PVTPackage
recursive: true