-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
nim doc
for a multi-module library too complicated
#9444
Comments
Related: #9392 |
Isn't this what |
I feel sorry now. I was not aware of this feature yet. The commend line documentation of |
I tried it in my sample project:
It produces |
In my opinion, nim doc should by default be recursive and generate as much documentation as possible. Generating the documentation of just one single file is really a very specific use case, it should not be in the base API. |
nim doc
for a multi-module library too complicated
see also |
Actually, what does |
In addition, it'd be nice to generate links to the source code too. I couldn't make |
i had added in #8423 git.commit and git.url flag, see use in travis.yaml; needs to be documented (see "for future PR" in that PR)
see also: #6071 (comment)
|
This is all now supported, check out the |
Related: #11074 |
Summary
If you have a multi-module library, then generating the docs for the modules + creating a
theindex.html
file that has all the exported things from every module is not that easy.nim doc
should have an option to generate everything for a multi-module library.Description
I figured out what commands are needed to achieve this goal. I put together a sample multi-module library, see here: https://github.com/jabbalaci/NimMultiModuleLibrary . In the README I explain the necessary steps.
The text was updated successfully, but these errors were encountered: