Skip to content

Commit b7a3d61

Browse files
JZ LohJZ Loh
authored andcommitted
add remark-plugin-npm2yarn
1 parent ade64fd commit b7a3d61

4 files changed

Lines changed: 39 additions & 3 deletions

File tree

docs/Linux/SDK编译环境搭建.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $ sudo pip install pyelftools
3232

3333
openjdk-8-jdk 默认会安装到`/usr/lib/jvm/java-8-openjdk-amd64`,如果不是安装在此目录下,在编译前修改编译脚本 make.sh。确保编译android 使用 openjdk 1.8
3434

35-
```shell
35+
```shell bash
3636
sudo apt-get install openjdk-8-jdk
3737
```
3838

docusaurus.config.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ const config: Config = {
5252
[
5353
'classic',
5454
{
55-
docs: {
56-
sidebarPath: './sidebars.ts',
55+
docs: {
56+
sidebarPath: './sidebars.ts',
57+
remarkPlugins: [
58+
[require('@docusaurus/remark-plugin-npm2yarn'), {sync: true}],
59+
],
60+
},
61+
pages: {
62+
remarkPlugins: [require('@docusaurus/remark-plugin-npm2yarn')],
5763
},
5864
blog: {
5965
showReadingTime: true,
@@ -65,6 +71,12 @@ const config: Config = {
6571
onInlineTags: 'warn',
6672
onInlineAuthors: 'warn',
6773
onUntruncatedBlogPosts: 'warn',
74+
remarkPlugins: [
75+
[
76+
require('@docusaurus/remark-plugin-npm2yarn'),
77+
{converters: ['pnpm']},
78+
],
79+
],
6880
},
6981
theme: {
7082
customCss: './src/css/custom.css',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@docusaurus/core": "3.9.2",
2121
"@docusaurus/faster": "^3.9.2",
2222
"@docusaurus/preset-classic": "3.9.2",
23+
"@docusaurus/remark-plugin-npm2yarn": "^3.9.2",
2324
"@mdx-js/react": "^3.0.0",
2425
"clsx": "^2.0.0",
2526
"prism-react-renderer": "^2.3.0",

pnpm-lock.yaml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)