Admonitions
Every admonition variant Docusaurus supports, plus GitHub-style admonitions (handled by a remark plugin), embedded code, embedded tables, embedded buttons, and nesting.
Docusaurus admonition variants
A note. Used for incidental context the reader can skim.
A tip. Used for non-essential helpful suggestions.
An info. Used for important context the reader should not miss.
A warning. Used for things that could cause minor issues.
A caution. Synonym/alias for warning in some Docusaurus versions.
A danger. Used for destructive or irreversible operations.
An important. Available in some Docusaurus versions as an alias.
Admonitions with custom titles
A tip with a custom title in the header strip.
A danger with a custom title.
Admonitions with code
Some setup is required before running the command below:
export ZITI_HOME=$HOME/.ziti
mkdir -p $ZITI_HOME
After running, verify $ZITI_HOME is set.
site:
name: MySite
theme: dark
plugins:
- search
- analytics
Admonition with a table
Default ports the controller uses:
| Service | Port |
|---|---|
| API | 1280 |
| Router | 3022 |
Make sure none of these are in use before continuing.
Admonition with a button (raw HTML)
rm -rf /
Admonition with the partial that ships everything
Here is a line of regular text with inline code blocks here to see.
this is the first line
security_opt:
- seccomp:unconfined
this is bash
while true; do echo "stuff"; echo "more stuff"; done
This is a summary with inline code in it
This is some text inside with an inline code block.
here is more text code
and more code
this is bash
while true; do echo "stuff"; echo "more stuff"; done
Here is a line of regular text with inline code blocks here to see.
this is the first line
security_opt:
- seccomp:unconfined
this is bash
while true; do echo "stuff"; echo "more stuff"; done
This is a summary with inline code in it
This is some text inside with an inline code block.
here is more text code
and more code
this is bash
while true; do echo "stuff"; echo "more stuff"; done
Here is a line of regular text with inline code blocks here to see.
this is the first line
security_opt:
- seccomp:unconfined
this is bash
while true; do echo "stuff"; echo "more stuff"; done
This is a summary with inline code in it
This is some text inside with an inline code block.
here is more text code
and more code
this is bash
while true; do echo "stuff"; echo "more stuff"; done
Here is a line of regular text with inline code blocks here to see.
this is the first line
security_opt:
- seccomp:unconfined
this is bash
while true; do echo "stuff"; echo "more stuff"; done
This is a summary with inline code in it
This is some text inside with an inline code block.
here is more text code
and more code
this is bash
while true; do echo "stuff"; echo "more stuff"; done
Here is a line of regular text with inline code blocks here to see.
this is the first line
security_opt:
- seccomp:unconfined
this is bash
while true; do echo "stuff"; echo "more stuff"; done
This is a summary with inline code in it
This is some text inside with an inline code block.
here is more text code
and more code
this is bash
while true; do echo "stuff"; echo "more stuff"; done
GitHub-style admonitions
A remark plugin translates GitHub-flavored admonitions into Docusaurus ones, so
you can import a README that uses > [!NOTE] syntax and it renders correctly.
[!NOTE] A GitHub-style note.
[!TIP] A GitHub-style tip.
[!IMPORTANT] A GitHub-style important.
[!WARNING] A GitHub-style warning.
[!CAUTION] A GitHub-style caution.
Admonition inside a list
-
First step.
-
Second step.
warningThis admonition is indented as a list-item child.
-
Third step.
Nested admonitions
Outer danger admonition.
Inner tip nested inside. Nesting depth is limited; Docusaurus parses the
innermost ::: pair as the closer, so deeply nested cases can break.
Still inside the outer admonition. :::