mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Markdown linter (#1309)
* Add markdown linting - add linter default rules - adapt rules to current code - fix the code for linting to pass - add CI check fix #1243 * Fix markdown for Substrate * Fix tooling install * Fix workflow * Add documentation * Remove trailing spaces * Update .github/.markdownlint.yaml Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix mangled markdown/lists * Fix captalization issues on known words
This commit is contained in:
@@ -1386,7 +1386,7 @@ fn metadata() {
|
||||
}
|
||||
}
|
||||
|
||||
let readme = "Support code for the runtime.\n\nLicense: Apache-2.0";
|
||||
let readme = "Support code for the runtime.\n\nLicense: Apache-2.0\n";
|
||||
let expected_pallet_doc = vec![" Pallet documentation", readme, readme];
|
||||
|
||||
let pallets = vec![
|
||||
@@ -1889,7 +1889,7 @@ fn metadata_ir_pallet_runtime_docs() {
|
||||
.find(|pallet| pallet.name == "Example")
|
||||
.expect("Pallet should be present");
|
||||
|
||||
let readme = "Support code for the runtime.\n\nLicense: Apache-2.0";
|
||||
let readme = "Support code for the runtime.\n\nLicense: Apache-2.0\n";
|
||||
let expected = vec![" Pallet documentation", readme, readme];
|
||||
assert_eq!(pallet.docs, expected);
|
||||
}
|
||||
@@ -1919,7 +1919,7 @@ fn extrinsic_metadata_ir_types() {
|
||||
#[test]
|
||||
fn test_pallet_runtime_docs() {
|
||||
let docs = crate::pallet::Pallet::<Runtime>::pallet_documentation_metadata();
|
||||
let readme = "Support code for the runtime.\n\nLicense: Apache-2.0";
|
||||
let readme = "Support code for the runtime.\n\nLicense: Apache-2.0\n";
|
||||
let expected = vec![" Pallet documentation", readme, readme];
|
||||
assert_eq!(docs, expected);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user