Edits should be made to the .rst
files.
The documentation can be built with make html
or make man
.
The generated files will be found in the _build
directory.
To visualize and test your documentation changes on the offical OVIS Documentation page before submitting a PR, please follow the steps below.
- Fork the repository: Fork the repository where the docs are located to your own GitHub account.
- Create a Read the Docs account: Sign up for a free Read the Docs account at readthedocs.org.
- Link the repository:
- After logging in, go to the "Import a Project" page on Read the Docs.
- Choose "GitHub" as the source and authorize Read the Docs to access your GitHub account.
- Select your forked repository from the list.
- Specify the correct branch:
- In the project settings, you will be asked to specify the branch of your repository. Select the branch that contains the changes you've made to the documentation.
- Set the location of
.readthedocs.yml
:- Read the Docs will need to know where your
.readthedocs.yml
file is located. In the project settings, ensure that you specify the current directory (./
) as the location of the.readthedocs.yml
file. - The
.readthedocs.yml
file controls the configuration of your documentation build process on Read the Docs (including things like Python dependencies, versioning, and build steps).
- Read the Docs will need to know where your
- Build the documentation: After linking the project and selecting the correct branch, Read the Docs will automatically build the documentation. You can view the generated docs at the provided URL.
This will allow you to see your changes in real-time as you push updates to the branch.
If you are editing documentation in any of the OVIS subprojects, please follow these same steps for that specific repository.
If you are making changes to the project or subproject configurations (i.e. conf.py), submit the PR and one of the admins will review the changes.
If you instead want to test a build on your local machine, please install the following depencencies before running make html
.
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r .github/dev-requirements.txt
pip install sphinx sphinx-rtd-theme pymdown-extensions
Users may want to install these packages into a Python Virtual Environment