|
1 | | -# Adding a new ReadTheDocs page for a project in this repository |
| 1 | +This directory houses the online docs for core SciJava components. Each subfolder is its own ReadTheDocs site. |
| 2 | + |
| 3 | +## Building the docs |
| 4 | + |
| 5 | +If this is your first time building the docs on this machine, create the needed environment with: |
| 6 | + |
| 7 | +```shell |
| 8 | +mamba env create -f environment.yml |
| 9 | +``` |
| 10 | + |
| 11 | +Subsequently, every time you want to build, run the following commands: |
| 12 | + |
| 13 | +``` |
| 14 | +mamba activate scijava-docs |
| 15 | +make clean html && python -m http.server |
| 16 | +``` |
| 17 | + |
| 18 | +If all goes well, you'll see output ending like: |
| 19 | +``` |
| 20 | +The HTML pages are in _build/scijava-ops/html. |
| 21 | +Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ... |
| 22 | +``` |
| 23 | + |
| 24 | +To view the built site, open the HTTP link in your browser of choice, then navigate to the stated subdirectory. |
| 25 | + |
| 26 | +## Adding a new ReadTheDocs page for a project in this repository |
2 | 27 |
|
3 | 28 | 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 | 29 |
|
5 | | -## Create a new subfolder for the site's documents |
| 30 | +### Create a new subfolder for the site's documents |
6 | 31 |
|
7 | 32 | See the existing `ops` folder for a template. |
8 | 33 |
|
9 | | -## Add relevant sections to this folder's `conf.py` |
| 34 | +### Add relevant sections to this folder's `conf.py` |
10 | 35 |
|
11 | 36 | Specifically, you'll want to add an entry to the `multiproject_projects` dictionary. Again, you can copy and edit the `ops` entry. |
12 | 37 |
|
13 | | -## Create a new project on `ReadTheDocs` |
| 38 | +### Create a new project on `ReadTheDocs` |
14 | 39 |
|
15 | 40 | You'll want to take the following steps: |
16 | 41 | 1. Choose to import a project manually |
|
0 commit comments