-
Notifications
You must be signed in to change notification settings - Fork 123
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
[FLOSS] Can Doxygen be used for building our man pages? #4551
Comments
I had a brief look at the Doxygen documentation and it seems that it does have rather limited Markdown support. However, I am not sure if your dismissal of Pandoc is justified. You have written
What exactly do you mean by a description-list? Could you provide examples for this in In the context of Markdown I have found only "definition list" which is supported by Pandoc (https://pandoc.org/MANUAL.html#definition-lists) but not Doxygen (https://www.doxygen.nl/manual/markdown.html#markdown_extra). I believe that changing the tool used for generating the man pages will inevitably lead to slight changes in the output format and might also require changes in the way the Markdown files are written (although that last part could possibly also be automated as a preprocessing step). So it is hard to evaluate what tool might be a viable alternative to the status quo since simply diffing the generate man pages would probably not be too illuminating. |
It is not dismissed, Pandoc is great. It is only probably oversized just for the manpages.
I clarified it here: https://github.com/ElektraInitiative/libelektra/pull/4562/files#diff-6561dbfc58d01d3ebd5119e75ca982853e25357a360e3db8e728733e2bba11a3 As you seem interested, I added even more options to give you a more complete picture of what choices I am thinking about. @hannes99 is rewriting the tools, so it might be a good chance now to completely get rid of the duplicated documentation (once in spec for |
Thanks for clarifying. I think that your use of the term "definition list" differs from the common terminology in Markdown The example from
is a plain Markdown list. The indentations simply tell Markdown that the respective lines are continuations of the line above. The behavior found in ronn-ng therefore seems to be a violation of ordinary Markdown conventions. The PHP Markdown extension would format a "definition list" as:
For what it's worth, Doxygen already builds the man pages when Both Doxygen and Pandoc implement a more standard Markdown parser and render the above (first) as
The GitHub Markdown renderer also does this:
What do you mean with the spec for This raises another question: If the files in In conclusion, I think that if moving away from ronn-ng is the goal and you want to keep the output format there is probably no way around creating some bespoke tool for the job. (Although it might be possible to abuse, say, Doxygen to do the task by introducing a preprocessing step). PS: You wrote regarding Pandoc
I thought so too at first! But you can actually provide Pandoc with the required variables from the command line. Pandoc uses a template (when using the standalone mode
which shows for instance that there are
|
Feel free to directly make suggestions to the decision. Last comments should be corrected in 6740787
Yes but ronn interprets it in a different way.
Sorry, I mixed here features of the gopts framework and
Exactly, they shouldn't be in the repo. This is what #4528 is about. 6740787 adds a sentence to clarify why it was introduced that way. |
Will be continued in decision by @hannes99 |
It is unclear if we can build our man pages (currently checked in doc/man) from the source files in doc/help via Doxygen.
See #4528 manpages.md for why this might be a good idea.
The text was updated successfully, but these errors were encountered: