mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 06:29:03 +02:00
docs(v2): replace diff
codeblocks with line highlight (#4973)
* Replace `diff` codeblocks with line highlight Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Add line highlight
This commit is contained in:
parent
34411e12e5
commit
af3640dca2
4 changed files with 25 additions and 28 deletions
|
@ -28,12 +28,11 @@ Docusaurus automatically **creates a sidebar** from the `docs` folder.
|
|||
|
||||
Add metadatas to customize the sidebar label and position:
|
||||
|
||||
```diff title="docs/hello.md"
|
||||
+ ---
|
||||
+ sidebar_label: "Hi!"
|
||||
+ sidebar_position: 3
|
||||
+ ---
|
||||
|
||||
```md title="docs/hello.md" {1-4}
|
||||
---
|
||||
sidebar_label: 'Hi!'
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Hello
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue