mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-23 11:49:19 +01:00
Remove dependence on mkdocs-simple-hooks
Since mkdocs v1.4, the hooks are a native feature
This commit is contained in:
parent
1d2b759dc0
commit
99a0c72d49
3 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
def copy_fonts(config, **kwargs):
|
|
||||||
site_dir = config['site_dir']
|
def on_post_build(config, **kwargs):
|
||||||
shutil.copytree('docs/static/fonts', os.path.join(site_dir, 'get'))
|
site_dir = config["site_dir"]
|
||||||
|
shutil.copytree("docs/static/fonts", os.path.join(site_dir, "get"))
|
||||||
|
|
|
@ -67,13 +67,13 @@ markdown_extensions:
|
||||||
emoji_index: !!python/name:material.extensions.emoji.twemoji
|
emoji_index: !!python/name:material.extensions.emoji.twemoji
|
||||||
emoji_generator: !!python/name:materialx.emoji.to_svg
|
emoji_generator: !!python/name:materialx.emoji.to_svg
|
||||||
|
|
||||||
|
hooks:
|
||||||
|
- docs/hooks.py
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
- minify:
|
- minify:
|
||||||
minify_html: true
|
minify_html: true
|
||||||
- mkdocs-simple-hooks:
|
|
||||||
hooks:
|
|
||||||
on_post_build: "docs.hooks:copy_fonts"
|
|
||||||
|
|
||||||
nav:
|
nav:
|
||||||
- "Getting started": index.md
|
- "Getting started": index.md
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# The documentation uses 'mkdocs', which is written in Python
|
# The documentation uses 'mkdocs', which is written in Python
|
||||||
mkdocs-material
|
mkdocs-material
|
||||||
mkdocs-minify-plugin
|
mkdocs-minify-plugin
|
||||||
mkdocs-simple-hooks
|
|
||||||
|
|
Loading…
Reference in a new issue