Skip to content

Commit

Permalink
Fix the CI caused by the upgrade of MkDocs to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyLuten committed Apr 22, 2024
1 parent 16b4f63 commit 33546df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alias/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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.
"""
Expand Down

0 comments on commit 33546df

Please sign in to comment.