docs: add documentation on all shortcodes (#753)

This commit is contained in:
Ludovic Fernandez
2025-08-15 03:09:58 +02:00
committed by GitHub
parent 80ada64da0
commit 2033d50005
22 changed files with 222 additions and 6 deletions

View File

@@ -1,3 +1,14 @@
{{- /*
A shortcode to create a callout.
@param {string} type The type of the callout (default, info, warning, error).
@param {string} content The content of the callout.
@param {string} emoji The emoji of the callout (related to type or can be a custom emoji).
@param {string} icon The icon of the callout.
@example {{< callout type="info" >}}Content{{< /callout >}}
*/ -}}
{{- $calloutEmojiDict := dict "info" "" "warning" "⚠️" "error" "🚫" -}}
{{- $type := .Get "type" | default "default" -}}
{{/* If emoji is not set, use the emoji from dict */}}