-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,34 +9,46 @@ This plugin uses the "Material for MkDocs" theme and just adds some visual touch | |
- [MkDocs](https://www.mkdocs.org/getting-started/) | ||
- [Material for MkDocs theme](https://squidfunk.github.io/mkdocs-material/getting-started/) | ||
|
||
## Demo | ||
|
||
<https://tombreit.github.io/mkdocs-mpgtheme-plugin/> | ||
|
||
## Usage | ||
|
||
- Setup MkDocs and Material for MkDocs theme | ||
|
||
- Install this plugin: | ||
|
||
```bash | ||
pip install mkdocs-mpgtheme-plugin | ||
``` | ||
|
||
- Activate this plugin in your MkDocs project: | ||
- Activate and configure this plugin in your MkDocs project: | ||
|
||
```yml | ||
# file: mkdocs.yml | ||
|
||
plugins: | ||
- mpgtheme | ||
- search | ||
- mpgtheme | ||
theme: | ||
name: material | ||
logo: _assets/header-logo.svg | ||
footer_logo: _assets/footer-logo.svg | ||
name: material | ||
logo: _assets/header-logo.svg | ||
footer_logo: _assets/footer-logo.svg | ||
extra: | ||
# all `extra`s are optional | ||
support_email: [email protected] | ||
support_phone: +49 123 456 789 | ||
privacy_policy_url: https://example.org/privacy-policy/ | ||
imprint_url: https://example.org/imprint/ | ||
copyright_string: ACME Inc. | ||
# all extras are optional | ||
support_email: [email protected] | ||
support_phone: +49 123 456 789 | ||
privacy_policy_url: https://example.org/privacy | ||
imprint_url: https://example.org/imprint | ||
copyright_string: ACME Inc. | ||
``` | ||
- Save and reference your header and footer logo files.<br><small> | ||
Due to licensing and copyright issues, the logo files are not part of this project, but we ship placeholder files for `header-logo.svg` and `footer-logo.svg`. Just set your logos (format: SVG) via `logo` and `footer_logo` in the `theme`config (see above).</small> | ||
- Save and reference your header and footer logo files. | ||
- That's it. | ||
## Notes | ||
- Done | ||
- Installing this plugin will install `mkdocs` and `mkdocs-material` as dependencies. | ||
- For a more complete configuration, see our demo [`mkdocs.yml`](./mkdocs.yml). | ||
- Due to licensing and copyright issues, the MPG logo files are not part of this project, but we ship placeholder files for `header-logo.svg` and `footer-logo.svg`. Just set your logos (format: SVG) via `logo` and `footer_logo` in the `theme` config (see above). |