The source of truth for Polkadot.
The Polkadot Wiki is the central source of truth for Polkadot. It is a community-focused initiative led by
Web3 Foundation to keep an up-to-date resource on the best information for learning, building, or maintaining
on Polkadot.
The Technical Education team at Web3 Foundation
are the primary maintainers of the Wiki and will review all issues and pull requests created on this
repository. If you notice typos or grammatical errors, please feel free to create pull requests with
these corrections directly. Larger contributions may start as issues to test the waters on the
subject with the maintainers. It is generally preferable to create a pull request over an issue to
propose a change to the Wiki content.
python
(Python 3.12+), pip
and mkdocs
are installed and configured in your pathpolkadot-wiki
directoryInstall dependencies
pip install -r requirements.txt
Once installed, run the serve command:
# Set ENABLE_RPC to true if you plan to work with RPC macros
ENABLE_RPC=false mkdocs serve
🟣 Building the Polkadot Wiki:
# Set ENABLE_RPC to true if you plan to work with RPC macros
ENABLE_RPC=false mkdocs build
See the Conditional Rendering and
Mkdocs Macros sections for additional details regarding how to
properly format syntax for elements outside of the standard markdown library.
The Polkadot Wiki is built in a CI job, where it is then deployed on Netlify. Each commit to master triggers a new build and production deployment.
Pull request previews are enabled, meaning a temporary deployment via Netlify is generated for each PR.
After these jobs are successfully completed, the CICD production workflow will automatically deployprod
to the public site when the PR is merged to master: Polkadot Wiki.
Job | Description | Frequency |
---|---|---|
Audit Links | Test all links in the docs for broken references and opens a new issue displaying results if any are found. | Monthly or Workflow Dispatch |
Code QL Analysis | Tests for vulnerabilities across the codebase | Weekly, Push to master or Pull Request to master |
Dependabot | Helps keep packages up-to-date with latest release. | Daily |
Build and Deploy to Netlify | Builds and deploys the site to Netlify. If it is a PR, it generates a preview. If it is a push to master, it will deploy on the production URL. | |
Status Badges | Update the commit history of various open source projects in the ecosystem. | Weekly or Workflow Dispatch |
The Polkadot Wiki does not support conditional rendering. If needed, represent multiple chains (i.e, Polkadot and Kusama) using the tab layout specified here on the Mkdocs Material documentation.
Mkdocs macros allow the use of Jinja2 templates and custom Python functions to allow for custom data fetching and rendering within Mkdocs. All current macros can be found in: macros/
.
For example, the rpc
macro can be used in the following manner, with each field representing the input for the function signature respectively.
rpc
macro function signature:
def rpc(network, module, call, default_value, is_constant=False, readable="")
## Number of Nominators
{{ rpc("polkadot", "Staking", "CounterForNominators", 36793, is_constant=false) }}
❗ The Wiki is currently being reorganized and updated. Work will resume on translations after the Wiki revamp is completed. |
---|
The Polkadot Wiki is licensed under the GPL-3.0 free software license.