This repo contains the Mkdocs config files, theme overrides, and CSS changes.
The actual content is stored in the polkadot-docs
repo and pulled in during build.
So first, lets clone this repository:
git clone https://github.com/papermoonio/polkadot-mkdocs
cd polkadot-mkdocs
To get started you need to have Mkdocs installed. All dependencies can be installed with a single command, you can run:
pip install -r requirements.txt
In order for everything to work correctly, the structure needs to be as follows:
polkadot-mkdocs
|--- /material-overrides/ (folder)
|--- /polkadot-docs/ (repository)
|--- mkdocs.yml
Inside the polkadot-mkdocs
directory just created, clone the polkadot-docs
repository:
git clone https://github.com/polkadot-developers/polkadot-docs.git
Now in the polkadot-mkdocs
folder, you can build the site by running:
mkdocs serve
After a successful build, the site should be available locally at http://127.0.0.1:8000
.