Skip to content

Commit 413e649

Browse files
committed
Add README in the docs folder for adding new sites
1 parent b8f394d commit 413e649

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Adding a new ReadTheDocs page for a project in this repository
2+
3+
We use [`sphinx-multiproject`](https://sphinx-multiproject.readthedocs.io/en/latest/index.html) to build multiple RTD sites from within a single repository. To add a new site within this repository, take the following steps:
4+
5+
## Create a new subfolder for the site's documents
6+
7+
See the existing `ops` folder for a template.
8+
9+
## Add relevant sections to this folder's `conf.py`
10+
11+
Specifically, you'll want to add an entry to the `multiproject_projects` dictionary. Again, you can copy and edit the `ops` entry.
12+
13+
## Create a new project on `ReadTheDocs`
14+
15+
You'll want to take the following steps:
16+
1. Choose to import a project manually
17+
2. Set the repository URL to the GitHub of this project
18+
3. In the `Admin` section of the newly created site, find the `Advanced Settings` tab and change the `Path for .readthedocs.yaml` to `docs/.readthedocs.yaml`
19+
4. In the `Admin` section of the newly created site, find the `Environment Variables` tab and add a new variable, mapping the `PROJECT` environment variable to the newly added key in the `multiproject_projects` dictionary.
20+
21+
After that, you should have a new site ready to go!

0 commit comments

Comments
 (0)