-
Notifications
You must be signed in to change notification settings - Fork 2.6k
☂️ Formalize Pallet
and Call
docs
#13299
Comments
@ggwpez, this is really cool. I do have some ideas about this. I'll try. to sketch out a sample template next week. |
A step toward this is #13341 Right now, we have a section in the docs of some pallet that repeats the dispatchables. This should be just replaced with these modules. |
At a high level, it would be nice for every pallet to cover the following, where applicable:
I gather PR #13341 is about automating the collection of information. |
All of these don't need to be in the "high level" docs. The high level docs, as the name indicate should be a on a high level. How does the pallet work, what is it doing etc. Basically all the other things you mentioned there! |
I tried out some scheme for the MQ pallet, and it basically turned into these sections. I will re-use that for the
Diagrams would be nice, but so far i did not find a good way for ASCII diagrams or something suitable for rust doc. |
Have you seen |
This is my suggestion. The main alteration I have is to make the docs read from "high level" to "low level". So something like design and design goals should be all the way at the end, as this is a very low level implementation note: https://hackmd.io/4pjRqPNNTnGXJHKK9jv90A So at a high level, it is 3 steps:
|
The FRAME team realized that
Pallet
and palletCall
documentation should be more formalized and probably have some templates to them.Ultimately this can be CI checked by parsing the docs with a macro and comparing against the templates.
This should help to have a unified basis to build higher-level docs upon
First step would be to agree on a structure for the pallet level docs and
README
requirements for them.(cc @lisa-parity in case you have some ideas)
The text was updated successfully, but these errors were encountered: