-
Notifications
You must be signed in to change notification settings - Fork 2.6k
use proper intra doc link #10271
use proper intra doc link #10271
Conversation
@@ -182,15 +182,15 @@ pub fn expand_outer_origin( | |||
// For backwards compatibility and ease of accessing these functions. | |||
#[allow(dead_code)] | |||
impl Origin { | |||
/// Create with system none origin and `frame-system::Config::BaseCallFilter`. | |||
/// Create with system none origin and [`frame_system::Config::BaseCallFilter`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use #system_path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh... Can you elaborate more what you mean by system_path? @bkchr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thiolliere already has written this for you: #9962 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually tried out what @thiolliere suggested, it wasn't outputting the right docs and I ran into errors too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then you need to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad. @thiolliere will push a fix for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thiolliere i have fix this in my latest push. You can check now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still awaiting your reviews @thiolliere @bkchr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will review when we get time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
frame/support/procedural/src/construct_runtime/expand/origin.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Guillaume Thiolliere <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nitpick, otherwise looks good.
let system_path_name = system_path.module_name(); | ||
|
||
let doc_string = get_intra_doc_string( | ||
" Origin is always created with the base filter configured in", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please get rid of the leading whitespaces in all these codes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. Will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkchr i have done that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty
…-for-macro' into dharjeezy/proper-intra-doc-links-for-macro # Conflicts: # frame/support/procedural/src/construct_runtime/expand/origin.rs
let system_path_name = system_path.module_name(); | ||
|
||
let doc_string = get_intra_doc_string( | ||
"Origin is always created with the base filter configured in", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last question, so this leading whitespace was never needed? I would have thought that you may need to add it in your function below, but there is already one.
I just want to have this clarified and then I'm going to merge this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes... The leading whitespace was never needed. You can go ahead and merge
/tip small |
Please fix the following problems before calling the tip bot again:
|
I have added my Polkadot address correctly now. |
/tip small |
A small tip was successfully submitted for dharjeezy (12ZNas89oEagaxLVNbpqmvfMxdrGrqN7gJKSpwthTUPZsrku on polkadot). |
* use proper intra doc link * use proper intra doc link * get system path name from path module name function for the docs * used format macro in formatting doc string for better output * helper function to get intra doc string * helper function to get intra doc string * use helper function on expand_origin_pallet_conversions * remove duplicates * Update frame/support/procedural/src/construct_runtime/expand/origin.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * remove leading white space Co-authored-by: Damilare <[email protected]> Co-authored-by: Guillaume Thiolliere <[email protected]>
* use proper intra doc link * use proper intra doc link * get system path name from path module name function for the docs * used format macro in formatting doc string for better output * helper function to get intra doc string * helper function to get intra doc string * use helper function on expand_origin_pallet_conversions * remove duplicates * Update frame/support/procedural/src/construct_runtime/expand/origin.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * remove leading white space Co-authored-by: Damilare <[email protected]> Co-authored-by: Guillaume Thiolliere <[email protected]>
Use proper intra doc link as mentioned in issue #9962 @thiolliere
Polkadot address: 12ZNas89oEagaxLVNbpqmvfMxdrGrqN7gJKSpwthTUPZsrku