Admonitions

Admonitions are callout blocks for highlighting important content.

Syntax

:::type
Content here
:::

Or with custom title:

:::type Custom Title
Content here
:::

Available Types

Info

:::info
This is an informational note.
:::
Info

This is an informational note.

Warning

:::warning
This requires attention.
:::
Warning

This requires attention.

Danger

:::danger
This action is irreversible.
:::
Danger

This action is irreversible.

Success

:::success
Operation completed successfully.
:::
Success

Operation completed successfully.

Note

:::note
A side note for additional context.
:::
Note

A side note for additional context.

Question

:::question
Frequently asked question format.
:::
Question

Frequently asked question format.

Custom Titles

Override the default title:

:::info Prerequisites
Make sure you have Go 1.24+ installed.
:::
Prerequisites

Make sure you have Go 1.24+ installed.

:::warning Breaking Change
This version changes the API format.
:::
Breaking Change

This version changes the API format.

Markdown Inside

Full Markdown is supported inside admonitions:

:::info
**Bold**, *italic*, and `code` work here.

- List item 1
- List item 2

```bash
echo "Code blocks too"
```
:::
Info

Bold, italic, and code work here.

  • List item 1
  • List item 2

Color Reference

Type Light BG Dark BG Use For
info Blue Dark blue General information
warning Yellow Dark yellow Cautions, deprecations
danger Red Dark red Critical warnings
success Green Dark green Confirmations
note Gray Dark gray Side notes
question Purple Dark purple FAQs

Usage Guidelines

When to Use

Info - Background information, tips, explanations

:::info
MinimalDoc generates static HTML files.
:::

Warning - Potential issues, deprecations, important notices

:::warning
This feature is deprecated in v2.0.
:::

Danger - Breaking changes, data loss, security issues

:::danger
This will delete all your data.
:::

Success - Completed steps, confirmations

:::success
Your site is now deployed.
:::

Note - Tangential information, asides

:::note
This is optional for basic usage.
:::

Question - FAQs, common questions

:::question How do I deploy?
See the [deployment guide](../guides/deployment.md).
:::

Avoid Overuse

Too many admonitions reduce their impact:

<!-- Avoid this -->
:::info
Some info
:::

:::warning
A warning
:::

:::note
A note
:::

Regular paragraph.

:::info
More info
:::

Use sparingly for truly important callouts.

Styling

Admonitions use CSS variables for colors:

.admonition {
  padding: 1rem;
  border-left: 4px solid var(--admonition-border);
  background: var(--admonition-bg);
  border-radius: 4px;
  margin: 1rem 0;
}

.admonition-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

See Theming for customization.