nix-community / nixdoc

Tool to generate documentation for Nix library functions [maintainer=@infinisil]
GNU General Public License v3.0
129 stars 14 forks source link

Feature request: Support generating multiple formats #28

Open ghost opened 1 year ago

ghost commented 1 year ago

Instead of focusing on DocBook vs CommonMark, I think it would be good to instead introduce a --format param or something similar that allows outputing to a chosen format. This would allow nixdoc to be more versatile and flexible for future formats.

IMO, it would be good to generate something that other, fantastic, documentation generators might be able to use. doxygen, rustdoc, javadoc, sphinx etc. all generate documentation that is searchable, has links back to the source, have syntax highlighting, etc. Being able to output a format that they (or another tool) might understand would probably significantly decrease the effort needed to recreate output similar to theirs.

infinisil commented 3 months ago

Related: #129