-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for
lambdalisue/rs-mdbook-alerts
(#135)
Co-authored-by: sgoudham <sgoudham@gmail.com>
- Loading branch information
Showing
9 changed files
with
100 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
|
||
- [Landing](./landing.md) | ||
- [Admonishments](./admonish.md) | ||
- [Alerts](./alerts.md) | ||
- [Super Secret](./secret.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Reference | ||
|
||
The following alerts are implemented by the | ||
[mdbook-alerts](https://github.com/lambdalisue/rs-mdbook-alerts) plugin and are | ||
automatically themed to match Catppuccin. | ||
|
||
## Alerts | ||
|
||
All supported alerts are listed below. | ||
|
||
> [!NOTE] | ||
> Highlights information that users should take into account, even when skimming. | ||
> [!TIP] | ||
> Optional information to help a user be more successful. | ||
> [!IMPORTANT] | ||
> Crucial information necessary for users to succeed. | ||
> [!WARNING] | ||
> Critical content demanding immediate user attention due to potential risks. | ||
> [!CAUTION] | ||
> Negative potential consequences of an action. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../dist/catppuccin-alerts.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@use "@catppuccin/palette/scss/catppuccin" as catppuccin; | ||
|
||
@each $flavour, $color in catppuccin.$palette { | ||
.#{$flavour} { | ||
.mdbook-alerts-note { | ||
--mdbook-alerts-color: #{map-get($color, "blue")}; | ||
} | ||
.mdbook-alerts-tip { | ||
--mdbook-alerts-color: #{map-get($color, "green")}; | ||
} | ||
.mdbook-alerts-important { | ||
--mdbook-alerts-color: #{map-get($color, "mauve")}; | ||
} | ||
.mdbook-alerts-warning { | ||
--mdbook-alerts-color: #{map-get($color, "yellow")}; | ||
} | ||
.mdbook-alerts-caution { | ||
--mdbook-alerts-color: #{map-get($color, "red")}; | ||
} | ||
} | ||
} |