This repository contains documentation for Polkadot, a decentralized protocol that enables interoperability, scalability, and shared security across multiple blockchains. It provides a comprehensive range of resources and technical information to support developers in building and deploying the Polkadot ecosystem.
The documentation source files are written in Markdown and generally follow the PaperMoon style guide.
Follow these steps to run the documentation site locally and preview your changes.
Building and serving the site requires cloning two repositories:
-
Polkadot MkDocs: Contains the "engine" (MkDocs configuration, theme overrides, and custom CSS) for the Polkadot documentation site.
-
Polkadot Docs: Contains the "content" (documentation pages, tutorials, and images) that gets built into the site.
For everything to work correctly, the file structure needs to be as follows:
polkadot-mkdocs
|--- /material-overrides/ (folder)
|--- /polkadot-docs/ (repository)
|--- mkdocs.yml
To set up the structure, follow these steps:
-
Clone this repository:
git clone https://github.com/papermoonio/polkadot-mkdocs.git
-
Inside the folder just created, clone the
polkadot-docs
repository:cd polkadot-mkdocs git clone https://github.com/polkadot-developers/polkadot-docs.git
📋 Contributing? If you plan to contribute to the documentation, fork the
polkadot-docs
repository first and clone your fork instead:git clone https://github.com/YOUR_USERNAME/polkadot-docs.git
Navigate to the polkadot-mkdocs
directory and create a Python virtual environment:
cd polkadot-mkdocs
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
-
Install Node.js dependencies:
cd polkadot-docs && npm install && cd ..
-
Serve the site:
mkdocs serve
After a successful build, the site should be available at http://127.0.0.1:8000.
When you're done working, run deactivate
to exit the virtual environment.
To work on the docs again:
- Navigate to
polkadot-mkdocs
. - Activate the environment:
source venv/bin/activate
(Windows:venv\Scripts\activate
). - Run
mkdocs serve
.
See .CONTRIBUTING.md for how to contribute to this repository.
We're excited to have you contribute to the Polkadot docs and help improve our ecosystem! 🚀 Every contribution, whether it's fixing a typo, improving documentation, or adding new content, helps make Polkadot more accessible to developers worldwide. Thank you for being part of our community! 🙏✨
The developer documentation provided herein has been collaboratively created and curated by Web 3.0 Technologies Foundation, Parity Technologies Ltd., and PaperMoon Dev SL (hereinafter referred to as the "Organizations") as a joint effort to support the Polkadot ecosystem.
The content of these documents is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). You are free to share, copy, redistribute, and adapt the material for any purpose, even commercially, provided that appropriate credit is given to the Organizations, a link to the license is provided, and any changes made are indicated.
Any code examples or related software provided in these documents are available under the MIT License. This permits anyone to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the code, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the code.
This developer documentation has been created to support and promote the Polkadot ecosystem. The information presented herein is made available solely for general information purposes. The Organizations do not warrant the accuracy, completeness, or usefulness of this information. Any reliance you place on such information is strictly at your own risk. The Organizations disclaim all liability and responsibility arising from any reliance placed on this information by you or by anyone who may be informed of any of its contents. All statements and/or opinions expressed in these materials are solely the responsibility of the person or entity providing those materials and do not necessarily represent the opinion of the Organizations. The information should not be construed as professional or financial advice of any kind. Advice from a suitably qualified professional should always be sought in relation to any particular matter or circumstance. The information herein may link to or integrate with other websites operated or content provided by third parties, and such other websites may link to this website. The Organizations have no control over any such other websites or their content and will have no liability arising out of or related to such websites or their content. The existence of any such link does not constitute an endorsement of such websites, the content of the websites, or the operators of the websites. These links are being provided to you only as a convenience, and you release and hold the Organizations harmless from any and all liability arising from your use of this information or the information provided by any third-party website or service.