From f47958d073af5e07af6a3e3be16a4a0db5cdb78a Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 11 Aug 2023 11:01:14 +0200 Subject: Special box note --- articles/bizarreries-du-langage-c.md | 2 +- articles/c-language-quirks.md | 2 +- src/build/special_box.mjs | 1 + src/css/_style.scss | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/articles/bizarreries-du-langage-c.md b/articles/bizarreries-du-langage-c.md index fecc440..cf2600d 100644 --- a/articles/bizarreries-du-langage-c.md +++ b/articles/bizarreries-du-langage-c.md @@ -22,7 +22,7 @@ Les bizarreries du langage C Le C est un langage à la syntaxe simple. Les seules complexités de ce langage viennent du fait qu'il agit de manière proche de la machine. Pourtant, une partie des syntaxes autorisées par le C n'est pratiquement jamais enseignée. Attaquons-nous à ces cas mystérieux ! 🧞 -:::attention +:::note Pour comprendre ce billet, il est nécessaire d'avoir des bases dans un langage ayant une syntaxe et un fonctionnement proche du C. ::: diff --git a/articles/c-language-quirks.md b/articles/c-language-quirks.md index fd2cfd8..6d84890 100644 --- a/articles/c-language-quirks.md +++ b/articles/c-language-quirks.md @@ -24,7 +24,7 @@ The only complexity of this language come from the fact that it acts in a machin However, a part of the C syntaxe is almost never taught. Let's tackle these mysterious cases! 🧞 -:::attention +:::note To understand this post, it is necessary to have a basic knowledge of a language with a syntax and operation close to C. ::: diff --git a/src/build/special_box.mjs b/src/build/special_box.mjs index 9321e66..1457a98 100644 --- a/src/build/special_box.mjs +++ b/src/build/special_box.mjs @@ -10,6 +10,7 @@ export default function specialBox() { if (node.type === 'containerDirective' && ( node.name === 'attention' || node.name === 'question' + || node.name === 'note' || node.name === 'information')) { const data = node.data || (node.data = {}); diff --git a/src/css/_style.scss b/src/css/_style.scss index 35f0bfd..2630f72 100644 --- a/src/css/_style.scss +++ b/src/css/_style.scss @@ -48,7 +48,7 @@ } @include box('information', #daeaee); -@include box('comment', #eea); +@include box('note', #bed2ff); @include box('attention', #eee7da); @include box('question', #e2daee); @include box('good', #aea); -- cgit v1.2.3