Skip to main content

IGWN extensions to Material for MkDocs

Project description

IGWN Mkdocs Material theme

This repo defines a theme for mkdocs-material.

How to use the theme

Add this repository as a git submodule in your mkdocs repo:

git submodule add https://git.ligo.org/computing/igwn-mkdocs-material-theme.git theme

Then configure the theme section of your mkdocs.yml configuration:

theme:
  name: material
  custom_dir: theme

That is the minimal working configuration, to make full use of the theme extensions, define the theme block as follows:

theme:
  name: material
  custom_dir: theme
  favicon: 'assets/images/favicon.ico'
  language: en
  logo: 'assets/images/logo.png'
  features:
    - navigation.sections
  palette:
    - media: "(prefers-color-scheme: light)"
      scheme: igwn
      toggle:
        icon: material/eye-outline
        name: Switch to dark mode
    - media: "(prefers-color-scheme: dark)"
      scheme: slate
      primary: orange
      accent: orange
      toggle:
        icon: material/eye
        name: Switch to light mode

Theme requirements

The them repository includes a requirements.txt file that pins the version of the parent mkdocs-material theme to maximise style compatibility. To pin to that in your own requirements, you can use a recurse requirement statement like this:

# our requirements
mkdocs >=X.Y

# igwn-mkdocs-material-theme requirements
-r theme/requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-material-igwn-0.1.0.tar.gz (3.3 MB view hashes)

Uploaded Source

Built Distribution

mkdocs_material_igwn-0.1.0-py3-none-any.whl (3.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page