diff --git a/www/docs/customization/git.md b/www/docs/customization/git.md index 58d1fc85e..fc7fbf47d 100644 --- a/www/docs/customization/git.md +++ b/www/docs/customization/git.md @@ -35,6 +35,8 @@ git: ## Semver sorting + + This allows you to sort tags by semver: ```yaml @@ -48,5 +50,3 @@ to oldest, so the latest tag is returned. This has the effect of sorting non-pre-release tags before pre-release ones, which is different from what other git sorting options might give you. - - diff --git a/www/docs/overrides/hooks/shortcodes.py b/www/docs/overrides/hooks/shortcodes.py index 107d3eb27..cc1bfdf4e 100644 --- a/www/docs/overrides/hooks/shortcodes.py +++ b/www/docs/overrides/hooks/shortcodes.py @@ -17,6 +17,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files: args = args.strip() if type == "version": return _version_block(args) elif type == "pro": return _pro_ad(page, files) + elif type == "featpro": return _pro_feat_ad(page, files) elif type == "templates": return _templates_ad() # Otherwise, raise an error @@ -28,11 +29,19 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files: replace, markdown, flags = re.I | re.M ) +def _pro_feat_ad(page: Page, files: Files): + return "".join([ + f"
GoReleaser Pro
", + f"This feature is exclusively available with GoReleaser Pro.
", + f"GoReleaser Pro
", - f"One or more features are available only with GoReleaser Pro.
", + f"One or more features are exclusively available with GoReleaser Pro.
", f"Tip
", - f"Learn more about the name template engine.
", + f"Discover more about the name template engine.
", f"