Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve frame umbrella crate doc experience #4007

Merged
merged 3 commits into from
Apr 6, 2024

Conversation

liamaharon
Copy link
Contributor

@liamaharon liamaharon commented Apr 5, 2024

  1. Add #[doc(no_inline)] to frame umbrella crate re-exports that eventually resolve to frame_support_procedural so docs don't look like the screenshot below and instead link to the proper frame-support docs.
Screenshot 2024-04-05 at 20 05 01
  1. Remove "Rust-Analyzer Users: " prefix from frame_support_procedural doc comments, since these doc comments are visible in the web documentation and possible to stumble upon especially when navigating from the frame umbrella crate.

@liamaharon liamaharon added R0-silent Changes should not be mentioned in any release notes T11-documentation This PR/Issue is related to documentation. labels Apr 5, 2024
@liamaharon liamaharon requested a review from a team as a code owner April 5, 2024 16:08
@ggwpez
Copy link
Member

ggwpez commented Apr 5, 2024

Can you also post a screenshot how it looks now, or is it only available after deploying to docs-rs?

@liamaharon
Copy link
Contributor Author

liamaharon commented Apr 6, 2024

@ggwpez here

Screenshot 2024-04-06 at 09 16 30

clicking pallet_macros leads to the page with correct docs.

@kianenigma kianenigma added this pull request to the merge queue Apr 6, 2024
Merged via the queue into master with commit 74d6309 Apr 6, 2024
129 of 134 checks passed
@kianenigma kianenigma deleted the liam-fix-pallet-macro-umbrella-crate-docs branch April 6, 2024 10:29
Ank4n pushed a commit that referenced this pull request Apr 9, 2024
1. Add `#[doc(no_inline)]` to frame umbrella crate re-exports that
eventually resolve to `frame_support_procedural` so docs don't look like
the screenshot below and instead link to the proper `frame-support`
docs.
<img width="1512" alt="Screenshot 2024-04-05 at 20 05 01"
src="https://github.com/paritytech/polkadot-sdk/assets/16665596/a41daa4c-ebca-44a4-9fea-f9f336314e13">


2. Remove `"Rust-Analyzer Users: "` prefix from
`frame_support_procedural` doc comments, since these doc comments are
visible in the web documentation and possible to stumble upon especially
when navigating from the frame umbrella crate.

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
dharjeezy pushed a commit to dharjeezy/polkadot-sdk that referenced this pull request Apr 9, 2024
1. Add `#[doc(no_inline)]` to frame umbrella crate re-exports that
eventually resolve to `frame_support_procedural` so docs don't look like
the screenshot below and instead link to the proper `frame-support`
docs.
<img width="1512" alt="Screenshot 2024-04-05 at 20 05 01"
src="https://github.com/paritytech/polkadot-sdk/assets/16665596/a41daa4c-ebca-44a4-9fea-f9f336314e13">


2. Remove `"Rust-Analyzer Users: "` prefix from
`frame_support_procedural` doc comments, since these doc comments are
visible in the web documentation and possible to stumble upon especially
when navigating from the frame umbrella crate.

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T11-documentation This PR/Issue is related to documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants