docs: make tutorial code block directly copyable (#6833)

* code block included diff +,- 

Sample code block could not be copy/pasted as the tutorial mentions with the lines that appear to be from a diff tool.

* add highlight

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
Sam Gutentag 2022-03-03 17:04:02 -08:00 committed by GitHub
parent 31fcc293e2
commit aa5c9f5064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,14 +41,14 @@ This is my **first Docusaurus document**!
It is also possible to create your sidebar explicitly in `sidebars.js`: It is also possible to create your sidebar explicitly in `sidebars.js`:
```diff title="sidebars.js" ```js title="sidebars.js"
module.exports = { module.exports = {
tutorialSidebar: [ tutorialSidebar: [
{ {
type: 'category', type: 'category',
label: 'Tutorial', label: 'Tutorial',
- items: [...], // highlight-next-line
+ items: ['hello'], items: ['hello'],
}, },
], ],
}; };