Skip to content

Commit 84cfc8b

Browse files
author
Sacha Lansky
authored
Fix broken links (polkadot-developers#326)
1 parent 617b287 commit 84cfc8b

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

.github/ISSUE_TEMPLATE/broken-link.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Broken link
22
description: Report a broken link to help us fix them.
33
title: "[Broken Link]: "
4-
labels: ["fixlink"]
4+
labels: ["broken link"]
55
body:
66
- type: markdown
77
attributes:

.netlify/_redirects_production

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
/docs/en/knowledgebase/learn-substrate/* /v3/concepts/:splat 301!
7272
/docs/en/knowledgebase/runtime /v3/concepts/runtime 301!
7373
/docs/en/knowledgebase/runtime/ /v3/concepts/runtime 301!
74+
/docs/en/knowledgebase/runtime/pallets /v3/runtime/frame#pallets 301!
75+
/docs/en/knowledgebase/runtime/origin /v3/runtime/origins 301!
7476

7577
### Knowledge Base: Runtime Development
7678
/docs/en/knowledgebase/runtime/fees /v3/runtime/weights-and-fees 301!

v3/docs/03-runtime/c-metadata/index.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ keywords:
99

1010
Blockchains that are built on Substrate expose metadata in order to make it easier to interact with
1111
them. This metadata is separated by the different [pallets](/v3/runtime/frame#pallets) that inform your blockchain.
12-
For each module, the metadata provides information about the [storage items](../storage),
13-
[extrinsic calls](../../concepts/extrinsics), [events](../events-and-errors), constants, and errors that are
12+
For each module, the metadata provides information about the [storage items](/v3/runtime/storage),
13+
[extrinsic calls](/v3/concepts/extrinsics), [events](/v3/runtime/events-and-errors), constants, and errors that are
1414
exposed by that module. Substrate automatically generates this metadata for you and makes it
1515
available through RPC calls.
1616

1717
Since the runtime of a Substrate blockchain is an evolving part of the blockchain's state,
1818
blockchain metadata is stored on a per-block basis. Be aware that querying the metadata for an older
1919
block (with an archive node, for example) could result in acquiring out-of-date metadata that is not
2020
compatible with a blockchain's current state. As described in the
21-
[Upgrades documentation](../upgrades), developers building on top of Substrate chains can
21+
[Upgrades documentation](/v3/runtime/upgrades), developers building on top of Substrate chains can
2222
expect that the metadata for a chain should _only_ change when the chain's
2323
[runtime `spec_version`](/rustdocs/latest/sp_version/struct.RuntimeVersion.html#structfield.spec_version)
2424
changes.
@@ -264,7 +264,7 @@ about the module's storage:
264264
```
265265

266266
Every storage item that is defined in a pallet will have a corresponding metadata entry.
267-
Metadata entries like these are generated from [macros](../macros) using associated types from the [`frame-system`](/rustdocs/latest/frame_system/pallet/trait.Config.html) crate. For example:
267+
Metadata entries like these are generated from [macros](/v3/runtime/macros) using associated types from the [`frame-system`](/rustdocs/latest/frame_system/pallet/trait.Config.html) crate. For example:
268268

269269
```rust
270270
#[pallet::config]
@@ -450,11 +450,11 @@ the [`InvalidSpecName` error](/rustdocs/latest/frame_system/pallet/enum.Error.ht
450450

451451
### Learn more
452452

453-
- [Storage](../storage)
453+
- [Storage](/v3/runtime/storage)
454454
- [SCALE](/v3/advanced/scale-codec)
455-
- [Macros](../macros)
456-
- [Events](../events-and-errors)
457-
- [Extrinsics](../../concepts/extrinsics)
455+
- [Macros](/v3/runtime/macros)
456+
- [Events](/v3/runtime/events-and-errors)
457+
- [Extrinsics](/v3/concepts/extrinsics)
458458

459459
### References
460460

v3/docs/03-runtime/h-weights-and-fees/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ You can also use the Transaction Payment pallet to:
5959

6060
* Manage the withdrawal, refund, and deposit of transaction fees using `Config::OnChargeTransaction`.
6161

62-
You can learn more about these configuration traits in the [Transaction Payment](https://substrate.dev/rustdocs/latest/pallet_transaction_payment/index.html) documentation.
62+
You can learn more about these configuration traits in the [Transaction Payment](/rustdocs/latest/pallet_transaction_payment/index.html) documentation.
6363

6464
You should note that transaction fees are withdrawn before the transaction is executed.
6565
After the transaction is executed, the transaction weight can be adjusted to reflect the actual resources the transaction used.
@@ -102,10 +102,10 @@ However, this scenario would be a rare occurrence because the transaction queue
102102

103103
The inclusion fee formula always results in the same fee for the same input.
104104
However, weight can be dynamic and—based on how
105-
[`WeightToFee`](https://substrate.dev/rustdocs/latest/pallet_transaction_payment/pallet/trait.Config.html#associatedtype.WeightToFee)
105+
[`WeightToFee`](/rustdocs/latest/pallet_transaction_payment/pallet/trait.Config.html#associatedtype.WeightToFee)
106106
is defined—the final fee can include some degree of variability.
107107

108-
To account for this variability, the Transaction Payment pallet provides the [`FeeMultiplierUpdate`](https://substrate.dev/rustdocs/latest/pallet_transaction_payment/pallet/trait.Config.html#associatedtype.FeeMultiplierUpdate) configurable parameter.
108+
To account for this variability, the Transaction Payment pallet provides the [`FeeMultiplierUpdate`](/rustdocs/latest/pallet_transaction_payment/pallet/trait.Config.html#associatedtype.FeeMultiplierUpdate) configurable parameter.
109109

110110
The default update function is inspired by the Polkadot network and implements a targeted adjustment in which a target saturation level of block weight is defined.
111111
If the previous block is more saturated, then the fees are slightly increased.

v3/docs/03-runtime/i-benchmarking/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ large overhead such a process would introduce. Instead, Substrate expects benchm
2222
approximate maximum for the worst case scenario of executing an extrinsic. Users are charged assuming
2323
this worst case scenario path was taken, and if the extrinsic turns out needing less resources, some of
2424
the estimated weight and fees can be returned. This is further explained in the
25-
[Transaction Weights and Fees](../weights-and-fees) chapter.
25+
[Transaction Weights and Fees](/v3/runtime/weights-and-fees) chapter.
2626

2727
## Why benchmark a pallet
2828

v3/how-to-guides/01-basics/g-weights/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ difficulty: 1
1515
"This guide shows a basic procedure for configuring weights. There are more
1616
advanced methods that suit different use cases. For simple functions with fixed amounts
1717
of storage reads, this method works well. For any other use cases, see the section
18-
[on weights](../../weights/calculate-fees).
18+
[on weights](/how-to-guides/v3/weights/calculate-fees).
1919
"
2020
/>
2121

v3/how-to-guides/02-pallet-design/a-add-contracts-pallet/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ difficulty: 1
4747

4848
### 1. Import the dependencies
4949

50-
Refer to [this guide](../../basics/pallet-integration) to properly include Contracts in your runtime.
50+
Refer to [this guide](/how-to-guides/v3/basics/pallet-integration) to properly include Contracts in your runtime.
5151

5252
This includes **updating `runtime/Cargo.toml` and `runtime/Cargo.toml`** with:
5353

v3/how-to-guides/05-storage-migrations/c-migration-tests/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ difficulty: 2
2424
description:
2525
`When writing a runtime migration module it is important to test it to avoid any critical issues caused by mangling storage items. This
2626
guide provides a walk through of the tests to include for a simple storage migration of a single pallet, using the Nicks pallet
27-
migration from the [basic storage migration guide](../basics) as a reference.
27+
migration from the [basic storage migration guide](/how-to-guides/v3/storage-migrations/basics) as a reference.
2828
`,
2929
},
3030
]}
@@ -34,7 +34,7 @@ difficulty: 2
3434

3535
### 1. Write mock runtime
3636

37-
Refer to [this guide](../../testing/basics) to learn how to set up the dependencies for your test environment.
37+
Refer to [this guide](/how-to-guides/v3/testing/basics) to learn how to set up the dependencies for your test environment.
3838

3939
### 2. Specify unit tests
4040

0 commit comments

Comments
 (0)