Skip to content

Commit

Permalink
fix: fix doc break after upgraded prism-react-renderer to v2 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
RalXYZ authored Nov 14, 2024
1 parent b7926f7 commit 4be780c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/zh/docker-ce.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-pr

根据你的发行版,下面的内容有所不同。你使用的发行版:

<ConfigGenerator promptString="选择你使用的发行版:" versionList={osList} defaultVersion={'Debian'} configGen={genCommand} />
<ConfigGenerator promptString="选择你使用的发行版:" versionList={osList} defaultVersion={'Debian'} language="bash" configGen={genCommand} />

#### Fedora/CentOS/RHEL

Expand All @@ -66,7 +66,7 @@ sudo yum install -y yum-utils device-mapper-persistent-data lvm2

根据你的发行版下载repo文件:

<ConfigGenerator promptString="选择你使用的发行版:" versionList={osList2} defaultVersion={'CentOS/RHEL'} configGen={genCommand2} />
<ConfigGenerator promptString="选择你使用的发行版:" versionList={osList2} defaultVersion={'CentOS/RHEL'} language="bash" configGen={genCommand2} />

把软件仓库地址替换为浙大源:

Expand Down
1 change: 1 addition & 0 deletions docs/zh/elrepo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
promptString=""
versionList={osVersion}
friendlyNameList={versionName}
language="bash"
configGen={configGen} />

接下来是换源,建议先备份 `/etc/yum.repos.d/elrepo.repo`
Expand Down
1 change: 1 addition & 0 deletions docs/zh/raspberrypi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ export const configGen = (version) => {
promptString=""
versionList={osVersion}
friendlyNameList={versionName}
language=""
configGen={configGen} />
1 change: 1 addition & 0 deletions docs/zh/raspbian.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ deb [arch=arm64] https://mirrors.zju.edu.cn/raspbian/multiarch/ ${release_name}
promptString=""
versionList={osVersion}
friendlyNameList={versionName}
language=""
configGen={configGen} />


Expand Down

0 comments on commit 4be780c

Please sign in to comment.