grammers icon indicating copy to clipboard operation
grammers copied to clipboard

Extensive, beginner friendly documentation

Open Lonami opened this issue 4 years ago • 7 comments

Any product will be useless unless people know how to use it. Once we settle on a stable design, we should document every public module of (at least) the client library with instructions on how to get started, where to look, a section on using raw API and understanding the return types…

Lonami avatar Feb 05 '20 12:02 Lonami

I think we should refer to such documentations as a Cookbook or a Guide as in general how most other platforms do. And not dilute the documentations too much.

It would certainly add a burden of maintaining such a Guide but I think keeping it separate from Documentations would cause a lot less pain and confusion to beginners, while allowing others to use Documentation without being annoyed by obnoxious amounts of explanation.

swarnimarun avatar Feb 06 '20 15:02 swarnimarun

It is definitely plausible to host a separate guide under https://gramme.rs, or even use this project's wiki (which we can link as a guide from the main site or the documentation). So doing it like this instead of cluttering the reference (in https://docs.rs) is definitely a fair enough idea.

Lonami avatar Feb 06 '20 15:02 Lonami

In general starting with a simple Bot example would be good and also help with reaching to a MVP stage for the project.

Making general examples would also help us identify what needs to have better abstractions for implementation, like Client API is one which can obviously use a lot of work. Such examples would help identify the most important things to work on to make this project actually usable.

swarnimarun avatar Feb 06 '20 16:02 swarnimarun

There are already some under grammers-client/examples. For the rest of libraries, examples within the documentation comments are probably enough, because they provide small building blocks. On contrary, the client is about integrating those to build something bigger, so separate example files make the most sense.

Lonami avatar Feb 06 '20 17:02 Lonami

See also: html_favicon_url and html_logo_url, as explained in What is rustdoc?.

Lonami avatar May 22 '20 13:05 Lonami

More on this: we probably want to run cargo-spellcheck to avoid typos.

Lonami avatar Jun 30 '20 16:06 Lonami