Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit 6cd5d1a

Browse files
committed
Merge branch 'master' into joshy-runtime-upgrade
2 parents a9ff82c + 0b123cf commit 6cd5d1a

File tree

43 files changed

+1306
-1050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1306
-1050
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
name: Build App
22

3-
on:
3+
on:
44
push:
5-
branches:
5+
branches:
66
- master
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
1211

1312
steps:
14-
- name: Run a one-line script
15-
uses: peter-evans/repository-dispatch@v1
16-
with:
17-
token: ${{ secrets.ACCESS_TOKEN }}
18-
repository: paritytech/substrate.io
19-
event-type: content-update
20-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
13+
- name: Run a one-line script
14+
uses: peter-evans/repository-dispatch@v1
15+
with:
16+
token: ${{ secrets.ACCESS_TOKEN }}
17+
repository: paritytech/substrate.io
18+
event-type: content-update
19+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 100,
3+
"proseWrap": "always"
4+
}

README.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
11
# Substrate Tutorials
22

3-
This repository holds documentation that goes in the Substrate Knowledge Base. The main website is hosted in [substrate-cms](https://github.com/substrate-developer-hub/substrate-cms).
3+
This repository holds documentation for Substrate tutorials. The main website is hosted in
4+
[substrate-cms](https://github.com/substrate-developer-hub/substrate-cms).
45

56
## Structure
67

7-
All docs are written in markdown format. The most up-to-date docs are in the `current` folder, while supporting figures and images go in the `assets` folder.
8+
All docs are written in markdown format. Each tutorial is in its own folder and has subfolders for
9+
each of its versions; supporting figures and images for all versions of all tutorials go in the
10+
`assets` folder.
811

912
## Contributing
1013

11-
Feel free to add an issue if there is documentation that you'd like to see. See the [contributing guide](https://github.com/substrate-developer-hub/knowledge-base/blob/master/CONTRIBUTING.md) for guidance on making PRs.
14+
Feel free to add an issue if there is documentation that you'd like to see. See the
15+
[contributing guide](https://github.com/substrate-developer-hub/knowledge-base/blob/master/CONTRIBUTING.md)
16+
for guidance on making PRs.
1217

13-
## Directory Structure
18+
### Prettier
1419

15-
The knowledge base has six main categories. These are not meant to be a table of contents or
16-
imposed order in which to read documentation, but rather groups of articles within the same context
17-
and for similar audiences.
18-
19-
1. **Getting Started:** Entry-level documentation. For example dependencies, installation, key
20-
terms.
21-
1. **Learn Substrate:** Conceptual documentation. Articles about assumptions, key concepts, and
22-
design decisions in Substrate that will help you make educated decisions about developing your
23-
chain.
24-
1. **Runtime:** Documentation that goes more in-depth and covers topics specific to runtime
25-
development like macros, storage, fees, and pallet architecture.
26-
1. **Smart Contracts:** A section dedicated to smart contracts on Substrate.
27-
1. **Integrate:** Documentation about integrating and interacting with your chain for node
28-
operation, key management, and front-end development.
29-
1. **Advanced:** Sometimes you need more details than just the abstraction. The Advanced section
30-
contains information about encoding/decoding, consensus, cryptography, etc.
20+
This repository uses [Prettier](https://prettier.io/) to ensure consistent formatting. Please run
21+
Prettier before submitting any changes to the files in this repository. Prettier ships as an
22+
[NPM](https://www.npmjs.com/) package, so NPM must installed to use it. Prettier can be installed
23+
globally with `npm i -g prettier` in which case you can run `prettier --write .` in the project
24+
root. If you prefer not to install Prettier you can run it on-the-fly with `npx prettier --write .`.
25+
In either case, the `.prettierrc.json` file that ships with repository will be used to ensure
26+
consistent formatting.
3127

3228
## License
3329

34-
All documentation is under the [Apache 2 License](https://github.com/substrate-developer-hub/knowledge-base/blob/master/LICENSE).
30+
All documentation is under the
31+
[Apache 2 License](https://github.com/substrate-developer-hub/knowledge-base/blob/master/LICENSE).

config.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"current_version": "v2.0.0-alpha.6",
3-
"display_order": [
4-
"create-your-first-substrate-chain",
5-
"build-a-dapp",
6-
"start-a-private-network",
7-
"perform-a-runtime-upgrade",
8-
"add-a-pallet",
9-
"pallet-in-own-crate"
10-
]
2+
"current_version": "v2.0.0-alpha.6",
3+
"display_order": [
4+
"create-your-first-substrate-chain",
5+
"build-a-dapp",
6+
"start-a-private-network",
7+
"add-a-pallet",
8+
"pallet-in-own-crate"
9+
]
1110
}

tuts/add-a-pallet/config.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
2-
"slug": "config",
3-
"lang": "en",
4-
"title": "Add a Pallet to your Runtime",
5-
"excerpt": "Add the contracts pallet to your Substrate node template",
6-
"tags": [ "Medium", "2 Hours", "No Prerequisites" ],
7-
"versions": [ "v2.0.0-alpha.6", "v2.0.0-alpha.5" ],
8-
"menu": [
9-
{ "title": "Add a Pallet", "slug": "index" }
10-
]
2+
"slug": "config",
3+
"lang": "en",
4+
"title": "Add a Pallet to your Runtime",
5+
"excerpt": "Add the contracts pallet to your Substrate node template",
6+
"tags": ["Medium", "2 Hours", "No Prerequisites"],
7+
"versions": ["v2.0.0-alpha.6", "v2.0.0-alpha.5"],
8+
"menu": [{ "title": "Add a Pallet", "slug": "index" }]
119
}

0 commit comments

Comments
 (0)