ddoc - modules with same name

Jonathan M Davis jmdavisProg at gmx.com
Tue Nov 12 23:59:53 PST 2013


On Wednesday, November 13, 2013 08:27:45 rumbu wrote:
> Let's suppose I have a module structure:
> 
> - package.module1.core
> - package.module2.core
> 
> Building documentation with dmd will generate a sigle core.html
> file with content related only to package.module2.core,
> overwriting the first one.
> 
> Is there any way that dmd can recreate directory structure for
> documentation, obtaining two files: package\module1\core.html and
> package\module2\core.html?

You could do it by compiling each module individually and giving it the 
appropriate target directory, but you'd have thought that it would be designed 
to output that way in the first place. AFAIK though, there's no way to get it 
to do that. And if there is in fact no such way, then I'd argue that it's 
quite deserving of an enhancement request:

https://d.puremagic.com/issues

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list