Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Breathe #1986

Merged
merged 9 commits into from
Sep 9, 2024
Merged

Remove Breathe #1986

merged 9 commits into from
Sep 9, 2024

Conversation

gmarull
Copy link
Member

@gmarull gmarull commented Aug 30, 2024

No description provided.

@@ -73,7 +73,6 @@
# -- General configuration ------------------------------------------------

extensions = [
"breathe",
Copy link
Contributor

Choose a reason for hiding this comment

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

why was breathe removed?
Will it affect nordic's documentation team?

Copy link
Member Author

Choose a reason for hiding this comment

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

Breathe was a resource hog for the project, so an alternative has been introduced. We are all aware and already have a working solution that is to serve Doxygen content as upstream does. Btw, documentation CI will be much faster, so no workarounds to make it fast will be needed.

@greg-fer greg-fer requested a review from b-gent September 3, 2024 08:16
Copy link
Contributor

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

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

MCUmgr doc OK

Some extensions may be able to run faster if they can check if Doxygen
contents has changed from one build to the other

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit 02ad7ef)
…:c:enumerator:

While Breathe seems to not care and creates hyperlinks either way, the
proper role to mention a C enumerator is :c:enumerator:. :c:enum: is to
be used to refer to the enum itself.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit 5a5fd7c)
… c domain roles

Simplify how the code sample refers to C objects to be less dependant on
Breathe.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit f2227bb)
kartben and others added 6 commits September 6, 2024 14:35
Do not pass options to doxygengroup to rationalize
usage and be less dependent on Breathe.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit 385f8e1)
Deactivate breathe extension from docs.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 259db8c)
Add an initial version of doxybridge, an extension that allows to use
Sphinx C domain to automatically reference Doxygen pages.

It also introduces minimal support for `.. doxygengroup` directive,
which effectively links to the group's Doxygen page.

Co-authored-by: Benjamin Cabé <[email protected]>
Signed-off-by: Gerard Marull-Paretas <[email protected]>
Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit c8c3a3b)
Enable the doxybridge extension.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit ea14a07)
Minor cosmetic update post Breathe removal

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit 162fa76)
The newly insterted directive is patching the new Zephyr bridge
extension instead of breathe's one. Doxybridge does not support the same
arguments as breathe, so, Zephyr domain can't be used on projects that
still use breathe. Disable until all NCS projects are ported.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
@gmarull gmarull merged commit 83195a3 into nrfconnect:main Sep 9, 2024
16 checks passed
@gmarull gmarull deleted the breathe-remove branch September 9, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants