Skip to content

Commit 986e5eb

Browse files
drymancopybara-github
authored andcommitted
Add readthedocs for online doc repo.
PiperOrigin-RevId: 847759916
1 parent 4c33d32 commit 986e5eb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.readthedocs.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Read the Docs configuration file
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.11"
12+
jobs:
13+
post_create_environment:
14+
# Install poetry
15+
- pip install poetry
16+
post_install:
17+
# Install dependencies
18+
- cd docs && pip install -r requirements.txt
19+
20+
# Build documentation in the "docs/" directory with Sphinx
21+
sphinx:
22+
configuration: docs/conf.py
23+
fail_on_warning: false
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
formats:
27+
- pdf
28+
- epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: docs/requirements.txt
36+
- method: pip
37+
path: .
38+
extra_requirements:
39+
- test

0 commit comments

Comments
 (0)