From 9dfe8353cbc1a13ffac28a9674c7922ee56248bc Mon Sep 17 00:00:00 2001
From: Pierre Augier <pierre.augier@ens-lyon.org>
Date: Tue, 15 Nov 2022 10:36:57 +0100
Subject: [PATCH] DOCS: Add an example of admonition with warning style (#1834)

I didn't find this useful tip (change the class of an admonition) in the documentation. See https://jupyterbook.org/en/stable/interactive/hiding.html?highlight=admonition#toggle-admonition-content-with-dropdowns and https://jupyterbook.org/en/stable/advanced/html.html?highlight=admonition#an-example-custom-admonitions for related but different things.
---
 docs/reference/cheatsheet.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/docs/reference/cheatsheet.md b/docs/reference/cheatsheet.md
index 72d8df10..a9cafbe5 100644
--- a/docs/reference/cheatsheet.md
+++ b/docs/reference/cheatsheet.md
@@ -560,6 +560,22 @@ must also include a table title. See example above.
   - ```{important} This is an example
     of an important directive.
     ```
+* - ````md
+    ```{admonition} Title
+    :class: warning
+    text
+    ```
+    ````
+  - ````md
+    ```{admonition} This is a title
+    :class: warning
+    An example of an admonition with a title and a warning style.
+    ```
+    ````
+  - ```{admonition} This is a title
+    :class: warning
+    An example of an admonition with a title and a warning style.
+    ```
 ``````
 
 ## Figures and images
-- 
GitLab