Documentation#

The documentation is critical for people to understand SunPeek!
It is hosed in the main repository of SunPeek at the Backend
and created using Sphinx.

Apply Changes#

Warning

Please check out the contribution guide for more information first!
  1. If you want to change the documentation, please visit the main repository sunpeek/sunpeek

  2. On Gitlab, create an issue and a merge request with some documentation on what and why a change is required.

  3. Next, clone the repository and switch to the created merge request.

  4. The source files for the documentation are located in the ./docs directory.

  5. Adapt the files using .rst and .md files for example.

  6. To build, run the following command in a console

    sphinx-build -b html ./docs/source/ ./docs/build/

  7. After that, you can check changes locally if you open the index.html file located in /docs/build with a browser.

Deploy changes#

To deploy changes, simply commit and push your changes to the corresponding merge request. When merged, the documentation will be automatically deployed using GitlabCI.

Common errors#

WARNING: image file not readable:

This error occurred only in the Gitlab CI (but not on a local windows pc) because the sphinx referenced a example.png file, while it was actually stored as example.PNG. Windows was able to find the file nonetheless, but the GitlabCI did not find it. Hence, please check that the files referenced exist, and pay attention to case sensitiveness when encoutnering this error.