-
Notifications
You must be signed in to change notification settings - Fork 4
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
Generate # Extended help
with all component descriptions
#47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good. Let's just mark these new methods as internal
Co-authored-by: Rafael Schouten <rafaelschouten@gmail.com>
Maybe run the Base interfaces.jl test manually to see what's broken. Some may not have descriptions? (and that's allowed) |
Oh yeah it looks like it's the fact that some keys don't have descriptions. I'll make a patch. |
Ok it is done. I also refactored things a bit nicer and made it more robust to any future edge cases |
This comment was marked as resolved.
This comment was marked as resolved.
Ok I fixed the docs build by just splitting out the test into a separate file and including in a line with julia --project=docs/ docs/make.jl
[ Info: generating markdown page from `~/PermaDocuments/Interfaces.jl/test/basic.jl`
[ Info: writing result to `~/PermaDocuments/Interfaces.jl/docs/src/basic.md`
[ Info: generating markdown page from `~/PermaDocuments/Interfaces.jl/test/advanced.jl`
[ Info: writing result to `~/PermaDocuments/Interfaces.jl/docs/src/advanced.md`
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
[ Info: ExpandTemplates: expanding markdown templates.
[ Info: CrossReferences: building cross-references.
[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
[ Info: RenderDocument: rendering document.
[ Info: HTMLWriter: rendering HTML pages.
[ Info: Automatic `version="0.3.0"` for inventory from ../Project.toml
┌ Warning: Documenter could not auto-detect the building environment. Skipping deployment.
└ @ Documenter ~/.julia/packages/Documenter/qoyeC/src/deployconfig.jl:76 |
This adds an automatically-generated
# Extended help
section with all component descriptions.This won't appear in the normal docs for
?
, only for??
which is the extended help, as described in #46.Using my package's NodeInterface as an example, here is the before:
(Expand)
And the after:
For multiple methods, it generates a nested list.
For example, for the GroupInterface: