mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 20:07:56 +00:00
Migrate to docs.substrate.io throughout (#10007)
* all reverences of substrate.dev replaced with *correct* docs.substrate.io links * fix links in non-cargo files, errors in replace * homepage https://substrate.io * cargo +nightly fmt * FMT Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -69,7 +69,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://substrate.dev/docs/en/knowledgebase/runtime/errors)
|
||||
Custom [dispatch errors](https://docs.substrate.io/v3/runtime/events-and-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://substrate.dev/docs/en/knowledgebase/runtime/events) emitted
|
||||
The [event](https://docs.substrate.io/v3/runtime/events-and-errors) emitted
|
||||
by this pallet.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -89,7 +89,7 @@ pub fn expand_genesis_config(def: &mut Def) -> proc_macro2::TokenStream {
|
||||
attrs.push(syn::parse_quote!(
|
||||
#[doc = r"
|
||||
Can be used to configure the
|
||||
[genesis state](https://substrate.dev/docs/en/knowledgebase/integrate/chain-spec#the-genesis-state)
|
||||
[genesis state](https://docs.substrate.io/v3/runtime/chain-specs#the-genesis-state)
|
||||
of this pallet.
|
||||
"]
|
||||
));
|
||||
|
||||
@@ -72,9 +72,9 @@ 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://substrate.dev/docs/en/knowledgebase/runtime/frame)
|
||||
[FRAME](https://docs.substrate.io/v3/runtime/frame)
|
||||
types needed to add this pallet to a
|
||||
[runtime](https://substrate.dev/docs/en/knowledgebase/runtime/).
|
||||
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://substrate.dev/docs/en/knowledgebase/runtime/pallets) implementing
|
||||
The [pallet](https://docs.substrate.io/v3/runtime/frame#pallets) implementing
|
||||
the on-chain logic.
|
||||
"]
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user