Introducing documentation with Sphinx #526
No reviewers
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#526
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mueller/sphinx-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #448
This PR introduces the generation of documentation based on
this excellent blog post: https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/
It combines the tools Sphinx, Doxygen and Breathe to generate good
looking HTML documentation conveniently which can be hosted easily.
The helper scripts were unified and there is now one helper.py script
which can be used to create, build and open both tests and documentation.
"./helper.py -h" can be used to get the different options.
This PR also contains some smaller fixes which were necessary for the docs
to build
There are two ways to create the documentation. Make sure to install breathe, sphinx and doxygen first. E.g. for Ubuntu:
The next step would be to think about where to host the documentation (readthedocs.io or self hosted?), and then cross-reference it. After doing that, the old markdown files can be deleted and the README.md can be shortened to only contains quick facts.
Also, some chapters should be extended
With a freshly checked out source tree on an Ubuntu 20.04.3 VM, I am getting the following error:
Can you try to reproduce this?
I'll try it out
I can't reproduce this right now. I am using Sphinx v3.5.4 however. Can you update your Sphinx installation?
Was caused by an old sphinx version via apt, using pip works, and looks fabulous :)
one minor thing, if no
build-docs
folder exists, the helper.py exits withFileNotFoundError: [Errno 2] No such file or directory: 'build-docs'
I had the same issues, was fixed in
df45f02c39
ah, missed that. Could you check that this is also fixed for tests? It seems not to me, but I am not sure if it is because my working directory is dirty.
Also, we should adapt the Readme(s ?) on the new unified helper script.
Introducing documentation with Sphinxto WIP: Introducing documentation with SphinxWIP: Introducing documentation with Sphinxto WIP: Introducing documentation with SphinxWIP: Introducing documentation with Sphinxto Introducing documentation with SphinxTested doc and test