Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

pallet macros: Improve emitted rustdoc #8276

Merged
merged 1 commit into from
Mar 8, 2021
Merged

Conversation

athei
Copy link
Member

@athei athei commented Mar 5, 2021

Having types in the reference documentation without a rust doc creates a low quality impression. That said, many types emitted or augmented by the pallet macro don't need custom docs because those are well known types like Call and Config which pretty much can get a stock documentation pointing users to the relevant knowledge base article.

This PR emits such a stock documentation for the well known types in case no own documentation is specified.

  • Emit default docs for: mod pallet, Config, GenesisConfig, Pallet, Call, Error, Event
  • Emit documentation for the Call variants (copied from the pallet impl)

Please also review and improve the actual docs emitted.

@athei athei added A0-please_review Pull request needs code review. B3-apinoteworthy B0-silent Changes should not be mentioned in any release notes labels Mar 5, 2021
@athei athei added C1-low PR touches the given topic and has a low impact on builders. and removed B0-silent Changes should not be mentioned in any release notes labels Mar 5, 2021
@athei athei changed the title pallet macros: Improve outputted rustdoc pallet macros: Improve emitted rustdoc Mar 5, 2021
@athei
Copy link
Member Author

athei commented Mar 7, 2021

bot merge

@ghost
Copy link

ghost commented Mar 7, 2021

Checks failed; merge aborted.

@athei
Copy link
Member Author

athei commented Mar 7, 2021

Checks failed; merge aborted.

It's cargo deny again. Can someone with privileges merge this?

@shawntabrizi shawntabrizi merged commit 88014d5 into master Mar 8, 2021
@shawntabrizi shawntabrizi deleted the at-pallet-macro-docs branch March 8, 2021 02:45
@athei athei mentioned this pull request Mar 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants