mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-01-18 17:04:09 +01:00
Updated shortcodes hook
This commit is contained in:
parent
47e94e2117
commit
54a3e89d5f
@ -210,7 +210,7 @@ def _badge_for_example_view(text: str, page: Page, files: Files):
|
|||||||
# Create badge for example download
|
# Create badge for example download
|
||||||
def _badge_for_example_download(text: str, page: Page, files: Files):
|
def _badge_for_example_download(text: str, page: Page, files: Files):
|
||||||
icon = "material-folder-download"
|
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(
|
return _badge(
|
||||||
icon = f"[:{icon}:]({href} 'Download example')",
|
icon = f"[:{icon}:]({href} 'Download example')",
|
||||||
text = f"[`.zip`]({href})",
|
text = f"[`.zip`]({href})",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user