-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Polkadot-Sdk developer_hub
#2102
Merged
Merged
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
a451f7e
add developer-hub and all things related
kianenigma 68a053b
fix some things
kianenigma f7460d8
small fixes
kianenigma b785e5c
Create docs.yml
kianenigma 00a0fec
Update docs.yml
kianenigma 50c78b4
fix some warnings
kianenigma 89e00e9
Merge branch 'kiz-developer-hub' of github.com:kianenigma/polkadot-sd…
kianenigma c91250b
fix some warnings
kianenigma 6d57d2e
fix warns
kianenigma 76f2277
update
kianenigma 08802f8
fix
kianenigma 2ec4541
publish note
kianenigma a826834
fix
kianenigma 8e2f6b8
Master.into()
kianenigma df2d645
Merge branch 'master' of github.com:paritytech/polkadot-sdk into kiz-…
liamaharon 58d60cb
fix build
liamaharon c8f7f1e
default page developer hub
liamaharon 198a3e6
Master.into()
kianenigma bcdc9d5
add lot of ref docs
kianenigma 4664874
Merge branch 'kiz-developer-hub' of github.com:paritytech/polkadot-sd…
kianenigma d542ff1
Update substrate/frame/support/procedural/src/pallet/parse/call.rs
kianenigma 2f76ba1
Update developer-hub/src/lib.rs
kianenigma 00ec677
Update developer-hub/src/lib.rs
kianenigma 9b1db8c
Update docs/mermaid/polkadot_sdk.mmd
kianenigma 7dba4f8
Update developer-hub/src/polkadot_sdk/mod.rs
kianenigma 3519a03
Update developer-hub/src/reference_docs/wasm_meta_protocol.rs
kianenigma 0d72dd7
Apply suggestions from code review
kianenigma 9942120
Apply suggestions from code review
kianenigma 60a37a1
Upstream.into()
kianenigma 1896ac7
reword templates page.
kianenigma 30d6ac2
repot homepage
kianenigma a56d3b1
rework substrate dev section
kianenigma 641ff3a
fix cumulus links
kianenigma 3baa30c
Apply extrinsic-encoding ref doc suggestions
jsdw 9c2b3ea
Apply singed-extensions ref doc suggestion
jsdw 62b69fc
add about build
kianenigma 4c8939b
most of the stuff done in polkadot_sdk mod
kianenigma 7b225e1
Apply suggestions from code review
kianenigma 0f55b9a
Update developer-hub/src/polkadot_sdk/cumulus.rs
kianenigma d08ab24
Update developer-hub/src/polkadot_sdk/cumulus.rs
kianenigma b9ee9c1
ready to merge
kianenigma a873808
merge about half a million comments and conflicts
kianenigma 2d5814b
Master.into()
kianenigma 94eeed6
deprecate tutorial
kianenigma 745c7fd
refactor tutorial to guides
juangirini d305146
fix fmt
juangirini 1d1e4a0
Merge branch 'master' into kiz-developer-hub
juangirini 74eb750
resolve import conflict
juangirini 36baa71
fix ci
juangirini 8defde9
fix ui tests
juangirini 7c839fe
fix ui test
juangirini 196d1d7
remove unused imports
juangirini f3b1b5b
Merge branch 'master' into kiz-developer-hub
juangirini 832c8e0
fix experimental aura
juangirini 679d60b
remove experimental from zepter
juangirini 8788c27
Merge branch 'master' into kiz-developer-hub
juangirini 2231d51
fix docify dependency
juangirini 8ce5fcc
wip
juangirini bb14a83
fix experimental aura
juangirini 188e308
fix experimental globally
juangirini 0738681
fix experimental aura again
juangirini d622d84
fix aura cargo file
juangirini 85d4e63
fix clippy
juangirini d13a924
make all tests compile
juangirini b19ffc4
fix experimental aura in cargo
juangirini a14ac7c
fix ci
juangirini 7db6f4d
undo tmp change
juangirini d09bfd4
Merge branch 'master' into kiz-developer-hub
juangirini cd4cddd
undo deposit_event_indexed change
juangirini cff2de6
fix tests with block numbers
juangirini 4d7020c
fix typos
juangirini 1955b38
fix test skipping genesis
juangirini 44ebcf2
add some review suggestions
juangirini d5bcd10
remove docs workflow
juangirini 6a8aea3
Merge branch 'master' into kiz-developer-hub
juangirini 0a8ce8d
remove substrate from workspace
juangirini cefc9d4
apply review suggestions
juangirini f65ece4
some minor improvements
juangirini 1166806
Merge branch 'master' into kiz-developer-hub
juangirini 9e08068
Merge branch 'master' into kiz-developer-hub
juangirini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,66 @@ | ||||||
[package] | ||||||
name = "developer-hub" | ||||||
description = "The one stop shop for developers of the polakdot-sdk" | ||||||
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" | ||||||
homepage = "paritytech.github.io" | ||||||
repository.workspace = true | ||||||
authors.workspace = true | ||||||
edition.workspace = true | ||||||
# This crate is not publish-able to crates.io for now because of docify. | ||||||
publish = false | ||||||
version = "0.0.1" | ||||||
|
||||||
[dependencies] | ||||||
# Needed for all FRAME-based code | ||||||
parity-scale-codec = { version = "3.0.0", default-features = false } | ||||||
scale-info = { version = "2.6.0", default-features = false } | ||||||
frame = { path = "../substrate/frame", features = ["runtime", "experimental"] } | ||||||
pallet-examples = { path = "../substrate/frame/examples" } | ||||||
pallet-default-config-example = { path = "../substrate/frame/examples/default-config" } | ||||||
|
||||||
# How we build docs in rust-docs | ||||||
simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", branch = "main" } | ||||||
docify = "0.2.6" | ||||||
|
||||||
# Polkadot SDK deps, typically all should only be scope such that we can link to their doc item. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
node-cli = { package = "staging-node-cli", path = "../substrate/bin/node/cli" } | ||||||
kitchensink-runtime = { path = "../substrate/bin/node/runtime" } | ||||||
chain-spec-builder = { package = "staging-chain-spec-builder", path = "../substrate/bin/utils/chain-spec-builder" } | ||||||
subkey = { path = "../substrate/bin/utils/subkey" } | ||||||
|
||||||
# Substrate | ||||||
sc-network = { path = "../substrate/client/network" } | ||||||
sc-rpc-api = { path = "../substrate/client/rpc-api" } | ||||||
sc-rpc = { path = "../substrate/client/rpc" } | ||||||
sc-client-db = { path = "../substrate/client/db" } | ||||||
sc-cli = { path = "../substrate/client/cli" } | ||||||
sc-consensus-aura = { path = "../substrate/client/consensus/aura" } | ||||||
sc-consensus-babe = { path = "../substrate/client/consensus/babe" } | ||||||
sc-consensus-grandpa = { path = "../substrate/client/consensus/grandpa" } | ||||||
sc-consensus-beefy = { path = "../substrate/client/consensus/beefy" } | ||||||
sc-consensus-manual-seal = { path = "../substrate/client/consensus/manual-seal" } | ||||||
sc-consensus-pow = { path = "../substrate/client/consensus/pow" } | ||||||
substrate-wasm-builder = { path = "../substrate/utils/wasm-builder" } | ||||||
|
||||||
# Cumulus | ||||||
cumulus-pallet-aura-ext = { path = "../cumulus/pallets/aura-ext" } | ||||||
cumulus-pallet-parachain-system = { path = "../cumulus/pallets/parachain-system", features = [ | ||||||
"parameterized-consensus-hook", | ||||||
] } | ||||||
parachain-info = { package = "staging-parachain-info", path = "../cumulus/parachains/pallets/parachain-info" } | ||||||
pallet-aura = { path = "../substrate/frame/aura", default-features = false } | ||||||
pallet-timestamp = { path = "../substrate/frame/timestamp" } | ||||||
|
||||||
# Primitives | ||||||
sp-io = { path = "../substrate/primitives/io" } | ||||||
sp-api = { path = "../substrate/primitives/api" } | ||||||
sp-core = { path = "../substrate/primitives/core" } | ||||||
sp-keyring = { path = "../substrate/primitives/keyring" } | ||||||
sp-runtime = { path = "../substrate/primitives/runtime" } | ||||||
|
||||||
[dev-dependencies] | ||||||
parity-scale-codec = "3.6.5" | ||||||
scale-info = "2.9.0" | ||||||
|
||||||
[features] | ||||||
experimental = [ "pallet-aura/experimental" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<script> | ||
window.addEventListener("DOMContentLoaded", (event) => { | ||
// if the crate is one that starts with `developer_hub` | ||
let crate_name = document.querySelector("#main-content > div > h1 > a:nth-child(1)"); | ||
if (!crate_name.textContent.startsWith("developer_hub")) { | ||
console.log("skipping -- not `developer_hub`"); | ||
return; | ||
} | ||
|
||
let sidebar = document.querySelector(".sidebar"); | ||
let headers = document.querySelectorAll("#main-content h2, #main-content h3, #main-content h4"); | ||
console.log(`detected developer_hub: headers: ${headers.length}`); | ||
ggwpez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
let toc = document.createElement("div"); | ||
toc.classList.add("table-of-contents"); | ||
toc.appendChild(document.createElement("h2").appendChild(document.createTextNode("Table of Contents")).parentNode); | ||
|
||
// the first two headers are always junk | ||
headers.forEach(header => { | ||
let link = document.createElement("a"); | ||
link.href = "#" + header.id; | ||
link.textContent = header.textContent; | ||
link.className = header.tagName.toLowerCase(); | ||
toc.appendChild(link); | ||
}); | ||
|
||
sidebar.insertBefore(toc, sidebar.firstChild); | ||
console.log("injecting ToC"); | ||
}); | ||
</script> | ||
<style> | ||
.table-of-contents { | ||
margin-bottom: 1em; | ||
padding: 0.5em; | ||
} | ||
|
||
.table-of-contents a { | ||
display: block; | ||
margin: 0.2em 0; | ||
} | ||
|
||
.table-of-contents .h2 { | ||
font-weight: bold; | ||
margin-left: 0; | ||
} | ||
|
||
.table-of-contents .h3 { | ||
margin-left: 1em; | ||
} | ||
|
||
.table-of-contents .h4 { | ||
margin-left: 2em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//! # Changing Consensus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//! # Cumulus Enabled Parachain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,25 @@ | ||||||
//! # Polkadot Developer Hub Guides | ||||||
//! | ||||||
//! This crate contains a collection of guides that are foundational to the developers of | ||||||
//! Polkadot SDK. They common user-journeys that are traversed in the Polkadot ecosystem. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
? |
||||||
|
||||||
/// Write your first simple pallet, learning the most most basic features of FRAME along the way. | ||||||
pub mod your_first_pallet; | ||||||
|
||||||
/// Writing your first real [runtime](`crate::reference_docs::wasm_meta_protocol`), and successfully | ||||||
/// compiling it to [WASM](crate::polkadot_sdk::substrate#wasm-build). | ||||||
pub mod your_first_runtime; | ||||||
|
||||||
/// Running the given runtime with a node. No specific consensus mechanism is used at this stage. | ||||||
pub mod your_first_node; | ||||||
|
||||||
/// How to change the consensus engine of both the node and the runtime. | ||||||
pub mod changing_consensus; | ||||||
|
||||||
/// How to enhance a given runtime and node to be cumulus-enabled, run it as a parachain and connect | ||||||
/// it to a relay-chain. | ||||||
pub mod cumulus_enabled_parachain; | ||||||
|
||||||
/// How to make a given runtime XCM-enabled, capable of sending messages (`Transact`) between itself | ||||||
/// and the relay chain to which it is connected. | ||||||
pub mod xcm_enabled_parachain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//! # XCM Enabled Parachain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//! # Your first Node |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename this? see https://matrix.to/#/!NJCwpmtUcsFECocpeO:parity.io/$C_hRnT0EiHmoTQfpkkgD745oLUmlojq_lKAkjss0xhY?via=parity.io&via=web3.foundation&via=matrix.org
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no consensus yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liamaharon I've created a separate PR to address that so we don't add more noise to this one
#2565