docs: updated event reference (#2791)

* docs: updated events reference

* docs: added noCopy metadata option for code blocks
This commit is contained in:
Shahed Nasser
2022-12-13 18:14:53 +02:00
committed by GitHub
parent 0d788e73c4
commit 319bcc71b0
5 changed files with 743 additions and 78 deletions
File diff suppressed because it is too large Load Diff
+13 -1
View File
@@ -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 youre 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).