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
NOTE: To improve build times, you can disable the git revision plugin by running the following command before you serve the docs:
export ENABLED_GIT_REVISION_DATE=false
.
After a successful build, the site should be available locally at http://127.0.0.1:8000
.