DDoc generation

Jacob Carlborg doob at me.com
Sat Sep 19 11:58:31 UTC 2020


On Saturday, 19 September 2020 at 07:43:24 UTC, Russel Winder 
wrote:

> Doesn't that then make the whole DDoc system fairly useless, 
> despite it's use in Phobos?

If you use Dub, you can run `dub build -b ddox` and it will use 
Ddox to build the documentation. This will include an index page 
listing all modules. This will actually start a local web server 
to show the documentation. It's possible to generate 
documentation offline as well [1].

Or it should be pretty straightforward to write a simple script 
that iterates all D files and generates documentation. Then 
iterate all HTML files and output a simple index.html file.

[1] 
https://github.com/rejectedsoftware/ddox#generating-offline-documentation

--
/Jacob Carlborg



More information about the Digitalmars-d-learn mailing list