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:
Dan Shields
2021-10-13 12:56:56 -06:00
committed by GitHub
parent aad0682c45
commit 8db7ec9cc9
222 changed files with 231 additions and 230 deletions
+2 -2
View File
@@ -26,13 +26,13 @@ use frame_system::RawOrigin;
// To actually run this benchmark on pallet-example, we need to put this pallet into the
// runtime and compile it with `runtime-benchmarks` feature. The detail procedures are
// documented at:
// https://substrate.dev/docs/en/knowledgebase/runtime/benchmarking#how-to-benchmark
// https://docs.substrate.io/v3/runtime/benchmarking#how-to-benchmark
//
// The auto-generated weight estimate of this pallet is copied over to the `weights.rs` file.
// The exact command of how the estimate generated is printed at the top of the file.
// Details on using the benchmarks macro can be seen at:
// https://substrate.dev/rustdocs/v3.0.0/frame_benchmarking/macro.benchmarks.html
// https://paritytech.github.io/substrate/master/frame_benchmarking/trait.Benchmarking.html#tymethod.benchmarks
benchmarks! {
// This will measure the execution time of `set_dummy` for b in [1..1000] range.
set_dummy_benchmark {
+3 -3
View File
@@ -316,8 +316,7 @@ const MILLICENTS: u32 = 1_000_000_000;
// - assigns a dispatch class `operational` if the argument of the call is more than 1000.
//
// More information can be read at:
// - https://substrate.dev/docs/en/knowledgebase/learn-substrate/weight
// - https://substrate.dev/docs/en/knowledgebase/runtime/fees#default-weight-annotations
// - https://docs.substrate.io/v3/runtime/weights-and-fees
//
// Manually configuring weight is an advanced operation and what you really need may well be
// fulfilled by running the benchmarking toolchain. Refer to `benchmarking.rs` file.
@@ -548,7 +547,8 @@ pub mod pallet {
// Print out log or debug message in the console via log::{error, warn, info, debug,
// trace}, accepting format strings similar to `println!`.
// https://substrate.dev/rustdocs/v3.0.0/log/index.html
// https://paritytech.github.io/substrate/master/sp_io/logging/fn.log.html
// https://paritytech.github.io/substrate/master/frame_support/constant.LOG_TARGET.html
info!("New value is now: {:?}", new_value);
// Put the new value into storage.