Documentation improvements #200
Replies: 2 comments 9 replies
-
I agree, but i have a few questions:
Documentation for the internal structure and protocol is truly missing and it's currently in the making |
Beta Was this translation helpful? Give feedback.
-
the nodes generally map directly to to HTML tags and their functionality is quite limited. Widgets on the other hand can contain a lot of functionality, and are generally something i would consider very important to using lona. Currently, they have a short section at the bottom of the HTML page, which makes them easy to miss and seem like more of an afterthought than a big feature. I would prefer them split off to make them easier to find in the documentation, easier to notice for first-time users and to allow for elaborating more on the features they offer than a short section at the end of another document. Really, Widgets are just one example of odd grouping in the documentation: The same applies to Request and Response objects and to routing, which are currently on the Views document, which also makes them hard to find if you dont already know where to look. The whole point is really to structure the docs in a way that makes the information easy to find. Maybe splitting the documents isnt really needed, but the sidebar should definitely allow for looking through it and seeing "Routing", "Widgets", "Request/Response objects" etc. This also brings up another point: currently there is API reference and usage documentation mixed together. This makes it hard to find the documentation for arguments of a class/function since it's hard to find where that API reference is. One example being input event attributes: when writing a widget event handler, looking in the Views document for event attributes is not intuitive at all, after all im working on a widget and not a view.
one prime example is the auto-reconnect cookbook, it shows edit: Here is an example structure i would propose, which is similar to that seen in many other projects:
Thats only a rough draft, the API reference can likely be auto-generated from docstrings with sphinx or a similar tool |
Beta Was this translation helpful? Give feedback.
-
The documentation for lona isn't very easy to read currently. There are a bunch of concepts that are only mentioned as a sidenote on some pages, and a mix of lona scripts and non-script apps is used.
Some tangible changes that would be nice to have:
Beta Was this translation helpful? Give feedback.
All reactions