Skip to content
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

Move developer-hub to sdk-docs #2565

Closed
wants to merge 84 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
a451f7e
add developer-hub and all things related
kianenigma Oct 31, 2023
68a053b
fix some things
kianenigma Oct 31, 2023
f7460d8
small fixes
kianenigma Oct 31, 2023
b785e5c
Create docs.yml
kianenigma Oct 31, 2023
00a0fec
Update docs.yml
kianenigma Oct 31, 2023
50c78b4
fix some warnings
kianenigma Oct 31, 2023
89e00e9
Merge branch 'kiz-developer-hub' of github.com:kianenigma/polkadot-sd…
kianenigma Oct 31, 2023
c91250b
fix some warnings
kianenigma Oct 31, 2023
6d57d2e
fix warns
kianenigma Oct 31, 2023
76f2277
update
kianenigma Nov 1, 2023
08802f8
fix
kianenigma Nov 2, 2023
2ec4541
publish note
kianenigma Nov 2, 2023
a826834
fix
kianenigma Nov 2, 2023
8e2f6b8
Master.into()
kianenigma Nov 2, 2023
df2d645
Merge branch 'master' of github.com:paritytech/polkadot-sdk into kiz-…
liamaharon Nov 3, 2023
58d60cb
fix build
liamaharon Nov 3, 2023
c8f7f1e
default page developer hub
liamaharon Nov 3, 2023
198a3e6
Master.into()
kianenigma Nov 4, 2023
bcdc9d5
add lot of ref docs
kianenigma Nov 4, 2023
4664874
Merge branch 'kiz-developer-hub' of github.com:paritytech/polkadot-sd…
kianenigma Nov 4, 2023
d542ff1
Update substrate/frame/support/procedural/src/pallet/parse/call.rs
kianenigma Nov 4, 2023
2f76ba1
Update developer-hub/src/lib.rs
kianenigma Nov 4, 2023
00ec677
Update developer-hub/src/lib.rs
kianenigma Nov 4, 2023
9b1db8c
Update docs/mermaid/polkadot_sdk.mmd
kianenigma Nov 4, 2023
7dba4f8
Update developer-hub/src/polkadot_sdk/mod.rs
kianenigma Nov 4, 2023
3519a03
Update developer-hub/src/reference_docs/wasm_meta_protocol.rs
kianenigma Nov 4, 2023
0d72dd7
Apply suggestions from code review
kianenigma Nov 4, 2023
9942120
Apply suggestions from code review
kianenigma Nov 4, 2023
60a37a1
Upstream.into()
kianenigma Nov 4, 2023
1896ac7
reword templates page.
kianenigma Nov 4, 2023
30d6ac2
repot homepage
kianenigma Nov 4, 2023
a56d3b1
rework substrate dev section
kianenigma Nov 4, 2023
641ff3a
fix cumulus links
kianenigma Nov 4, 2023
3baa30c
Apply extrinsic-encoding ref doc suggestions
jsdw Nov 7, 2023
9c2b3ea
Apply singed-extensions ref doc suggestion
jsdw Nov 7, 2023
62b69fc
add about build
kianenigma Nov 9, 2023
4c8939b
most of the stuff done in polkadot_sdk mod
kianenigma Nov 9, 2023
7b225e1
Apply suggestions from code review
kianenigma Nov 9, 2023
0f55b9a
Update developer-hub/src/polkadot_sdk/cumulus.rs
kianenigma Nov 9, 2023
d08ab24
Update developer-hub/src/polkadot_sdk/cumulus.rs
kianenigma Nov 9, 2023
b9ee9c1
ready to merge
kianenigma Nov 9, 2023
a873808
merge about half a million comments and conflicts
kianenigma Nov 9, 2023
2d5814b
Master.into()
kianenigma Nov 9, 2023
94eeed6
deprecate tutorial
kianenigma Nov 9, 2023
745c7fd
refactor tutorial to guides
juangirini Nov 14, 2023
d305146
fix fmt
juangirini Nov 14, 2023
1d1e4a0
Merge branch 'master' into kiz-developer-hub
juangirini Nov 14, 2023
74eb750
resolve import conflict
juangirini Nov 14, 2023
36baa71
fix ci
juangirini Nov 14, 2023
8defde9
fix ui tests
juangirini Nov 14, 2023
7c839fe
fix ui test
juangirini Nov 14, 2023
196d1d7
remove unused imports
juangirini Nov 15, 2023
f3b1b5b
Merge branch 'master' into kiz-developer-hub
juangirini Nov 15, 2023
832c8e0
fix experimental aura
juangirini Nov 16, 2023
679d60b
remove experimental from zepter
juangirini Nov 16, 2023
8788c27
Merge branch 'master' into kiz-developer-hub
juangirini Nov 16, 2023
2231d51
fix docify dependency
juangirini Nov 16, 2023
8ce5fcc
wip
juangirini Nov 17, 2023
bb14a83
fix experimental aura
juangirini Nov 17, 2023
188e308
fix experimental globally
juangirini Nov 17, 2023
0738681
fix experimental aura again
juangirini Nov 17, 2023
d622d84
fix aura cargo file
juangirini Nov 17, 2023
85d4e63
fix clippy
juangirini Nov 20, 2023
d13a924
make all tests compile
juangirini Nov 21, 2023
b19ffc4
fix experimental aura in cargo
juangirini Nov 21, 2023
a14ac7c
fix ci
juangirini Nov 22, 2023
7db6f4d
undo tmp change
juangirini Nov 22, 2023
d09bfd4
Merge branch 'master' into kiz-developer-hub
juangirini Nov 22, 2023
cd4cddd
undo deposit_event_indexed change
juangirini Nov 23, 2023
cff2de6
fix tests with block numbers
juangirini Nov 23, 2023
4d7020c
fix typos
juangirini Nov 23, 2023
1955b38
fix test skipping genesis
juangirini Nov 24, 2023
44ebcf2
add some review suggestions
juangirini Nov 24, 2023
d5bcd10
remove docs workflow
juangirini Nov 27, 2023
6a8aea3
Merge branch 'master' into kiz-developer-hub
juangirini Nov 28, 2023
0a8ce8d
remove substrate from workspace
juangirini Nov 28, 2023
cefc9d4
apply review suggestions
juangirini Nov 28, 2023
f65ece4
some minor improvements
juangirini Nov 29, 2023
1166806
Merge branch 'master' into kiz-developer-hub
juangirini Nov 29, 2023
9e08068
Merge branch 'master' into kiz-developer-hub
juangirini Nov 30, 2023
83b27ff
move `developer-hub` to `sdk-docs`
juangirini Nov 30, 2023
88ba11c
fix contributing link
juangirini Nov 30, 2023
628ec5e
add ignored file
juangirini Nov 30, 2023
d06870d
fix markdownlint
juangirini Nov 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ bin/node-template/Cargo.lock
nohup.out
polkadot_argument_parsing
polkadot.*
!docs/sdk/src/polkadot_sdk/polkadot.rs
pwasm-alloc/Cargo.lock
pwasm-libc/Cargo.lock
release-artifacts
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ build-rustdoc:
find "$path" -name '*.html' | xargs -I {} -P "$(nproc)" bash -c 'process_file "$@"' _ {}
}
inject_simple_analytics "./crate-docs"
- echo "<meta http-equiv=refresh content=0;url=polkadot_service/index.html>" > ./crate-docs/index.html
- echo "<meta http-equiv=refresh content=0;url=developer_hub/index.html>" > ./crate-docs/index.html
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pipeline references "developer_hub"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that def needs to be updated, @juangirini worth doing a global search / grep of the workspace for developer_hub before merging this if you haven't already

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry guys, there's been some rebase conflicts that broke the PR after changing its base to master, I'll try to fix this PR, otherwise I'll close it and open a new one


