Skip to content

Commit e6b5e80

Browse files
kagura114RevySR
authored andcommitted
fix ghpage always add shash at end of url
1 parent e0873cb commit e6b5e80

File tree

10 files changed

+27
-22
lines changed

10 files changed

+27
-22
lines changed

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ sidebar_position: 1
3434

3535
对于文件夹,可以在文件夹中放置 `_category_.json` 手动设定其标题和所在位置,见[此处](docs/adaptation/_category_.json)
3636

37+
## Links
38+
为了解决这个问题[facebook/docusaurus issues#3372](https://github.com/facebook/docusaurus/issues/3372),默认为所有链接后面加上了一个 `/`, 因此跳转到其他页面需要向上一级走一次
39+
3740
## 开发
3841
### 本地开发
3942

Diff for: docs/Installation/intro.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import { RedirectBasedOnUA } from "@site/src/components/RedirectBasedOnUA";
1414

1515
| 支持设备 | 镜像下载(最新版本) | 刷写教程 |
1616
| ----------------- | ----------|--------------------------------------------- |
17-
| Lichee Pi 4A | {<DownloadLink device="Lichee Pi 4A" />} | {<RedirectBasedOnUA windowsLink="./licheepi4a-windows" otherLink="./licheepi4a" description="镜像刷写" /> } |
17+
| Lichee Pi 4A | {<DownloadLink device="Lichee Pi 4A" />} | {<RedirectBasedOnUA windowsLink="../licheepi4a-windows/" otherLink="../licheepi4a/" description="镜像刷写" /> } |
1818
| Milk-V Meles | {<DownloadLink device="Milk-V Meles" />} | [Milk-V 官方镜像刷写教程](https://milkv.io/zh/docs/meles/installation) |
19-
| Milk-V Pioneer | {<DownloadLink device="Milk-V Pioneer" />} | [镜像刷写](milkv-pioneer) |
19+
| Milk-V Pioneer | {<DownloadLink device="Milk-V Pioneer" />} | [镜像刷写](../milkv-pioneer/) |
2020
| Lichee Cluster 4A | {<DownloadLink device="Lichee Cluster 4A" />} | 编写中 |
2121
| Lichee Console 4A | {<DownloadLink device="Lichee Console 4A" />} | 编写中 |
2222
| Lichee Book 4A | {<DownloadLink device="Lichee Book 4A" />} | 编写中 |

Diff for: docs/Installation/licheepi4a-windows.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { DownloadLink } from "@site/src/components/ImageLinks";
1212

1313
| 其他刷写教程 | 链接 |
1414
| ------- | -------------- |
15-
| LicheePi4A (在 Linux 上刷写)| [Linux 刷写教程](./licheepi4a) |
16-
| Milk-V pioneer | [刷写教程](./milkv-pioneer) |
15+
| LicheePi4A (在 Linux 上刷写)| [Linux 刷写教程](../licheepi4a/) |
16+
| Milk-V pioneer | [刷写教程](../milkv-pioneer/) |
1717

1818
## 注意!
1919

Diff for: docs/Installation/licheepi4a.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { DownloadLink } from "@site/src/components/ImageLinks";
1212

1313
| 其他刷写教程 | 链接 |
1414
| ------- | -------------- |
15-
| LicheePi4A (在 Windows 上刷写)| [Windows 刷写教程](./licheepi4a-windows) |
16-
| Milk-V pioneer | [刷写教程](./milkv-pioneer) |
15+
| LicheePi4A (在 Windows 上刷写)| [Windows 刷写教程](../licheepi4a-windows/) |
16+
| Milk-V pioneer | [刷写教程](../milkv-pioneer/) |
1717

1818
## 注意!
1919

@@ -29,7 +29,7 @@ import { DownloadLink } from "@site/src/components/ImageLinks";
2929
- 架构: x86_64
3030
- LicheePi4A 板卡规格 16G RAM + 128G eMMC
3131

32-
在此环境中,本教程中的所有操作都是可复现的。在下面我们提供了一些未经官方验证,但可以进行刷写的环境,在下面环境中进行镜像刷写遇到问题请参考[此页](../issue)提交issue。
32+
在此环境中,本教程中的所有操作都是可复现的。在下面我们提供了一些未经官方验证,但可以进行刷写的环境,在下面环境中进行镜像刷写遇到问题请参考[此页](../../issue/)提交issue。
3333

3434
## 工具安装
3535

@@ -154,7 +154,7 @@ sudo unzstd sdcard-lpi4a-20250110_151339.img.zst
154154

155155
准备MicroSD 读卡器和一张MicroSD 卡,目前 MicroSD 卡存在兼容性问题,RevyOS 提供了目前已测试过的 [MicroSD 卡列表](https://github.com/revyos/revyos/blob/main/Installation/card%20list.md)
156156

157-
如果您使用的 MicroSD 卡不在已知可用的列表上,出现无法正确刷写镜像和刷写后无法启动镜像的问题,请参考[此页](../issue)提交issue,并尝试参考[从 eMMC 启动](#从-emmc-启动)镜像的刷写教程进行镜像刷写。
157+
如果您使用的 MicroSD 卡不在已知可用的列表上,出现无法正确刷写镜像和刷写后无法启动镜像的问题,请参考[此页](../../issue/)提交issue,并尝试参考[从 eMMC 启动](#从-emmc-启动)镜像的刷写教程进行镜像刷写。
158158

159159
### 烧录方式介绍
160160

Diff for: docs/intro.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ __RevyOS__ 围绕玄铁 C906、C910、C920、C908 等芯片提供了完整而全
2222

2323
## 镜像下载
2424

25-
__RevyOS__ 的用户版镜像目前在 ISCAS(中国科学院软件研究所)开源镜像站进行更新。如您想获取 __RevyOS__ 最新版镜像请访问[镜像下载](https://mirror.iscas.ac.cn/revyos/extra/images/)目录,根据所使用设备来获取对应镜像。在下载完成后,请点击[镜像刷写](./Installation/intro)获取对应设备的镜像刷写教程。
25+
__RevyOS__ 的用户版镜像目前在 ISCAS(中国科学院软件研究所)开源镜像站进行更新。如您想获取 __RevyOS__ 最新版镜像请访问[镜像下载](https://mirror.iscas.ac.cn/revyos/extra/images/)目录,根据所使用设备来获取对应镜像。在下载完成后,请点击[镜像刷写](../Installation/intro/)获取对应设备的镜像刷写教程。
2626

2727
| 支持设备 | 镜像下载(最新版本) | SD 卡支持 |
2828
| ----------------- | --------------------------------------------- | --------- |
@@ -37,15 +37,15 @@ __RevyOS__ 的用户版镜像目前在 ISCAS(中国科学院软件研究所)
3737

3838
### 如何启用 T-Head 优化 GCC
3939

40-
详见这篇文档[如何启用优化 GCC](build/debian/enable_optimization_gcc)
40+
详见这篇文档[如何启用优化 GCC](../build/debian/enable_optimization_gcc/)
4141

4242
## 更新日志
4343

44-
镜像版本更新后我们会公布当前版本镜像支持内容,如您想查看镜像支持内容请点击[RevyOS 版本更新日志](./Changelog/changelog-index)后选择您所需要的版本进行查看。
44+
镜像版本更新后我们会公布当前版本镜像支持内容,如您想查看镜像支持内容请点击[RevyOS 版本更新日志](../Changelog/changelog-index/)后选择您所需要的版本进行查看。
4545

4646
## issue 相关
4747

48-
如果您在使用过程中遇到问题,可以进行[issue 申报](./issue)
48+
如果您在使用过程中遇到问题,可以进行[issue 申报](../issue/)
4949

5050
## 用户文档
5151

Diff for: docusaurus.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const config: Config = {
2222
onBrokenLinks: 'throw',
2323
onBrokenMarkdownLinks: 'warn',
2424

25+
trailingSlash: true,
26+
2527
i18n: {
2628
defaultLocale: 'zh-Hans',
2729
locales: ['zh-Hans', 'en'],

Diff for: i18n/en/docusaurus-plugin-content-docs/current/Installation/intro.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { RedirectBasedOnUA } from "@site/src/components/RedirectBasedOnUA";
1313

1414
| Supported Device | Image Download (Latest Version) | Installation Guide |
1515
| ------------------ | ---------------------------------------------------- | ---------------------------------------------- |
16-
| Lichee Pi 4A | {<DownloadLink device="Lichee Pi 4A" />} | {<RedirectBasedOnUA windowsLink="./licheepi4a-windows" otherLink="./licheepi4a" description="Installation Guide" /> } |
16+
| Lichee Pi 4A | {<DownloadLink device="Lichee Pi 4A" />} | {<RedirectBasedOnUA windowsLink="../licheepi4a-windows/" otherLink="../licheepi4a/" description="Installation Guide" /> } |
1717
| Milk-V Meles | {<DownloadLink device="Lichee Pi 4A" />} | [Official Milk-V Installation Guide](https://milkv.io/docs/meles/installation) |
18-
| Milk-V Pioneer | {<DownloadLink device="Milk-V Pioneer" />} | [Installation Guide](milkv-pioneer) |
18+
| Milk-V Pioneer | {<DownloadLink device="Milk-V Pioneer" />} | [Installation Guide](../milkv-pioneer/) |
1919
| Lichee Cluster 4A | {<DownloadLink device="Lichee Cluster 4A" />} | In Progress |
2020
| Lichee Console 4A | {<DownloadLink device="Lichee Console 4A" />} | In Progress |
2121
| Lichee Book 4A | {<DownloadLink device="Lichee Book 4A" />} | In Progress |

Diff for: i18n/en/docusaurus-plugin-content-docs/current/Installation/licheepi4a-windows.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you want to flash the image on a Linux, or view other image flashing tutorial
1111

1212
| Other Flashing Tutorial | Link |
1313
| ----------------- | -------------- |
14-
| LicheePi4A (Installing using Linux)| [Installation guilde for Linux](./licheepi4a) |
14+
| LicheePi4A (Installing using Linux)| [Installation guilde for Linux](../licheepi4a/) |
1515
| Milk-V Pioneer | [Flashing Tutorial](./milkv-pioneer.mdx) |
1616

1717
## Attention!

Diff for: i18n/en/docusaurus-plugin-content-docs/current/Installation/licheepi4a.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you want to flash the image on a Windows, or view other image flashing tutori
1313

1414
| Other Flashing Tutorial | Link |
1515
| ----------------- | -------------- |
16-
| LicheePi4A (Installing using Windows)| [Installation guilde for Windows](./licheepi4a-windows) |
16+
| LicheePi4A (Installing using Windows)| [Installation guilde for Windows](../licheepi4a-windows/) |
1717
| Milk-V Pioneer | [Flashing Tutorial](./milkv-pioneer.mdx) |
1818

1919
## Important!
@@ -30,7 +30,7 @@ All installation operations in this tutorial are demonstrated using the followin
3030
- **Architecture**: x86_64
3131
- **LicheePi4A Specs**: 16GB RAM + 128GB eMMC
3232

33-
For unofficial environments that might be used, refer to [this page](../issue) for submitting issues.
33+
For unofficial environments that might be used, refer to [this page](../../issue/) for submitting issues.
3434

3535
## Boot Methods Overview
3636

@@ -132,7 +132,7 @@ Once the extraction is complete, you will have the file `sdcard-lpi4a-20250110_1
132132

133133
Prepare a MicroSD card reader and a MicroSD card. Note that there are compatibility issues with MicroSD cards. RevyOS provides a list of [tested MicroSD cards](https://github.com/revyos/revyos/blob/main/Installation/card%20list.md).
134134

135-
If your MicroSD card is not on the list of known compatible cards and you encounter issues such as failure to write the image or failure to boot after writing, refer to [this page](../issue) to submit an issue. You can also try the [eMMC boot guide](#booting-from-emmc) for writing the image.
135+
If your MicroSD card is not on the list of known compatible cards and you encounter issues such as failure to write the image or failure to boot after writing, refer to [this page](../../issue/) to submit an issue. You can also try the [eMMC boot guide](#booting-from-emmc) for writing the image.
136136

137137
### Image Writing Methods
138138

Diff for: i18n/en/docusaurus-plugin-content-docs/current/intro.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Based on these customizations and optimizations, __RevyOS__ delivers excellent p
2323

2424
The user version images of __RevyOS__ are currently updated on the [ISCAS (Institute of Software, Chinese Academy of Sciences)](https://mirror.iscas.ac.cn/revyos) / [Felix Finland Source](https://mirrors.felixc.at/revyos/) open-source mirror sites.
2525

26-
If you want to obtain the latest version of __RevyOS__, please select the corresponding device to download the appropriate U-Boot, boot partition, and root partition files. After downloading, please visit [Installation](./Installation/intro) for the installation guide for your device.
26+
If you want to obtain the latest version of __RevyOS__, please select the corresponding device to download the appropriate U-Boot, boot partition, and root partition files. After downloading, please visit [Installation](../Installation/intro/) for the installation guide for your device.
2727

2828
| Supported Devices | Image Download (Latest Version) | SD Card Support |
2929
| ----------------- | -------------------------------------------------------------------------------- | --------- |
@@ -38,15 +38,15 @@ If you want to obtain the latest version of __RevyOS__, please select the corres
3838

3939
### How to Enable T-Head Optimized GCC
4040

41-
For more details, see this document: [How to Enable Optimized GCC](build/debian/enable_optimization_gcc).
41+
For more details, see this document: [How to Enable Optimized GCC](../build/debian/enable_optimization_gcc/).
4242

4343
## Changelog
4444

45-
After each update to the image version, we will publish the supported features for the current version. To view the changelog, please click [RevyOS Version Change Log](./Changelog/changelog-index) and select the version you want to check.
45+
After each update to the image version, we will publish the supported features for the current version. To view the changelog, please click [RevyOS Version Change Log](../Changelog/changelog-index/) and select the version you want to check.
4646

4747
## Issues
4848

49-
If you encounter any issues during use, you can report them, see [Submitting issues](./issue).
49+
If you encounter any issues during use, you can report them, see [Submitting issues](../issue/).
5050

5151
## User Documentation
5252

0 commit comments

Comments
 (0)