removing module level from ddox output

Bryce via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 7 11:33:03 PST 2017


Is there a way to flatten out the documentation hierarchy 
generated by ddox? To be more clear, when we generate 
documentation with dub -b ddox, the main page lists all my 
modules, and each module page lists all the classes in that 
module, etc. I want to remove the modules from the main page and 
just list my classes as if they were in a single module without 
having to put everything in a single file.

We can already do this from a code point of view by publicly 
importing stuff in package.d, so from the user's perspective 
there is only a single module with some classes in it (they don't 
have to worry about how I organized things in various files). Is 
there a way to make the documentation match this simple import 
paradigm?

I suspect it's possible by redefining some ddoc macros in 
package.d, but I'm not quite sure how to go about it or if 
there's and easier way.

Thanks!


More information about the Digitalmars-d-learn mailing list