Skip to content
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

Documentation improvements #60

Open
nlepage opened this issue Jul 7, 2017 · 0 comments
Open

Documentation improvements #60

nlepage opened this issue Jul 7, 2017 · 0 comments

Comments

@nlepage
Copy link
Member

nlepage commented Jul 7, 2017

Description

Aliases

JsDoc doesn't allow the creation of synonyms for a function.
JsDoc's @alias has been designed to "to treat all references to a member as if the member had a different name", but not rhe creation of synonyms.
lodash uses docdown, which has been tweaked to process @alias as a list of synonyms.

Runnable examples

All examples of the documentation should be runnable using runkit.
This is the case in lodash's documentation, I don't know how it is done.

External references

Have the ability to reference a function regardless of the version.
For now the functions are organized in namespaces, and the namespace is part of the path in the URL :
https://zenika.github.io/immutadot/immutadot/0.2/array.html#concat
This forces to put also the version in the URL.
The namespace would be better placed in the hash of the URL, allowing shorter links :
https://zenika.github.io/immutadot#array.concat
Which would redirect to the latest version of the documentation.
Lodash uses @category instead of @namespace to do this.

TODO

  • Have a look at doclets.io which seems to fulfill at least the Runnable examples and External references...
@nlepage nlepage added this to the Future milestone Jul 7, 2017
@nlepage nlepage self-assigned this Jul 19, 2017
@nlepage nlepage modified the milestones: 0.3-alpha, Future Jul 19, 2017
@nlepage nlepage modified the milestones: Future, 0.3-alpha Aug 12, 2017
@nlepage nlepage mentioned this issue Aug 17, 2017
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant