forked from sighingnow/jekyll-gitbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable support for tips, warnings and dangers blocks.
Resolved sighingnow#36. Signed-off-by: Tao He <sighingnow@gmail.com>
- Loading branch information
1 parent
616ca58
commit 16aeee4
Showing
4 changed files
with
216 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
title: Tips, Warnings, and Dangers | ||
author: Tao He | ||
date: 2022-06-30 | ||
category: Jekyll | ||
layout: post | ||
--- | ||
|
||
The jekyll-theme supports tips, warnings, and dangers blocks and the style is referred | ||
from [the discord.js website][1]. | ||
|
||
You could have the following [markdown attributes (supported by kramdown)][2]: | ||
|
||
### Tips | ||
|
||
Using a `{: .block-tip}` attribute: | ||
|
||
```markdown | ||
> ##### TIP | ||
> | ||
> This guide is last tested with @napi-rs/canvas^0.1.20, so make sure you have | ||
> this or a similar version after installation. | ||
{: .block-tip } | ||
``` | ||
|
||
> ##### TIP | ||
> | ||
> This guide is last tested with @napi-rs/canvas^0.1.20, so make sure you have | ||
> this or a similar version after installation. | ||
{: .block-tip } | ||
|
||
### Warnings | ||
|
||
Using a `{: .block-warning}` attribute: | ||
|
||
```markdown | ||
> ##### WARNING | ||
> | ||
> Be sure that you're familiar with things like async/await and object destructuring | ||
> before continuing, as we'll be making use of features like these. | ||
{: .block-warning } | ||
``` | ||
|
||
> ##### WARNING | ||
> | ||
> Be sure that you're familiar with things like async/await and object destructuring | ||
> before continuing, as we'll be making use of features like these. | ||
{: .block-warning } | ||
|
||
### Dangers | ||
|
||
Using a `{: .block-danger}` attribute: | ||
|
||
```markdown | ||
> ##### DANGER | ||
> | ||
> You cannot delete an ephemeral message. | ||
{: .block-danger } | ||
``` | ||
|
||
> ##### DANGER | ||
> | ||
> You cannot delete an ephemeral message. | ||
{: .block-danger } | ||
|
||
[1]: https://discordjs.guide/popular-topics/canvas.html#setting-up-napi-rs-canvas | ||
[2]: https://kramdown.gettalong.org/quickref.html#block-attributes |
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