build-implementers-guide:
stage: build
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ node-bench-regression-guard:
after_script: [""]

# if this fails run `bot update-ui` in the Pull Request or "./scripts/update-ui-tests.sh" locally
# see ./docs/CONTRIBUTING.md#ui-tests
# see ./docs/contributor/CONTRIBUTING.md#ui-tests
test-frame-ui:
stage: test
extends:
Expand Down
76 changes: 51 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ license = "GPL-3.0-only"
resolver = "2"

members = [
"docs/sdk",
"bridges/bin/runtime-common",
"bridges/modules/grandpa",
"bridges/modules/messages",
Expand Down Expand Up @@ -186,7 +187,6 @@ members = [
"polkadot/xcm/xcm-simulator",
"polkadot/xcm/xcm-simulator/example",
"polkadot/xcm/xcm-simulator/fuzzer",
"substrate",
"substrate/bin/minimal/node",
"substrate/bin/minimal/runtime",
"substrate/bin/node-template/node",
Expand Down Expand Up @@ -476,8 +476,7 @@ default-members = [ "polkadot", "substrate/bin/node/cli" ]
panic = "unwind"
opt-level = 3

# make sure dev builds with backtrace do
# not slow us down
# make sure dev builds with backtrace do not slow us down
[profile.dev.package.backtrace]
inherits = "release"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ Below are the primary upstream dependencies utilized in this project:

## Security

The security policy and procedures can be found in [docs/SECURITY.md](./docs/SECURITY.md).
The security policy and procedures can be found in [docs/contributor/SECURITY.md](./docs/contributor/SECURITY.md).

## Contributing & Code of Conduct

Ensure you follow our [contribution guidelines](./docs/CONTRIBUTING.md). In every interaction and contribution, this
project adheres to the [Contributor Covenant Code of Conduct](./docs/CODE_OF_CONDUCT.md).
Ensure you follow our [contribution guidelines](./docs/contributor/CONTRIBUTING.md). In every interaction and
contribution, this project adheres to the [Contributor Covenant Code of Conduct](./docs/contributor/CODE_OF_CONDUCT.md).

## Additional Resources

Expand Down
6 changes: 3 additions & 3 deletions cumulus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This repository contains both the Cumulus SDK and also specific chains implemented on top of this SDK.

If you only want to run a **Polkadot Parachain Node**, check out our [container section](./docs/container.md).
If you only want to run a **Polkadot Parachain Node**, check out our [container section](./docs/contributor/container.md).

## Cumulus SDK

Expand Down Expand Up @@ -34,7 +34,7 @@ A Polkadot [collator](https://wiki.polkadot.network/docs/en/learn-collator) for
`polkadot-parachain` binary (previously called `polkadot-collator`).

You may run `polkadot-parachain` locally after building it or using one of the container option described
[here](./docs/container.md).
[here](./docs/contributor/container.md).

### Relay Chain Interaction
To operate a parachain node, a connection to the corresponding relay chain is necessary. This can be achieved in one of
Expand Down Expand Up @@ -242,7 +242,7 @@ Once the executable is built, launch collators for each parachain (repeat once e
./target/release/polkadot-parachain --chain $CHAIN --validator
```

You can also build [using a container](./docs/container.md).
You can also build [using a container](./docs/contributor/container.md).

### Parachains

Expand Down
3 changes: 1 addition & 2 deletions cumulus/parachain-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,7 @@ impl pallet_parachain_template::Config for Runtime {

// Create the runtime by composing the FRAME pallets that were previously configured.
construct_runtime!(
pub enum Runtime
{
pub struct Runtime {
// System support stuff.
System: frame_system = 0,
ParachainSystem: cumulus_pallet_parachain_system = 1,
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ We also need [https://docs.substrate.io/](https://docs.substrate.io/) to be upda

## Announce the deprecation and removal

**At minimum they should be noted in the release log.** Please see how to document a PR [here](https://github.com/paritytech/polkadot-sdk/blob/master/docs/CONTRIBUTING.md#documentation).
**At minimum they should be noted in the release log.** Please see how to document a PR [here](https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#documentation).
There you can give instructions based on the audience and tell them what they need to do to upgrade the code.

Some breaking changes have a bigger impact than others. When the impact is big the release note is not enough, though
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
✄ -----------------------------------------------------------------------------

Thank you for your Pull Request! 🙏 Please make sure it follows the contribution guidelines outlined in
[this document](https://github.com/paritytech/polkadot-sdk/blob/master/docs/CONTRIBUTING.md) and fill
[this document](https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md) and fill
out the sections below. Once you're ready to submit your PR for review, please
delete this section and leave only the text under the "Description" heading.

Expand All @@ -27,8 +27,8 @@ Closes # (issue number, *if applicable*)
# Checklist

- [ ] My PR includes a detailed description as outlined in the "Description" section above
- [ ] My PR follows the [labeling requirements](CONTRIBUTING.md#Process) of this project (at minimum one label for `T`
required)
- [ ] My PR follows the [labeling requirements](docs/contributor/CONTRIBUTING.md#Process) of this project (at minimum
one label for `T` required)
- [ ] I have made corresponding changes to the documentation (if applicable)
- [ ] I have added tests that prove my fix is effective or that my feature works (if applicable)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions docs/mermaid/IA.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
flowchart
parity[paritytech.github.io] --> devhub[developer_hub]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should reference the folder or the crate:

  • "docs/sdk"
  • "sdk-docs"


devhub --> polkadot_sdk
devhub --> reference_docs
devhub --> tutorial

polkadot_sdk --> substrate
polkadot_sdk --> frame
polkadot_sdk --> cumulus
polkadot_sdk --> polkadot
polkadot_sdk --> xcm


5 changes: 5 additions & 0 deletions docs/mermaid/extrinsics.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
flowchart TD
E(Extrinsic) ---> I(Inherent);
E --> T(Transaction)
T --> ST("Signed (aka. Transaction)")
T --> UT(Unsigned)
11 changes: 11 additions & 0 deletions docs/mermaid/polkadot_sdk_parachain.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
flowchart LR
subgraph Parachain[A Polkadot Parachain]
ParachainNode[Parachain Node]
ParachainRuntime[Parachain Runtime]
end

FRAME -.-> ParachainRuntime
Substrate[Substrate Node Libraries] -.-> ParachainNoe

CumulusC[Cumulus Node Libraries] -.-> ParachainNode
CumulusR[Cumulus Runtime Libraries] -.-> ParachainRuntime
10 changes: 10 additions & 0 deletions docs/mermaid/polkadot_sdk_polkadot.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
flowchart LR

subgraph Polkadot[The Polkadot Relay Chain]
PolkadotNode[Polkadot Node]
PolkadotRuntime[Polkadot Runtime]
end

FRAME -.-> PolkadotRuntime
Substrate[Substrate Node Libraries] -.-> PolkadotNode

8 changes: 8 additions & 0 deletions docs/mermaid/polkadot_sdk_substrate.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
flowchart LR
subgraph SubstrateChain[A Substrate-based blockchain]
Node
Runtime
end

FRAME -.-> Runtime
Substrate[Substrate Node Libraries] -.-> Node
16 changes: 16 additions & 0 deletions docs/mermaid/state.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
flowchart TB
subgraph Node[Node's View Of The State 🙈]
direction LR
0x1234 --> 0x2345
0x3456 --> 0x4567
0x5678 --> 0x6789
:code --> code[wasm code]
end

subgraph Runtime[Runtime's View Of The State 🙉]
direction LR
ab[alice's balance] --> abv[known value]
bb[bob's balance] --> bbv[known value]
cb[charlie's balance] --> cbv[known value]
c2[:code] --> c22[wasm code]
end
21 changes: 21 additions & 0 deletions docs/mermaid/stf.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
flowchart LR
%%{init: {'flowchart' : {'curve' : 'linear'}}}%%
subgraph BData[Blockchain Database]
direction LR
BN[Block N] -.-> BN1[Block N+1]
end

subgraph SData[State Database]
direction LR
SN[State N] -.-> SN1[State N+1] -.-> SN2[State N+2]
end

BN --> STFN[STF]
SN --> STFN[STF]
STFN[STF] --> SN1

BN1 --> STFN1[STF]
SN1 --> STFN1[STF]
STFN1[STF] --> SN2


4 changes: 4 additions & 0 deletions docs/mermaid/stf_simple.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
flowchart LR
B[Block] --> STF
S[State] --> STF
STF --> NS[New State]
8 changes: 5 additions & 3 deletions docs/mermaid/substrate_client_runtime.mmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
graph TB
subgraph Substrate
direction LR
subgraph Client
subgraph Node
end

subgraph Runtime
end
Client --runtime-api--> Runtime
Runtime --host-functions--> Client

Node --runtime-api--> Runtime
Runtime --host-functions--> Node
end
2 changes: 2 additions & 0 deletions docs/mermaid/substrate_dev.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flowchart LR
T[Using a Template] --> P[Writing Your Own FRAME-Based Pallet] --> C[Custom Node]
2 changes: 1 addition & 1 deletion docs/mermaid/substrate_simple.mmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
graph TB
subgraph Substrate
direction LR
subgraph Client
subgraph Node
end
subgraph Runtime
end
Expand Down
Loading