Callouts
Draw attention to important information with colored callout boxes.
Types
Use notes for additional context or background information.
Use tips for helpful suggestions and best practices.
Use important for key information that shouldn’t be missed.
Use warnings for potential issues or things to watch out for.
Use danger for critical information that could cause serious problems.
Custom Titles
Override the default title by adding text after the type:
This feature requires Ruby 3.2 or higher.
Make sure you have completed the quickstart guide first.
Rich Content
Callouts support full Markdown including code blocks, lists, and links:
You can install Docyard globally or per-project:
# Global installation
gem install docyard
# Per-project with Bundler
bundle add docyard
See the quickstart guide for more details.
The config.yml file has been renamed to docyard.yml in v2.0.
Migration steps:
- Rename your config file
- Update any CI/CD scripts
- Run
docyard buildto verify
GitHub Alerts
Docyard also supports GitHub-style blockquote alerts:
This uses GitHub alert syntax.
Helpful advice for the reader.
Key information users need to know.
Something to be careful about.
Critical warning about potential issues.
Syntax
:::type [optional title]
Your content here. Supports **Markdown**.
:::
GitHub alert syntax:
> [!TYPE]
> Your content here.
Reference
| Type | Default Title | Use Case |
|---|---|---|
note |
Note | General information, context |
tip |
Tip | Helpful suggestions, best practices |
important |
Important | Key information not to miss |
warning |
Warning | Potential issues, cautions |
danger |
Danger | Critical problems, breaking changes |
| GitHub Alert | Maps To |
|---|---|
[!NOTE] |
note |
[!TIP] |
tip |
[!IMPORTANT] |
important |
[!WARNING] |
warning |
[!CAUTION] |
danger |
Was this page helpful?
Thanks for your feedback!