From 011ca4735a26d4c85c7ca8870f5c0fe84c4392ce Mon Sep 17 00:00:00 2001 From: Nuke Date: Mon, 23 Oct 2023 10:12:27 -0600 Subject: [PATCH 1/6] a fex fixes, warn update shell might be needed --- Makefile.toml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index e4def0c..801c5d6 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -3,10 +3,6 @@ # See all insluded task with: # makers --list-all-steps -[tasks.default] -alias = "serve" -dependencies = ["check-install"] - [config] # Catch errors and report to try and help user on_error_task = "catch-error" @@ -20,6 +16,10 @@ skip_rust_env_info = true # Skips loading the current crate related environment variables skip_crate_env_info = true +[tasks.default] +alias = "serve" +dependencies = ["check-install"] + # ----------------------------------------------------------------------------- # Installation @@ -33,6 +33,11 @@ alias = "install-dev" [tasks.ia] category = "Install" +alias = "install-all" + +[tasks.install-all] +description = "Install all dependencies for slides and book tooling, and dev tools." +category = "Install" dependencies = ["install", "install-dev"] [tasks.install] @@ -53,7 +58,7 @@ if ! $(echo "type bun" | sh > /dev/null ); then echo "🥟 Installing https://bun.sh ..." curl -fsSL https://bun.sh/install | bash fi -echo "💽 Bun installed." +echo "💽 Bun installed. NOTE: you may need to update your shell to include this, see above output." echo "🥟 Install slides tooling with Bun..." bun install @@ -67,6 +72,7 @@ script = 'rm -rf node_modules/ html-slides/ html-book/ && makers ia' [tasks.install-dev] description = "Install dev tools." +category = "Install" dependencies = ["install-linkcheck", "install-formatter"] [tasks.install-linkcheck] @@ -84,6 +90,15 @@ script = "cargo install --locked dprint" [tasks.s] alias = "serve" +category = "Serve" + +[tasks.sb] +alias = "serve-book" +category = "Serve" + +[tasks.ss] +alias = "serve-slides" +category = "Serve" [tasks.serve] # FIXME - want some way to have a watching server for slides AND the book. Likely some hooks in mdBook and/or reveal-md could be used. From 385ecf90b9dcb6489a52054ab316f76baddccf43 Mon Sep 17 00:00:00 2001 From: Nuke Date: Mon, 23 Oct 2023 11:37:44 -0600 Subject: [PATCH 2/6] ownwer to Asamartino --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d51fb16..d28b70c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,6 +3,6 @@ # precedence. # Default owners for everything: -* @NukeManDan +* @Asamartino # See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners \ No newline at end of file From 82bf75229c9f599fa36631d7d0a10b54d6a84b3a Mon Sep 17 00:00:00 2001 From: Nuke Date: Mon, 23 Oct 2023 11:42:36 -0600 Subject: [PATCH 3/6] fix links --- SECURITY.md | 2 +- .../blockchain-contracts/resources-fees-ordering/slides.md | 2 +- content/contribute/index.md | 2 +- content/cryptography/_materials/subkey-demo.md | 2 +- content/frame/extensions/slides.md | 2 +- content/frame/migrations/slides.md | 2 +- content/polkadot/build-a-parachain/slides.md | 2 +- content/polkadot/cumulus/slides.md | 4 ++-- content/substrate/intro/slides.md | 2 +- content/xcm/beyond/slides.md | 2 +- content/xcm/config/slides.md | 2 +- content/xcm/intro/slides.md | 2 +- content/xcm/pallet/slides.md | 2 +- content/xcm/polkadot/slides.md | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 5317942..5eda10a 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1,3 @@ # Security Policy -See: +See: diff --git a/content/blockchain-contracts/resources-fees-ordering/slides.md b/content/blockchain-contracts/resources-fees-ordering/slides.md index 52c6938..b9bb03e 100644 --- a/content/blockchain-contracts/resources-fees-ordering/slides.md +++ b/content/blockchain-contracts/resources-fees-ordering/slides.md @@ -365,4 +365,4 @@ pub trait Hooks { } ``` -Source: [`/frame/support/src/traits/hooks.rs`](https://github.com/paritytech-stg/polkadot-sdk/blob/a13382f/substrate/frame/support/src/traits/hooks.rs) +Source: [`/frame/support/src/traits/hooks.rs`](https://github.com/paritytech/polkadot-sdk/blob/a13382f/substrate/frame/support/src/traits/hooks.rs) diff --git a/content/contribute/index.md b/content/contribute/index.md index 65c448e..482bda8 100644 --- a/content/contribute/index.md +++ b/content/contribute/index.md @@ -251,7 +251,7 @@ They typically are identical to: - Always use proper MarkDown links! `` is required, raw links _will not be rendered_ in mdBook! - Never use links that are likely ephemeral and will break. - This example is in main, not some PR branch: + This example is in main, not some PR branch: You _must_ be permalinks to a commit hash when using a github link, not `main` or other branch. - Reuse images and have no duplication of any images, with close _enough_ ones considered to replace where possible. **_Relative_** paths are supported: `../..//img/` diff --git a/content/cryptography/_materials/subkey-demo.md b/content/cryptography/_materials/subkey-demo.md index d2269a8..f8c0213 100644 --- a/content/cryptography/_materials/subkey-demo.md +++ b/content/cryptography/_materials/subkey-demo.md @@ -1,7 +1,7 @@ # Subkey Signature and HDKD (Hierarchical Deterministic Key Derivation) Demo Here are subkey examples for reference on use. -Compliments the formal documentation [found here](https://github.com/paritytech-stg/polkadot-sdk/tree/master/substrate/bin/utils/subkey#subkey). +Compliments the formal documentation [found here](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/bin/utils/subkey#subkey). ## Key Generation diff --git a/content/frame/extensions/slides.md b/content/frame/extensions/slides.md index de48098..c4962dc 100644 --- a/content/frame/extensions/slides.md +++ b/content/frame/extensions/slides.md @@ -231,7 +231,7 @@ fn pre_dispatch() -> Result; ## Post Dispatch - The dispatch result, plus generic type (`type Pre`) returned from `pre_dispatch` is passed to `post_dispatch`. -- See [`impl Applyable for CheckedExtrinsic`](https://github.com/paritytech-stg/polkadot-sdk/blob/bc53b9a/substrate/primitives/runtime/src/generic/checked_extrinsic.rs#L69) for more info. +- See [`impl Applyable for CheckedExtrinsic`](https://github.com/paritytech/polkadot-sdk/blob/bc53b9a/substrate/primitives/runtime/src/generic/checked_extrinsic.rs#L69) for more info. --- diff --git a/content/frame/migrations/slides.md b/content/frame/migrations/slides.md index 02875b5..d4d4268 100644 --- a/content/frame/migrations/slides.md +++ b/content/frame/migrations/slides.md @@ -359,7 +359,7 @@ impl Hooks> for Pallet { } ``` -Stores the version as u16 in [`twox(pallet_name) ++ twox(:__STORAGE_VERSION__:)`](https://github.com/paritytech-stg/polkadot-sdk/blob/c7c5fc7/substrate/frame/support/src/traits/metadata.rs#L163). +Stores the version as u16 in [`twox(pallet_name) ++ twox(:__STORAGE_VERSION__:)`](https://github.com/paritytech/polkadot-sdk/blob/c7c5fc7/substrate/frame/support/src/traits/metadata.rs#L163). --- diff --git a/content/polkadot/build-a-parachain/slides.md b/content/polkadot/build-a-parachain/slides.md index 8dc91c9..08e7b56 100644 --- a/content/polkadot/build-a-parachain/slides.md +++ b/content/polkadot/build-a-parachain/slides.md @@ -8,7 +8,7 @@ duration: 1.5 hours > _NOTE_ this is using the archived repo of the Polkadot v1.0.0 release. - + --- diff --git a/content/polkadot/cumulus/slides.md b/content/polkadot/cumulus/slides.md index f3d8812..bdf0bd7 100644 --- a/content/polkadot/cumulus/slides.md +++ b/content/polkadot/cumulus/slides.md @@ -682,7 +682,7 @@ The relay chain needs a fairly hard guarantee that PVFs can be compiled within a Notes: - + --- @@ -710,7 +710,7 @@ Reference: ## References 1. 🦸 [Gabriele Miotti](https://github.com/gabriele-0201), who was a huge help putting together these slides -1. +1. --- diff --git a/content/substrate/intro/slides.md b/content/substrate/intro/slides.md index 7e27513..14d64de 100644 --- a/content/substrate/intro/slides.md +++ b/content/substrate/intro/slides.md @@ -12,7 +12,7 @@ duration: 60 minutes While I speak, please clone `polkadot-sdk`, and run `cargo build && cargo build --release`. -> +> --- diff --git a/content/xcm/beyond/slides.md b/content/xcm/beyond/slides.md index 6e3eb8c..66f2a91 100644 --- a/content/xcm/beyond/slides.md +++ b/content/xcm/beyond/slides.md @@ -514,7 +514,7 @@ During this presentation we went through a couple real world XCM use cases and s ## References -- [XCM source code](https://github.com/paritytech-stg/polkadot-sdk/tree/master/polkadot/xcm) - The source code for the main XCM implementation in the paritytech/polkadot repository. +- [XCM source code](https://github.com/paritytech/polkadot-sdk/tree/master/polkadot/xcm) - The source code for the main XCM implementation in the paritytech/polkadot repository. diff --git a/content/xcm/config/slides.md b/content/xcm/config/slides.md index 24bb44e..208949b 100644 --- a/content/xcm/config/slides.md +++ b/content/xcm/config/slides.md @@ -183,7 +183,7 @@ pub trait DescribeLocation { Notes: -[Impl for Tuple](https://github.com/paritytech-stg/polkadot-sdk/blob/342d720/polkadot/xcm/xcm-builder/src/location_conversion.rs#L34) +[Impl for Tuple](https://github.com/paritytech/polkadot-sdk/blob/342d720/polkadot/xcm/xcm-builder/src/location_conversion.rs#L34) ---v diff --git a/content/xcm/intro/slides.md b/content/xcm/intro/slides.md index c99a06a..17c385f 100644 --- a/content/xcm/intro/slides.md +++ b/content/xcm/intro/slides.md @@ -50,7 +50,7 @@ We are expecting them to say transfers, but there are so many other things you c - Cross-consensus asset transfers - Execute platform-specific actions such as governance voting - Enables single use-case chains - - [Collectives](https://github.com/paritytech-stg/polkadot-sdk/tree/f8115b9/cumulus/parachains/runtimes/collectives) + - [Collectives](https://github.com/paritytech/polkadot-sdk/tree/f8115b9/cumulus/parachains/runtimes/collectives) - Identity chains Notes: diff --git a/content/xcm/pallet/slides.md b/content/xcm/pallet/slides.md index 651434d..a57e637 100644 --- a/content/xcm/pallet/slides.md +++ b/content/xcm/pallet/slides.md @@ -471,7 +471,7 @@ Notes: Let's jump into the code and have a look at `limited_teleport_assets` extrinsic. -[source 🔍](https://github.com/paritytech-stg/polkadot-sdk/blob/342d720/polkadot/xcm/pallet-xcm/src/lib.rs#L1099) +[source 🔍](https://github.com/paritytech/polkadot-sdk/blob/342d720/polkadot/xcm/pallet-xcm/src/lib.rs#L1099) --- diff --git a/content/xcm/polkadot/slides.md b/content/xcm/polkadot/slides.md index 50f7d65..fead191 100644 --- a/content/xcm/polkadot/slides.md +++ b/content/xcm/polkadot/slides.md @@ -263,7 +263,7 @@ Notes: ### 🏋️ `Weigher` in Rococo - Uses `WeightInfoBounds` with benchmarked values with `pallet-xcm-benchmarks` -- Full list of weights can be seen [here](https://github.com/paritytech-stg/polkadot-sdk/tree/cc9f812/polkadot/runtime/rococo/src/weights/xcm) +- Full list of weights can be seen [here](https://github.com/paritytech/polkadot-sdk/tree/cc9f812/polkadot/runtime/rococo/src/weights/xcm) ```rust impl xcm_executor::Config for XcmConfig { From 3e9465ada2e9fa0ef998fc18583bf07f35c19a4a Mon Sep 17 00:00:00 2001 From: Nuke Date: Mon, 23 Oct 2023 11:49:12 -0600 Subject: [PATCH 4/6] fix links --- content/xcm/intro/slides.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/xcm/intro/slides.md b/content/xcm/intro/slides.md index 17c385f..d29ec44 100644 --- a/content/xcm/intro/slides.md +++ b/content/xcm/intro/slides.md @@ -50,7 +50,7 @@ We are expecting them to say transfers, but there are so many other things you c - Cross-consensus asset transfers - Execute platform-specific actions such as governance voting - Enables single use-case chains - - [Collectives](https://github.com/paritytech/polkadot-sdk/tree/f8115b9/cumulus/parachains/runtimes/collectives) + - [Collectives](https://github.com/paritytech/polkadot-sdk/tree/72c4535/cumulus/parachains/runtimes/collectives) - Identity chains Notes: From bbfffc216e1f600440231ad9a5698b6af63818b2 Mon Sep 17 00:00:00 2001 From: Nuke Date: Mon, 23 Oct 2023 11:55:11 -0600 Subject: [PATCH 5/6] fix links --- Makefile.toml | 8 ++++++-- content/security/infrastucutre/slides.md | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index 801c5d6..7402d52 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -185,9 +185,13 @@ script = "./tools/scripts/orphan-image-scan.sh content/" [tasks.l] category = "Checks" -alias = "all-links" +alias = "links" -[tasks.all-links] +[tasks.lf] +category = "Checks" +alias = "links-for" + +[tasks.links] category = "Checks" description = "Check included links for all markup (.md|.html) files." # FIXME .mlc.toml config not working... https://github.com/becheran/mlc/issues/78 diff --git a/content/security/infrastucutre/slides.md b/content/security/infrastucutre/slides.md index 0b8194c..25f9d4d 100644 --- a/content/security/infrastucutre/slides.md +++ b/content/security/infrastucutre/slides.md @@ -161,12 +161,12 @@ Joke: how does a provider see your node: -[Web Source: some hosting provider](https://www.datacenter-insider.de/wohlfuehlklima-fuer-rechenzentren-a-352014/) - Notes: It is a joke of course, but how the provider engineer can see your web3 server. +[Web Source: some hosting provider](https://www.datacenter-insider.de/wohlfuehlklima-fuer-rechenzentren-a-352014/) + --- ### How do ISPs detect blockchain? From 7ca3e9e67e8ca48a98097d35a5f8e3024c017ccc Mon Sep 17 00:00:00 2001 From: Nuke Date: Mon, 23 Oct 2023 12:01:53 -0600 Subject: [PATCH 6/6] rm link with issues --- content/security/infrastucutre/slides.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/security/infrastucutre/slides.md b/content/security/infrastucutre/slides.md index 25f9d4d..fd0b76f 100644 --- a/content/security/infrastucutre/slides.md +++ b/content/security/infrastucutre/slides.md @@ -165,8 +165,6 @@ Notes: It is a joke of course, but how the provider engineer can see your web3 server. -[Web Source: some hosting provider](https://www.datacenter-insider.de/wohlfuehlklima-fuer-rechenzentren-a-352014/) - --- ### How do ISPs detect blockchain?