jothepro / doxygen-awesome-css

Custom CSS theme for doxygen html-documentation with lots of customization parameters.
https://jothepro.github.io/doxygen-awesome-css/
MIT License
981 stars 112 forks source link

Feature suggestion: collapse/fold code blocks #64

Closed nilsvu closed 1 year ago

nilsvu commented 2 years ago

I think it could be quite useful to add a "fold code block" feature. We could annotate a code block as "folded" in Doxygen somehow, and then hide it behind a > indicator that can be clicked to reveal the code. Jupyter notebooks have this feature, and ReadTheDocs too: https://sphinx-toolbox.readthedocs.io/en/stable/extensions/collapse.html#directive-collapse. You can even do this in GitHub markdown using the <details> tag:

Click to expand Hello!
jothepro commented 1 year ago

Closing the issue because this is now supported in Doxygen 1.9.5