can DDOC generate files names including the full path ?

wjoe invalid at example.com
Wed Aug 14 09:43:10 UTC 2019


For example if the source tree looks like this:
>source/
>   foo/
>      baz.d
>   bar/
>      baz.d

and generating the docs with something like this:
>  dmd -D -Dd=docs foo/baz.d bar/baz.d

the output looks like this:
>docs/
>  baz.html

one baz overwrites the other.


I'd like to have something like this:
>docs/
>    foo.baz.html
>    bar.baz.html

There's the  -op  flag, but that litters the source tree with 
html files.
Neither the docs https://dlang.org/spec/ddoc.html nor google 
provided any insight.

Also there's more annoying behavior:

- Documentation generation fails if  -version  s are not provided 
resulting in a rather long command and it's tedious to manually 
keep track of it. Is there a way to make it only honor 
version(none) and treat all other -version s as a given ?

- if the  -o-  isn't provided, dmd complains about missing 
symbols. Why ? -D enables documentation mode, doesn't it?



More information about the Digitalmars-d-learn mailing list