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

Initial support for table rendering #632

Merged
merged 1 commit into from
Feb 13, 2021
Merged

Conversation

utzig
Copy link
Contributor

@utzig utzig commented Feb 4, 2021

This adds basic support to table rendering. Tables generates using Markdown syntax or

both generate a similar Doxygen so both can be used in documentation.

https://www.doxygen.nl/manual/tables.html
https://www.doxygen.nl/manual/markdown.html#md_tables

Some features are still missing, like colspan, rowspan and alignment. Those are not available in the Doxygen XML generated by versions <=1.8.17. Doxygen XML generated by Doxygen 1.9.1 works correctly. When using those features the current implementation will just output blank rows or cols, rendering improperly, but without exceptions.

Fixes #629

@vermeeren vermeeren added code Source code enhancement Improvements, additions (also cosmetics) labels Feb 4, 2021
This adds basic support to table rendering. Tables generates using
Markdown syntax or <table> both generate a similar Doxygen so both can
be used in documentation.

https://www.doxygen.nl/manual/tables.html
https://www.doxygen.nl/manual/markdown.html#md_tables

Some features are still missing, like colspan, rowspan and alignment.
Those are not available in the Doxygen XML generated by versions
<=1.8.17. Doxygen XML generated by Doxygen 1.9.1 works correctly. When
using those features the current implementation will just output blank
rows or cols, rendering improperly, but without exceptions.

Signed-off-by: Fabio Utzig <utzig@apache.org>
@utzig utzig marked this pull request as ready for review February 10, 2021 00:40
@utzig
Copy link
Contributor Author

utzig commented Feb 10, 2021

@vermeeren I just updated the commit message; this should be good enough for an initial support. Let me know if you need some example updated or other documentation change.

@vermeeren vermeeren self-requested a review February 13, 2021 14:48
@vermeeren vermeeren self-assigned this Feb 13, 2021
Copy link
Collaborator

@vermeeren vermeeren left a comment

Choose a reason for hiding this comment

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

@utzig Looks good, thanks again! Placing a table in the example documentation somewhere might be nice to have. I notice in the links in the commit message the upstream Doxygen documentation has a really complex example for the <table> variant.

Thoughts on including this one as-is somewhere? Seems like a complex example to track and test full table support for the long term.

Will merge this PR as-is, any doc or future work is of course fine as a different PR.

michaeljones pushed a commit that referenced this pull request Feb 13, 2021
@michaeljones michaeljones merged commit d865ca0 into breathe-doc:master Feb 13, 2021
@utzig utzig deleted the tables branch February 13, 2021 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Source code enhancement Improvements, additions (also cosmetics)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Html tables are not rendered in Sphinx
3 participants