Replace hooks plugin with native MkDocs 1.4.0 `hooks:` config
HonkingGoose opened this issue · 0 comments
HonkingGoose commented
Describe the proposed change(s).
Intro
MkDocs 1.4.0 1 has a new hooks:
2 config option, which can load in Python scripts. This means we may be able to drop a dependency.
Material for MkDocs does not support this new hooks:
config option (yet). I opened an issue to ask for the hooks:
option to be supported, see the todo list below.
Todo:
- Wait for the update for
mkdocs
1.4.0
to land in our repository - Wait until we get a version of Material for MkDocs that supports the
hooks:
feature: - Drop
mkdocs-simple-hooks
dependency from ourPipfile
, drop lockfile - Run
pipenv install
to get a fresh lockfile - Drop the
mkdocs-simple-hooks
lines from themkdocs.yml
file - Update
mkdocs.yml
so it uses the newhooks:
option - Run build, test if things keep working
References
Python script
renovatebot.github.io/mkdocs-hooks/custom-edit-url.py
Lines 1 to 6 in 8b6e6ae
Stuff to drop during refactor
renovatebot.github.io/mkdocs.yml
Lines 158 to 160 in 8b6e6ae
Line 10 in 8b6e6ae