Generate single-file HTML code documentation

こ雲淡風輕ζ 提交于 2019-12-09 08:49:07

问题


How can I use Doxygen to create the HTML documentation as a single, very long file? I want something like the RTF output, but as HTML.

The reason: I need my API published as a single, printable, document. Something that can be loaded into Word, converted to PDF, etc.


回答1:


I think you can use HTMLDOC to convert the generated html files to a single html file. (I did not try it myself)

The manual includes the following example to generate a html from two source html files:

htmldoc --book -f output.html file1.html file2.html

But there is also a gui.




回答2:


I don't think there's an option that will produce the output as a single HTML file, but the RTF output may be suitable if you need an editable output format (I haven't tried this myself so I don't know how well this works).

If you want good quality printable output, then Doxygen can output LaTeX format (set GENERATE_LATEX to YES in your doxygen configuration file). This can then be converted to PDF, although you'll need to install a LaTeX distribution such as MiKTeX.



来源:https://stackoverflow.com/questions/374032/generate-single-file-html-code-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!