This directory houses the online docs for core SciJava components. Each subfolder is its own ReadTheDocs site.
If this is your first time building the docs on this machine, create the needed environment with:
mamba env create -f environment.ymlSubsequently, every time you want to build, run the following commands:
mamba activate scijava-docs
make clean html && python -m http.server
If all goes well, you'll see output ending like:
The HTML pages are in _build/scijava-ops/html.
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
To view the built site, open the HTTP link in your browser of choice, then navigate to the stated subdirectory.
We use sphinx-multiproject to build multiple RTD sites from within a single repository. To add a new site within this repository, take the following steps:
See the existing ops folder for a template.
Specifically, you'll want to add an entry to the multiproject_projects dictionary. Again, you can copy and edit the ops entry.
You'll want to take the following steps:
- Choose to import a project manually
- Set the repository URL to the GitHub of this project
- In the
Adminsection of the newly created site, find theAdvanced Settingstab and change thePath for .readthedocs.yamltodocs/.readthedocs.yaml - In the
Adminsection of the newly created site, find theEnvironment Variablestab and add a new variable, mapping thePROJECTenvironment variable to the newly added key in themultiproject_projectsdictionary.
After that, you should have a new site ready to go!