How to Generate C++ Docs Straight from Clang with MrDocs
https://www.youtube.com/watch?v=wn7Mux3uY2oThis is not just about an interesting topic, since I guess most of us have struggled with dogygen and are wishing for a better alternative, but also an amazingly creative way to release a tech talk (cppcon) video!
0
Upvotes
10
u/t_hunger 12h ago
I would love to see the presentation, but this is just unwatchable. I am at a point where I skip anything that says C++ Alliance on its cover. I find their contents absolutely unconsumable.
7
u/xX_Negative_Won_Xx 11h ago
This is awesome tooling to have. Guaranteed faithful docs + Multiple machine readable output formats alone makes it better than current rustdoc IMO
The video is bizarre though. Why is there music? The jump cuts every 5s? Feels like a professional video editor who normally edits for influencers or drama channels was involved
4
u/ventZl 10h ago
The thing is that doxygen is pretty competent. Actually, suprisingly competent. You have to have huuuuge macro soup in the code to confuse it (I know it, because I have it).
My main problem was that if I wanted to combine API docs (where Doxygen is a decent option for C and C++) with hand-written text pages, Doxygen sucks. It has bugs in processing markdown, it isn't flexible with the structure, certain things simply don't work or are broken.
I ended up doing custom Doxygen XML to markdown converter and then merging that with markdown using Hugo. Disclaimer: There are solutions I deployed into production you shouldn't follow as an example. This is one of them.