Skip to content

doc: libnetplan API reference, using Doxygen and Sphinx.breathe#423

Merged
slyon merged 4 commits intocanonical:mainfrom
slyon:apidoc-doxygen
Nov 28, 2023
Merged

doc: libnetplan API reference, using Doxygen and Sphinx.breathe#423
slyon merged 4 commits intocanonical:mainfrom
slyon:apidoc-doxygen

Conversation

@slyon
Copy link
Contributor

@slyon slyon commented Nov 27, 2023

Description

Setting up a structure to make use of Doxygen and Sphinx' Breathe the generate a API documentation reference for libnetplan directly from the source and header files.

The documentation is generated at doc-build time (make run inside doc/) and also run on readthedocs, so we show the most current documentation from the sources at all times.

We make use of Breathe's autodoxygen features, so that we don't need to generate and parse Doxygen's XML output manually.

FR-3781

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.

@slyon slyon requested a review from rkratky November 27, 2023 14:13
@slyon slyon marked this pull request as ready for review November 27, 2023 14:13
@slyon
Copy link
Contributor Author

slyon commented Nov 27, 2023

We might even consider dropping the top-level Doxyfile configuration, I think it's not necessarily needed.

Copy link
Contributor

@rkratky rkratky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slyon A few nitpicks.

@slyon
Copy link
Contributor Author

slyon commented Nov 27, 2023

Thanks a lot for the prompt review! I addressed all the nitpicks. Will merge once the CI is (mostly) green.

@slyon slyon merged commit 62b693e into canonical:main Nov 28, 2023
@slyon slyon added the documentation Documentation improvements. label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation improvements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants