Buttons
Buttons are perfect for “Call to Action” links, such as downloads, sign-ups, or navigating to key sections.
Self-Closing
The button container is self-closing. Do not add a closing ::: tag, or it may accidentally close parent containers (like Cards).
Syntax
::: button "Label Text" Link [Options]
Examples
Internal Links
Use relative paths to link to other pages in your documentation.
::: button "Get Started" /getting-started/installation
Get StartedExternal Links
Prepend external: to the URL to force it to open in a new tab with target="_blank".
::: button "View Source" external:https://github.com/docmd-io/docmd
View SourceCustom Colors
You can customize the button color using a hex code or CSS color name.
::: button "Critical Action" /delete-account color:#ef4444
::: button "Success" /confirm color:green
Critical ActionSuccess