Updated shortcodes hook

This commit is contained in:
squidfunk 2023-09-19 18:47:39 +02:00
parent 54a3e89d5f
commit 438fa201cd
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF

View File

@ -210,7 +210,7 @@ def _badge_for_example_view(text: str, page: Page, files: Files):
# Create badge for example download
def _badge_for_example_download(text: str, page: Page, files: Files):
icon = "material-folder-download"
href = f"https://mkdocs-material.github.io/examples/download/{text}.zip"
href = f"https://mkdocs-material.github.io/examples/{text}.zip"
return _badge(
icon = f"[:{icon}:]({href} 'Download example')",
text = f"[`.zip`]({href})",