Open gilescope opened 2 years ago
Could we emit an attribute in the storage macro to force rustdoc to document it even though it's private?
Not yet it seems: https://github.com/rust-lang/rust/issues/66528
There's no docs around storage items in pallets. This seems to be as they're not public enough.
Depends on the storage item? some are public, some are not. Here's one that is public and its docs does show up:
https://paritytech.github.io/substrate/master/pallet_nomination_pools/pallet/type.PoolMembers.html
OwnershipAcceptance
is pub(super)
, ergo it won't appear here.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
There's no docs around storage items in pallets. This seems to be as they're not public enough. Could we add
--document-private-items
when we automatically generate our rust docs. This helps js devs reading up on pallets who might not be so comfortable reading the rust source. Also it's then in the search index.Steps to reproduce
At the moment nothing shows when searching for
OwnershipAcceptance
at https://paritytech.github.io/substrate/master/.