mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
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:
parent
31fcc293e2
commit
aa5c9f5064
1 changed files with 3 additions and 3 deletions
|
@ -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'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue