-
-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Create API documentation for core.cljs
#216
Comments
Relates to #62. |
See also #257 |
As a newbie to re-frame this baffles me a bit. Why there's no unified api docs wiki or whatever? Or everything is really so simple - after you learn the basics, you won't need documentation to any of |
Revising this issue after a long absence. A good-enough version of API docs can be found here: https://github.com/Day8/re-frame/blob/master/docs/API.md I won't close because eventually we'd still like a better solution. |
Any solution must deliver the following two outcomes:
I investigated 3 options
Tools such as IntelliJ/Cursive and Joker perform static analysis of code which rules out any macro-based approach. Moving the entire function implementation is undesirable from a code organisation and style perspective. Therefore we decided to go with creating wrapper functions with the docstrings and args in re-frame.core. |
day8/re-frame#216 has improved the core ns api docstrings.
The API for re-frame has grown to the point that there should be docs. That means docs for the functions exposed in
re-frame.core
core.cljs
useddef
to promote functions deeper in the implementation up to the API level. These defs don't have docstrings. What to do about this?That final point describes this practice within
core.cljs
:The text was updated successfully, but these errors were encountered: