diff --git a/docs/README.md b/docs/README.md index 17e0f0d..e90ce1a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1 +1,4 @@ +--- +template: home.html +--- # Notes diff --git a/hooks/notes.py b/hooks/notes.py new file mode 100644 index 0000000..b31d251 --- /dev/null +++ b/hooks/notes.py @@ -0,0 +1,2 @@ +def on_env(env, config, files): + env.tests["startswith"] = str.startswith diff --git a/mkdocs.yml b/mkdocs.yml index 15aa607..1b48ff5 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -16,6 +16,7 @@ theme: icon: logo: fontawesome/regular/note-sticky favicon: https://theorangeone.net/favicon.ico + custom_dir: theme/ palette: # Palette toggle for light mode - scheme: default @@ -33,6 +34,8 @@ theme: icon: material/brightness-4 name: Switch to light mode +hooks: + - hooks/notes.py # Extensions markdown_extensions: diff --git a/theme/home.html b/theme/home.html new file mode 100644 index 0000000..208639d --- /dev/null +++ b/theme/home.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block content %} + {{ super() }} + +