Skip to content

Commit

Permalink
chore: Docusaurus v3.1 examples (#9707)
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Jan 5, 2024
1 parent f2eb5e2 commit 3c08441
Show file tree
Hide file tree
Showing 3 changed files with 566 additions and 574 deletions.
28 changes: 15 additions & 13 deletions docs/tutorial-basics/markdown-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return (
<h1>Hello, Docusaurus!</h1>
)
}
```
````md
```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
return <h1>Hello, Docusaurus!</h1>;
}
```
````

```jsx title="src/components/HelloDocusaurus.js"
function HelloDocusaurus() {
Expand All @@ -79,17 +79,19 @@ function HelloDocusaurus() {

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

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"dev": "docusaurus start"
},
"dependencies": {
"@docusaurus/core": "3.0.1",
"@docusaurus/preset-classic": "3.0.1",
"@docusaurus/core": "3.1.0",
"@docusaurus/preset-classic": "3.1.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.0.1",
"@docusaurus/types": "3.0.1"
"@docusaurus/module-type-aliases": "3.1.0",
"@docusaurus/types": "3.1.0"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 3c08441

Please sign in to comment.