Skip to content

Mkdocs framework and material theme for the DataHaven documentation site.

Notifications You must be signed in to change notification settings

papermoonio/datahaven-mkdocs

Repository files navigation

DataHaven Documentation Site (MkDocs Framework and Material Theme)

https://docs.datahaven.xyz

About

This repository contains the mkdocs configuration files, theme overrides, and CSS changes.

The actual content is stored in the docs repo and is pulled in during the build process.

Prerequisites

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

Getting started

With the dependencies installed, let's proceed to clone the necessary repos. For everything to work correctly, the file structure needs to be the following:

datahaven-mkdocs
|--- /material-overrides/ (folder)
|--- /datahaven-docs/ (repository)
|--- mkdocs.yml

To preview changes, build the site by running:

mkdocs serve

After a successful build, the site should be available at http://127.0.0.1:8000

Editing Theme Files

If you're editing any of the files in the material-overrides directory, you can run the following command to watch for these changes and render them automatically:

mkdocs serve --watch-theme

Otherwise, you'll need to stop the server (control + C) and restart it (mkdocs serve) to see the changes.

Ignoring Excluded Docs Output

Running mkdocs serve displays the excluded documents in your terminal. To prevent this effect, you can run:

mkdocs serve --clean

Disable the Git Dates Plugin

The git-revision-date-localized plugin pulls the date of the last git modification of a page. When developing locally, this can slow down your development process, as the plugin checks for the latest dates on every page each time a change is made. To avoid this, you can change your start-up command to turn off the plugin by running:

export ENABLED_GIT_REVISION_DATE=false
mkdocs serve

About

Mkdocs framework and material theme for the DataHaven documentation site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7