Sphinx tips¶
Contributing to this Documentation¶
1. Compile the HTML Webpage Locally¶
To compile the HTML files locally, navigate to the docs/ folder and type:
make html
This command will generate the HTML files for your webpage.
Troubleshooting:
If the make html command fails, you might need to install the necessary
dependencies first. You can do this by running:
pip install -r requirements.txt
2. View the Compiled HTML¶
Once the compilation is successful, you can view the HTML files by navigating
to the docs/build/html directory. Open the files in this folder with your
preferred web browser to see the webpage.
3. Modify the Documentation¶
Important:
Never modify files directly in the
htmlfolder.Always make changes in the
docs/sourcefolder, which contains the source files used to generate the HTML.
Steps for Modifying Content:
Create a New
.rstFile:If you need to add new content, you can create a new
.rstfile in thedocs/sourcedirectory. Use an existing file, such asoar.rst, as a template for the new file.Formatting Tips: For guidance on formatting
.rstfiles, refer to appropriate documentation.
Update the
index.rstFile:After adding or modifying
.rstfiles, update theindex.rstfile to include your new content in the table of contents or navigation structure.
4. Re-compile the HTML Webpage¶
Once you’ve made your changes, first delete previous files to avoid conflict:
make clean
Second, recompile the HTML files by running make html again from the parent
directory (docs/), where the make.bat file is located:
make html
This will regenerate the HTML files with your latest modifications.
5. Commit and Push Changes¶
After confirming your changes are reflected in the compiled HTML, it’s time to commit and push your changes to the repository. For detailed instructions on how to commit and push changes, see GIT tips.