mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
chore: fix site deployment Crowdin issue (#7326)
This commit is contained in:
parent
6fa51890f0
commit
c31d076aed
1 changed files with 8 additions and 3 deletions
|
@ -282,9 +282,10 @@ Below, we will introduce how the magic comment system can be extended to define
|
||||||
|
|
||||||
You can declare custom magic comments through theme config. For example, you can register another magic comment that adds a `code-block-error-line` class name:
|
You can declare custom magic comments through theme config. For example, you can register another magic comment that adds a `code-block-error-line` class name:
|
||||||
|
|
||||||
`````mdx-code-block
|
```mdx-code-block
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabItem value="docusaurus.config.js">
|
<TabItem value="docusaurus.config.js">
|
||||||
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -309,8 +310,10 @@ module.exports = {
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```mdx-code-block
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="src/css/custom.css">
|
<TabItem value="src/css/custom.css">
|
||||||
|
```
|
||||||
|
|
||||||
```css
|
```css
|
||||||
.code-block-error-line {
|
.code-block-error-line {
|
||||||
|
@ -322,8 +325,10 @@ module.exports = {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```mdx-code-block
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="myDoc.md">
|
<TabItem value="myDoc.md">
|
||||||
|
```
|
||||||
|
|
||||||
````md
|
````md
|
||||||
In JavaScript, trying to access properties on `null` will error.
|
In JavaScript, trying to access properties on `null` will error.
|
||||||
|
@ -336,10 +341,10 @@ console.log(name.toUpperCase());
|
||||||
```
|
```
|
||||||
````
|
````
|
||||||
|
|
||||||
|
```mdx-code-block
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
||||||
</Tabs>
|
</Tabs>
|
||||||
`````
|
```
|
||||||
|
|
||||||
````mdx-code-block
|
````mdx-code-block
|
||||||
<BrowserWindow>
|
<BrowserWindow>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue