docs: updated event reference (#2791)
* docs: updated events reference * docs: added noCopy metadata option for code blocks
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -152,7 +152,7 @@ console.log("hello")
|
||||
```
|
||||
~~~
|
||||
|
||||
### Remove Report Buttons
|
||||
### Remove Report Button
|
||||
|
||||
Some code block don't need a report button. To remove the report button, use the `noReport` metadata.
|
||||
|
||||
@@ -164,6 +164,18 @@ medusa new my-medusa-store --seed
|
||||
```
|
||||
~~~
|
||||
|
||||
### Remove Copy Button
|
||||
|
||||
Some code blocks don't need a copy button. To remove the copy button, use the `noCopy` metadata:
|
||||
|
||||
For example:
|
||||
|
||||
~~~md
|
||||
```bash noCopy
|
||||
medusa new my-medusa-store --seed
|
||||
```
|
||||
~~~
|
||||
|
||||
## NPM and Yarn Code Blocks
|
||||
|
||||
If you’re adding code blocks that use NPM and Yarn, you must use the [npm2yarn syntax](https://docusaurus.io/docs/markdown-features/code-blocks#npm2yarn-remark-plugin).
|
||||
|
||||
Reference in New Issue
Block a user