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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mkdocs-material-igwn-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ccaf9d389a9be815880ae56211c1a349e509773ba8b8b74f881600cb612ab48 |
|
MD5 | 5a4317ab8202714a60fbaaab4dfd8e2f |
|
BLAKE2b-256 | f9f9fb468ea3da12216739d9374eccf30e67d5de33c2e36ab7b8303d4a5654d4 |
Close
Hashes for mkdocs_material_igwn-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 233b83b1a1882520f8684d64b3f17c2aff0da4581c7edfac1374f3b08d8c729e |
|
MD5 | 487d23fbb5a2bd006819b2b5d7023e96 |
|
BLAKE2b-256 | 32cbd56dbb1a7ec712b585da64c74672d80567a1999854b466cbc3689425a5c8 |