-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding modules to modules.ddoc is tedious #19
Comments
One way you could solve this problem is to walk the file system hierarchy of your source base and generate modules.ddoc from that. Perhaps some utility to do this could be added to the generator script. |
@jkm Would you prefer passing all your modules to the generator script on the command line, or just pointing it to a root directory which it walks to find all modules? I personally prefer the former, because the latter would make it impossible to not include internal modules. |
The first option looks better. Ideally I won't need the modules.ddoc file at all. But I see that this is difficult to achieve. |
The Hence, the generator tool just reuses this existing information so you don't have to repeat it on the command line. It's possible to reverse the process and make the tool automatically generate the When it comes to generating |
@JakobOvrum I think the idea is that we'll feed modules to the generator script on the command line and it'll just populate Of course we should still support hand-written |
btw, I'm completely open to this as long as it fits nicely. Currently, the generate tool uses the first argument as the location of the root of the project, i.e., the path passed as However, the current design isn't very good anyway because it only allows for one root that way, others have to be passed as Suggestions with details about how it would actually work would be appreciated. |
On a side note I have problems when generating documentation if there are modules with the same name but in different packages. The documentation file is overriden. This a dmd problem. I created a pull request for dmd to fix this. Have you encountered this yourself? |
@jkm, yes, you can use the I think the generator tool avoids this problem by calling DMD once for every file and using the |
I could not use the generator tool because I do not know how to set import paths. Do you know how to do this? For the moment I'm using |
@jkm, command line arguments that aren't processed by the generator tool are passed onto the compiler. You can just pass |
I had a look a the code. I was passing |
Regularly I forget adding new modules to modules.ddoc. Is there any way to automate this process?
The text was updated successfully, but these errors were encountered: