mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 11:38:48 +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
|
@ -442,12 +442,11 @@ If the generated sidebar does not look good, you can assign additional metadatas
|
|||
|
||||
**For docs**: use additional frontmatter:
|
||||
|
||||
```diff title="docs/tutorials/tutorial-easy.md"
|
||||
+ ---
|
||||
+ sidebar_label: Easy
|
||||
+ sidebar_position: 2
|
||||
+ ---
|
||||
|
||||
```md title="docs/tutorials/tutorial-easy.md" {1-4}
|
||||
---
|
||||
sidebar_label: Easy
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Easy Tutorial
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue