-
Notifications
You must be signed in to change notification settings - Fork 0
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
Program documentation: md vs dox #29
Comments
Do you by chance mean that those huge chunks of how-to-use comments like this (usually located in the app's |
I refer to that type of movement, but rather than a suggestion, it is a question. IMHO, the pros are:
What is your opinion? Maybe there is an option to link md via relative paths? |
Personally I prefer md because of these reasons:
On the other hand, it has some cons:
|
My personal opinion: I only like Doxygen for documenting APIs, classes, etc. For any other doc info I prefer markdown because of the simplexity of the syntax yet beautiful syntax. :) |
Sorry for my late response. I'm getting increasingly convinced that MD might be a nice replacement for long, unwieldy Doxygen doc files. We have a bunch of them scattered around asibot-main (see doc.dox). The syntax is rather obscure and lacks GitHub editor support (which is essentially a WYSIWYG markdown text editor).
@jgvictores I think that relpaths could work there, try |
Another remark: developers should feel impelled to keep their app documentation synced with any related change they commit. Doc files buried far from the source code or even a cumbersome syntax (with lack of editor support, as noted before) may lead to a situation in which devs either simply forget about the existence of related documentation or feel uncomfortable to edit those few lines. A clean workflow, stating what needs to be done before commiting (reflect changes in docs, update release notes, etc.), should follow from these considerations. Outdated documentation is evil. Compare YARP's CONTRIBUTING.md. |
@PeterBowman Correct, fixed at roboticslab-uc3m/tools@567a8f7 |
I believe we haven't provided options on how to perform this migration. Going to check out: https://www.npmjs.com/package/doxygen2md |
Looks good!, at least to deserve a try! |
Bad thing is it's not direct like Pandoc. Steps are using Doxygen to create an XML, then apply it. Alternatives I've seen are similar. Let's keep looking. |
Refs of different ways we do and link things:
|
Would be nice to be able to link, e.g:
Cannot find a quick and easy way to do this. |
To sum up: we prefer
|
I've set up a |
Oh. Something like |
Note: Doxygen supports Markdown! (reference)
Edit: only partial support, i.e. links to local raw HTML files or HTMLs served remotely (full URLs). No transclusion. |
Since \includedoc isn't parsed on time, very tempted to pre-process as in https://stackoverflow.com/questions/7857726/sed-replace-backslash-in-include |
Idea: pass a path to a script in
Reference: http://doxygen.nl/manual/config.html#cfg_input_filter. |
Yes, I'm also concerned about those bold words. |
Simple commands such as Maybe Before I forget: http://doxygen.10944.n7.nabble.com/input-filter-woes-td2056.html |
It looks like in general |
Just found a tool similar to Doxygen (can't tell the difference): https://github.com/copperspice/doxypress |
There is a nice intermix of Markdown and Doxygen capabilities in libraries/YarpCloudUtils/README.md@vision. Even though the document has been written in Markdown, Doxygen is perfectly capable of coping well with it: doxy page. Note that documented classes and functions are automatically linked by Doxygen in text and code snippets. It is also trivial to link back to this page from usual doxy lines, see note. |
YARP is moving towards a deeper integration between Markdown and Doxygen. This patchset esentially migrates a .dox into an .md and adds several Doxygen-like commands ( |
Program documentation:
The text was updated successfully, but these errors were encountered: