Generate also formatted docstring #129
Replies: 1 comment 3 replies
-
I've stumbled across this problem as well. I like your idea to do docstring conversion! To have at least some kind of documentation I am currently writing Doxygen-style comments in the IDL-file in order to then generate a documentation website with Doxygen for the generated Obj-C, Java, C++/CLI, C++ gluecode. On top of what you propose I'd love the comments in the IDL to support Markdown for some basic text formatting (bold, italic, lists, tables, code-fragments...), which could then be converted to the equivalent HTML for Javadoc and C++/CLI XML documentation. But to achieve this a full blown markdown parser in the generator would be required. Sounds like a challenge... |
Beta Was this translation helpful? Give feedback.
-
It's probably a good idea to also generate the formatted docstring. E.g.
Then it would convert to some common docstring formats for each language.
In our use case, initially we only used the generated Objective-C code for developing iOS apps, so we have written the docstring in Objective-C format. However, now we are also using the generated Java and C++/CLI code. As a result, the dll I built using C++/CLI code, no hints of how to use the class / function are shown.
Tried to search for it first, but it seems it was not discussed before. Correct me if there were already similar discussion. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions