Skip to content

Commit 6df825d

Browse files
Adding readthedocs.yaml and requirements (#271)
* copying readthedocs settings from charm++ * empty commit to trigger read the docs build --------- Co-authored-by: Ritvik Rao <[email protected]>
1 parent 55d912f commit 6df825d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.readthedocs.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
# Optionally build your docs in additional formats such as PDF and ePub
25+
# formats:
26+
# - pdf
27+
# - epub
28+
29+
# Optional but recommended, declare the Python requirements required
30+
# to build your documentation
31+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
32+
python:
33+
install:
34+
- requirements: docs/requirements.txt

docs/requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These packages are need to build the documentation with sphinx.
2+
3+
pygments>=2.4.0
4+
sphinx>4
5+
sphinx-rtd-theme>=1.3.0

0 commit comments

Comments
 (0)