docs: fix unclosed admonition code block (#8363)

This commit is contained in:
Alex 2022-11-24 01:21:04 +08:00 committed by GitHub
parent 4b11c57f7e
commit 412d2db011
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,7 +263,7 @@ By default, the theme doesn't know what do to with custom admonition keywords su
If you registered a new admonition type `my-custom-admonition` via the following config:
````js title="docusaurus.config.js"
```js title="docusaurus.config.js"
module.exports = {
// ...
presets: [
@ -282,6 +282,7 @@ module.exports = {
],
],
};
```
You can provide the corresponding React component for `:::my-custom-admonition` by creating the following file (unfortunately, since it's not a React component file, it's not swizzlable):