From 33546df56805e2cd324a7dcb16348ae44b918fd8 Mon Sep 17 00:00:00 2001 From: Eddy Luten Date: Sun, 21 Apr 2024 22:39:25 -0500 Subject: [PATCH] Fix the CI caused by the upgrade of MkDocs to 1.6.0 --- alias/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alias/plugin.py b/alias/plugin.py index 2e384ba..f82c947 100644 --- a/alias/plugin.py +++ b/alias/plugin.py @@ -158,7 +158,7 @@ def on_post_build(self, **_): self.log.info("Defined %s alias(es).", len(self.aliases)) self.aliases.clear() - def on_page_markdown(self, markdown: str, *, page: Page, **_): + def on_page_markdown(self, markdown: str, /, *, page: Page, **_): """Replaces any alias tags on the page with markdown links.""" self.current_page = page return re.sub( @@ -173,7 +173,7 @@ def on_page_markdown(self, markdown: str, *, page: Page, **_): markdown ) - def on_files(self, files: Files, **_): + def on_files(self, files: Files, /, **_): """When MkDocs loads its files, extract aliases from any Markdown files that were found. """