-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
@theguild/remark-npm2yarn
package (#2056)
- Loading branch information
Dimitri POSTOLOV
authored
Jul 13, 2023
1 parent
fb1f96e
commit e54b008
Showing
17 changed files
with
180 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'nextra': minor | ||
'nextra-theme-blog': minor | ||
'nextra-theme-docs': minor | ||
--- | ||
|
||
- add `@theguild/remark-npm2yarn` package that replaces the code block that has `npm2yarn` metadata | ||
with `<Tabs />` and `<Tab />` components from `nextra/components`. | ||
|
||
- `<Tabs />` now has `selectedKey` prop, the chosen tab is saved in the local storage, which will be | ||
chosen in future page renders. | ||
|
||
More info https://nextra.site/docs/guide/advanced/npm2yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"npm2yarn": "Npm2Yarn", | ||
"mermaid": "", | ||
"tailwind-css": "", | ||
"latex": "LaTeX", | ||
"table": "Rendering Tables", | ||
"typescript": "", | ||
"remote": "Remote Content" | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Npm2Yarn | ||
|
||
Nextra uses | ||
[`@theguild/remark-npm2yarn`](https://npmjs.com/package/@theguild/remark-npm2yarn) | ||
package that replaces the code block that has `npm2yarn` metadata with | ||
[`<Tabs />` and `<Tab />` components](/docs/guide/built-ins/tabs) from | ||
`nextra/components`. | ||
|
||
The chosen tab is saved in the local storage, which will be chosen in future | ||
page renders. | ||
|
||
## Example | ||
|
||
```sh npm2yarn | ||
npm i -D @graphql-eslint/eslint-plugin | ||
``` | ||
|
||
## Usage | ||
|
||
````mdx filename="Markdown" /npm2yarn/ | ||
```sh npm2yarn | ||
npm i -D @graphql-eslint/eslint-plugin | ||
``` | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e54b008
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextra-v2 – ./docs
nextra-v2-git-main-shuding1.vercel.app
nextra-v2.vercel.app
nextra-v2-shuding1.vercel.app
nextra.vercel.app
www.nextra.site
nextra.site