Fix docs urls (#11966)

* Fix docs urls

* Update bin/node-template/README.md

* Update frame/aura/src/lib.rs

* Run cargo +nightly fmt

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Sacha Lansky
2022-08-03 12:34:33 +01:00
committed by GitHub
parent 5ebf17bfe1
commit df07421904
18 changed files with 39 additions and 40 deletions
@@ -111,7 +111,7 @@ pub fn expand_error(def: &mut Def) -> proc_macro2::TokenStream {
if get_doc_literals(&error_item.attrs).is_empty() {
error_item.attrs.push(syn::parse_quote!(
#[doc = r"
Custom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-errors)
Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)
of this pallet.
"]
));
@@ -98,7 +98,7 @@ pub fn expand_event(def: &mut Def) -> proc_macro2::TokenStream {
if get_doc_literals(&event_item.attrs).is_empty() {
event_item.attrs.push(syn::parse_quote!(
#[doc = r"
The [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted
The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted
by this pallet.
"]
));
@@ -74,7 +74,7 @@ pub fn expand(mut def: Def) -> proc_macro2::TokenStream {
def.item.attrs.push(syn::parse_quote!(
#[doc = r"
The module that hosts all the
[FRAME](https://docs.substrate.io/v3/runtime/frame)
[FRAME](https://docs.substrate.io/main-docs/build/events-errors/)
types needed to add this pallet to a
runtime.
"]
@@ -62,7 +62,7 @@ pub fn expand_pallet_struct(def: &mut Def) -> proc_macro2::TokenStream {
if get_doc_literals(&pallet_item.attrs).is_empty() {
pallet_item.attrs.push(syn::parse_quote!(
#[doc = r"
The [pallet](https://docs.substrate.io/v3/runtime/frame#pallets) implementing
The [pallet](https://docs.substrate.io/reference/frame-pallets/#pallets) implementing
the on-chain logic.
"]
));