We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://gitter.im/nim-lang/Nim?at=5bc9f064600c5f6423d4fee7
you can find the codegen for this: https://mratsim.github.io/Arraymancer/ in https://github.com/mratsim/Arraymancer/blob/master/nimdoc.cfg and https://github.com/mratsim/Arraymancer/blob/master/arraymancer.nimble#L185
The text was updated successfully, but these errors were encountered:
Ref: https://github.com/jabbalaci/NimMultiModuleLibrary
This is an example that shows how to create docs for a library that contains several modules.
Here we achieve the following things:
src/stuff.nim
src/stuff/*.nim
*.nim
theindex.html
As putting all these things together took me some time and I didn't find a step-by-step documentation, I assembled this sample project.
Under Linux, I had to execute the following commands:
$ nim doc --index:on -o:docs/htmldocs/stuff.html src/stuff.nim $ nim doc --index:on -o:docs/htmldocs/submodule1.html src/stuff/submodule1.nim $ nim doc --index:on -o:docs/htmldocs/submodule2.html src/stuff/submodule2.nim $ nim buildIndex docs/htmldocs/ $ mv docs/htmldocs/*.html docs/ # delete docs/htmldocs/ # open docs/theindex.html
See also 03_generate_docs.sh.
03_generate_docs.sh
It would be nice if nim doc could do this with a switch. Generating a complete documentation for a multi-module library should be easy.
nim doc
Courtesy: @jabbalaci
Sorry, something went wrong.
No branches or pull requests
https://gitter.im/nim-lang/Nim?at=5bc9f064600c5f6423d4fee7
The text was updated successfully, but these errors were encountered: