0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-12 22:29:06 +00:00
renovatebot_renovate/tools/mkdocs/mkdocs-hooks/custom-edit-url.py
Michael Kriese d90de484b1
docs: validate with mkdocs (#30735)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-08-14 10:42:23 +00:00

6 lines
237 B
Python

# Reads the edit_url from the YAML page header and replaces the default one with it.
def on_page_context(context, page, config, **kwargs):
if 'edit_url' in page.meta:
page.edit_url = page.meta['edit_url']
return context