This repository contains the documentation for the software and electrical projects developed by the Waterloo Rocketry team. The documentation is written in reStructuredText and generated using Sphinx.
This guide will help you set up a Sphinx environment for generating project documentation. Sphinx is a powerful tool that converts reStructuredText files into various output formats HTML, we can use it to create professional-looking documentation for our projects.
- Python: Ensure Python (3.6 or higher) is installed.
Clone the repository to your local machine:
git clone --recurse-submodules git@github.com:waterloo-rocketry/docs.git
Create a new virtual environment in the project directory:
python -m venv venv
source venv/bin/activate
To install Sphinx, run the following command:
pip install sphinx
pip install sphinx_rtd_theme
To generate HTML documentation, use the make html command:
make html
Open index.html from the _build/html directory in your web browser:
open _build/html/index.html
- If you encounter missing dependencies or syntax errors, ensure that your Python environment is correctly set up and all necessary packages are installed.
To preview the reStructuredText files in VS Code, install the following extension: