www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DUB and ddoc - howto?

reply Martin Tschierschke <mt smartdolphin.de> writes:
A very simple question, is there an example how to generate 
documentation with dub?
(like dmd -D)

My internet search was not successful.
Jun 28 2019
next sibling parent reply Daniel Kozak <kozzi11 gmail.com> writes:
Did you try dub build --help?

-b  --build=VALUE     Specifies the type of build to perform. Note that
                        setting the DFLAGS environment variable will
override
                        the build type with custom flags.
                        Possible names:
                          debug (default), plain, release, release-debug,
                          release-nobounds, unittest, profile, profile-gc,
                          docs, ddox, cov, unittest-cov, syntax and custom
                          types

So I guess something like this could work:

dub build -b ddox
or

dub build -b docs

On Fri, Jun 28, 2019 at 2:45 PM Martin Tschierschke via Digitalmars-d-learn
<digitalmars-d-learn puremagic.com> wrote:

 A very simple question, is there an example how to generate
 documentation with dub?
 (like dmd -D)

 My internet search was not successful.
Jun 28 2019
parent Martin Tschierschke <mt smartdolphin.de> writes:
On Friday, 28 June 2019 at 13:03:17 UTC, Daniel Kozak wrote:
 Did you try dub build --help?
Oh, thank you! I just looked at dub --help | grep -i doc ... and several other places...
Jun 28 2019
prev sibling parent Daniel Kozak <kozzi11 gmail.com> writes:
But I am using this one: https://github.com/adamdruppe/adrdox

On Fri, Jun 28, 2019 at 2:45 PM Martin Tschierschke via Digitalmars-d-learn
<digitalmars-d-learn puremagic.com> wrote:

 A very simple question, is there an example how to generate
 documentation with dub?
 (like dmd -D)

 My internet search was not successful.
Jun 28 2019