Documentation tool

What tool do you recommend for documenting Arduino code?

I like the HTML documentation that I see for several of the libraries (e.g serial), especially for the functions.

Sublime Text provides a nice plugin, ExportHTML, that exports code to HTML with syntax highlighting.

sthudium:
What tool do you recommend for documenting Arduino code?

What do you want to document?

  1. the usage of the library?

  2. the why of the implementation?

  3. the how of the implementation?

  4. all above.

Maybe a better question is, what editor do I use to create documentation for a project or library? In the "New Project" tutorial, I see examples of projects, but am missing the how (tools, editor) of creating the documentation.

For example, the project "Herb Box Eco System", has a nice window that presents various code files, in the section titled, "CODE". How is that window created?

Please post a link to this "New Project" tutorial.

Please post a link to this "Herb Box Eco System" page.

The Arduino Language Reference pages are generated from adoc files located in this repository:

That includes the Serial reference pages. I believe they use a tool named Hugo to render the content from those pages:

A popular documentation generation tool is called doxygen. That works from comments in the code. Often I find the doxygen generated documentation to be hard to navigate but I think with a bit of care it can be very good.

pert:
Please post a link to this "New Project" tutorial.

Please post a link to this "Herb Box Eco System" page.

The link to "New Project" tutorial is How to Submit Content on Arduino Project Hub - Arduino Project Hub

The link to Herb Box Eco System" page is Herb Box Eco System - Arduino Project Hub

I don't have experience with the Arduino Project Hub. I suspect if you start a new project and tinker around it will quickly be quite clear.

I know the Arduino Project Hub does offer integration with the Arduino Web Editor, where you can embed your Arduino Web Editor sketches in an Arduino Project Hub project and the contents will be automatically updated anytime you edit your sketch and also it will be easy for people to open a copy of your code in their own Arduino Web Editor account. However, I don't believe that is the case with the code boxes you see in the Herb Box Eco System project.