Metadata V15: Expose pallet documentation (#13452)
* frame/proc: Helpers to parse pallet documentation attributes Signed-off-by:Alexandru Vasile <alexandru.vasile@parity.io> * frame/proc: Expand pallet with runtime metadata documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/dispatch: Implement doc function getter for dispatch Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/tests: Check exposed runtime metadata documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/tests: Add UI tests for `pallet_doc` attribute Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/proc: Document pallet_doc attribute Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * frame/support: Use `derive_syn_parse` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update frame/support/procedural/src/lib.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * frame/support: Improve documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: parity-processbot <> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
Showing
- substrate/frame/support/procedural/src/lib.rs 51 additions, 0 deletionssubstrate/frame/support/procedural/src/lib.rs
- substrate/frame/support/procedural/src/pallet/expand/documentation.rs 221 additions, 0 deletions...ame/support/procedural/src/pallet/expand/documentation.rs
- substrate/frame/support/procedural/src/pallet/expand/mod.rs 4 additions, 0 deletionssubstrate/frame/support/procedural/src/pallet/expand/mod.rs
- substrate/frame/support/src/dispatch.rs 24 additions, 0 deletionssubstrate/frame/support/src/dispatch.rs
- substrate/frame/support/test/tests/pallet.rs 12 additions, 0 deletionssubstrate/frame/support/test/tests/pallet.rs
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_arg_non_path.rs 16 additions, 0 deletions...e/support/test/tests/pallet_ui/pallet_doc_arg_non_path.rs
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_arg_non_path.stderr 5 additions, 0 deletions...pport/test/tests/pallet_ui/pallet_doc_arg_non_path.stderr
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_empty.rs 16 additions, 0 deletions...te/frame/support/test/tests/pallet_ui/pallet_doc_empty.rs
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_empty.stderr 5 additions, 0 deletions...rame/support/test/tests/pallet_ui/pallet_doc_empty.stderr
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_invalid_arg.rs 16 additions, 0 deletions...me/support/test/tests/pallet_ui/pallet_doc_invalid_arg.rs
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_invalid_arg.stderr 5 additions, 0 deletions...upport/test/tests/pallet_ui/pallet_doc_invalid_arg.stderr
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_multiple_args.rs 16 additions, 0 deletions.../support/test/tests/pallet_ui/pallet_doc_multiple_args.rs
- substrate/frame/support/test/tests/pallet_ui/pallet_doc_multiple_args.stderr 5 additions, 0 deletions...port/test/tests/pallet_ui/pallet_doc_multiple_args.stderr
Please register or sign in to comment