mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
feat(v2): composition syntax highlighting & live code editors (#1555)
* feat(v2): composition syntax highlighting & react-live playground * mobile friendly tweak * refactor styling * revert docs
This commit is contained in:
parent
246c1814c0
commit
305a4f0a29
21 changed files with 287 additions and 84 deletions
|
@ -9,7 +9,7 @@ Next, let's touch on the powerful feature in Docusaurus - documentation.
|
|||
|
||||
Create a new file within the `docs` directory called `hello.md` with the following contents:
|
||||
|
||||
```md
|
||||
```markdown
|
||||
---
|
||||
title: Hello
|
||||
---
|
||||
|
@ -43,7 +43,7 @@ Start the development server again and go to http://localhost:3000/docs/hello, y
|
|||
|
||||
Edit `docs/hello.md` and append the following:
|
||||
|
||||
```mdx
|
||||
```jsx
|
||||
import Trend from 'react-trend';
|
||||
|
||||
_Here's a bar chart!_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue