Skip to content

papermoonio/polkadot-mkdocs

Repository files navigation

Mkdocs Framework and Material Theme for the Polkadot Developer Documentation Site

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.

Get Started

Clone the Repository

So first, lets clone this repository:

git clone https://github.com/papermoonio/polkadot-mkdocs
cd polkadot-mkdocs

Install Dependencies

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

Set Up Repository Structure

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

Run the Docs

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published