mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-09 14:22:27 +02:00
chore: Docusaurus v3.1 examples (#9707)
This commit is contained in:
parent
f2eb5e2204
commit
3c08441eab
3 changed files with 544 additions and 552 deletions
|
@ -61,13 +61,13 @@ You can reference images relative to the current file as well. This is particula
|
||||||
|
|
||||||
Markdown code blocks are supported with Syntax highlighting.
|
Markdown code blocks are supported with Syntax highlighting.
|
||||||
|
|
||||||
```jsx title="src/components/HelloDocusaurus.js"
|
````md
|
||||||
function HelloDocusaurus() {
|
```jsx title="src/components/HelloDocusaurus.js"
|
||||||
return (
|
function HelloDocusaurus() {
|
||||||
<h1>Hello, Docusaurus!</h1>
|
return <h1>Hello, Docusaurus!</h1>;
|
||||||
)
|
}
|
||||||
}
|
```
|
||||||
```
|
````
|
||||||
|
|
||||||
```jsx title="src/components/HelloDocusaurus.js"
|
```jsx title="src/components/HelloDocusaurus.js"
|
||||||
function HelloDocusaurus() {
|
function HelloDocusaurus() {
|
||||||
|
@ -79,17 +79,19 @@ function HelloDocusaurus() {
|
||||||
|
|
||||||
Docusaurus has a special syntax to create admonitions and callouts:
|
Docusaurus has a special syntax to create admonitions and callouts:
|
||||||
|
|
||||||
:::tip My tip
|
```md
|
||||||
|
:::tip My tip
|
||||||
|
|
||||||
Use this awesome feature option
|
Use this awesome feature option
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::danger Take care
|
:::danger Take care
|
||||||
|
|
||||||
This action is dangerous
|
This action is dangerous
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
```
|
||||||
|
|
||||||
:::tip My tip
|
:::tip My tip
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "3.0.1",
|
"@docusaurus/core": "3.1.0",
|
||||||
"@docusaurus/preset-classic": "3.0.1",
|
"@docusaurus/preset-classic": "3.1.0",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.0.0",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.3.0",
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
"react-dom": "^18.0.0"
|
"react-dom": "^18.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "3.0.1",
|
"@docusaurus/module-type-aliases": "3.1.0",
|
||||||
"@docusaurus/types": "3.0.1"
|
"@docusaurus/types": "3.1.0"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue