Using dub to create documentation

How can I use dub to create DDoc from my source files? There seems to be no default command in the dub command, and I really would like to automate this process.

+8
documentation documentation-generation d dub ddoc
source share
1 answer

Creating documents through dub actually set using the build type.

Try dub build --build=docs or dub build --build=ddox .

The former builds "simple" ddocs, the latter uses dub to extract ddox to format your documents.

This is really shown in the help, its just well hidden. Take a look at the "build" section of dub build -h (you can use dub <command> -h to get detailed help on a specific command).

+5
source share

All Articles