Skip to content

Commit

Permalink
fix: force using lowercase slug in case of been rewrited and cause 404 (
Browse files Browse the repository at this point in the history
#61)

* chore: manually use another name to force change lowercase pagename

* chore: use another commit force change to original filename, but lowercase

* fix: completely change the slug to lowercase.

Co-Authored-By: 目棃 <[email protected]>
Co-Authored-By: Womsxd <[email protected]>

* 🐛 侧边栏忘了改的 baka

* 🐛 修复内容引用错误

* update redirect from frontmatter

---------

Co-authored-by: 目棃 <[email protected]>
Co-authored-by: Womsxd <[email protected]>
Co-authored-by: 目棃 <[email protected]>
Co-authored-by: Masterain <[email protected]>
  • Loading branch information
5 people authored Apr 4, 2024
1 parent 86b517a commit 6aec650
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 41 deletions.
6 changes: 3 additions & 3 deletions docs/.vuepress/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { navbar } from "vuepress-theme-hope";
export const enNavbar = navbar([
"/en/",
{ text: "Partnerships", icon: "discover", link: "/en/partnership.md" },
"/en/API.md",
"/en/api.md",
{
text: "Standards",
icon: "proposal",
prefix: "/en/standards/",
children: [
{
text: "Genshin Impact",
children: ["UIGF.md", "UIAF.md"],
children: ["uigf.md", "uiaf.md"],
},
{
text: "Honkai: Star Rail",
children: ["SRGF.md"],
children: ["srgf.md"],
},
],
},
Expand Down
8 changes: 4 additions & 4 deletions docs/.vuepress/navbar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { navbar } from "vuepress-theme-hope";
export const zhNavbar = navbar([
"/zh/",
{ text: "合作项目", icon: "discover", link: "/zh/partnership.md" },
"/zh/API.md",
"/zh/api.md",
{
text: "规范标准",
icon: "proposal",
prefix: "/zh/standards/",
children: [
{
text: "原神",
children: ["UIGF.md", "UIAF.md"],
children: ["uigf.md", "uiaf.md"],
},
{
text: "崩坏:星穹铁道",
children: ["SRGF.md"],
children: ["srgf.md"],
},
],
},
Expand All @@ -25,7 +25,7 @@ export const zhNavbar = navbar([
children: [
{
text: "米哈游 API 合集",
link: "/zh/MiHoYo-API-Collection-project.html",
link: "/zh/mihoyo-api-collection-project.html",
icon: "api",
},
],
Expand Down
6 changes: 3 additions & 3 deletions docs/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ export const enSidebar = sidebar({
text: "Our Partnerships",
link: "partnership.md",
},
"API.md",
"api.md",
{
icon: "proposal",
text: "Standards Document",
prefix: "standards/",
children: [
{
text: "Genshin Impact",
children: ["UIGF.md", "UIAF.md"],
children: ["uigf.md", "uiaf.md"],
},
{
text: "Honkai: Star Rail",
children: ["SRGF.md"],
children: ["srgf.md"],
},
],
},
Expand Down
8 changes: 4 additions & 4 deletions docs/.vuepress/sidebar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ export const zhSidebar = sidebar({
text: "合作项目",
link: "partnership.md",
},
"API.md",
"api.md",
{
icon: "proposal",
text: "标准化文档",
prefix: "standards/",
children: [
{
text: "原神",
children: ["UIGF.md", "UIAF.md"],
children: ["uigf.md", "uiaf.md"],
},
{
text: "崩坏:星穹铁道",
children: ["SRGF.md"],
children: ["srgf.md"],
},
],
},
{
icon: "api",
text: "米哈游 API 合集",
children: [
"MiHoYo-API-Collection-project.md",
"mihoyo-api-collection-project.md",
{
text: "米游社",
icon: "community",
Expand Down
8 changes: 4 additions & 4 deletions docs/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ actions:
type: primary

- text: API
link: API.html
link: api.html

- text: Partnerships
link: partnership.html
Expand All @@ -20,17 +20,17 @@ features:
- title: Uniformed Interchangeable GachaLog Format standard
icon: proposal
details: UIGF
link: standards/UIGF.html
link: standards/uigf.html

- title: Uniformed Interchangeable Achievement Format standard
icon: proposal
details: UIAF
link: standards/UIAF.html
link: standards/uiaf.html

- title: Star Rail GachaLog Format Standard
icon: proposal
details: SRGF
link: standards/SRGF.html
link: standards/srgf.html


copyright: false
Expand Down
1 change: 1 addition & 0 deletions docs/en/API.md → docs/en/api.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /en/API.html
headerDepth: 2
category: [API]
icon: api
Expand Down
1 change: 1 addition & 0 deletions docs/en/standards/SRGF.md → docs/en/standards/srgf.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /en/standards/SRGF.html
category: [Standard Document]
order: 2
head:
Expand Down
1 change: 1 addition & 0 deletions docs/en/standards/UIAF.md → docs/en/standards/uiaf.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /en/standards/UIAF.html
category: [Standard Document]
order: 2
head:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /en/standards/UIGF-legacy-v2.2.html
category: [Standard Document]
order: 3
head:
Expand All @@ -11,7 +12,7 @@ head:
> Uniformed Interchangeable GachaLog Format standard (UIGF) v2.2 <Badge text="Legacy" type="message" />
::: warning Warning
This standard is outdated, [UIGF v2.3](UIGF-legacy-v2.3.md) is the successor.
This standard is outdated, [UIGF v2.3](uigf-legacy-v2.3.md) is the successor.
:::

## Manifesto
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /en/standards/UIGF-legacy-v2.3.html
category: [Standard Document]
order: 1
head:
Expand All @@ -17,7 +18,7 @@ Including only importing feature reduces the interchangeability of user data, an
:::

::: warning Warning
This standard is outdated, [UIGF v2.4](UIGF.md) is the successor.
This standard is outdated, [UIGF v2.4](uigf.md) is the successor.
:::

## Versions Features
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /en/standards/UIGF-legacy-v2.4.html
category: [Standard Document]
order: 1
head:
Expand All @@ -16,7 +17,7 @@ Application must declare support of UIGF data format only after supporting of bo
Including only importing feature reduces the interchangeability of user data, and puts the data in a risk that user can not control, which is not in line with intention of UIGF-Org.
:::
::: warning Warning
This standard is outdated, [UIGF v3.0](UIGF.md) is the successor.
This standard is outdated, [UIGF v3.0](uigf.md) is the successor.
:::

## Versions Features
Expand Down Expand Up @@ -82,7 +83,7 @@ Please remember to add corresponding uigf_gacha_type field when applying UIGF fo

### `item_id`

Item's in-game ID, refer to [UIGF API](../API.md) to get this data
Item's in-game ID, refer to [UIGF API](../api.md) to get this data

## Json Schema

Expand Down
5 changes: 3 additions & 2 deletions docs/en/standards/UIGF.md → docs/en/standards/uigf.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /en/standards/UIGF.html
category: [Standard Document]
order: 1
head:
Expand All @@ -21,8 +22,8 @@ Including only importing feature reduces the interchangeability of user data, an
|-------------------------------|-----------------------------------------------------------------------------------|----------------|
| `v2.0` | First public version | v2.0 |
| `v2.1` | Simplified in language expression, data format is completely consistent with v2.0 | v2.1 and lower |
| [`v2.2`](UIGF-legacy-v2.2.md) | Add `info.export_timestamp` to fill UNIX timestamp | v2.2 and lower |
| [`v2.3`](UIGF-legacy-v2.3.md) | Add support for non-Chinese environment, express in Json Schema | v2.3 and lower |
| [`v2.2`](uigf-legacy-v2.2.md) | Add `info.export_timestamp` to fill UNIX timestamp | v2.2 and lower |
| [`v2.3`](uigf-legacy-v2.3.md) | Add support for non-Chinese environment, express in Json Schema | v2.3 and lower |
| `v2.4` | Add `info.region_time_zone` to support time zone processing | v2.4 and lower |
| `v3.0` | Add support for Chronicled Wish | v3.0 and lower |

Expand Down
8 changes: 4 additions & 4 deletions docs/zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ actions:
type: primary

- text: API
link: API.html
link: api.html

- text: 合作项目
link: partnership.html
Expand All @@ -20,17 +20,17 @@ features:
- title: 统一可交换祈愿记录标准
icon: proposal
details: Uniformed Interchangeable GachaLog Format standard (UIGF)
link: standards/UIGF.html
link: standards/uigf.html

- title: 统一可交换成就标准
icon: proposal
details: Uniformed Interchangeable Achievement Format standard (UIAF)
link: standards/UIAF.html
link: standards/uiaf.html

- title: 星穹铁道抽卡记录标准
icon: proposal
details: Star Rail GachaLog Format standard (SRGF)
link: standards/SRGF.html
link: standards/srgf.html

copyright: false
footer: MIT Licensed | Copyright © 2021-present UIGF-org
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/API.md → docs/zh/api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
redirectFrom: /API.html
redirectFrom: /zh/API.html
headerDepth: 2
category: [API]
icon: api
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /zh/MiHoYo-API-Collection-project.html
category: [API]
icon: repo
head:
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/standards/SRGF.md → docs/zh/standards/srgf.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
redirectFrom: /standards/SRGF.html
redirectFrom: /zh/standards/SRGF.html
category: [标准化文档]
order: 2
head:
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/standards/UIAF.md → docs/zh/standards/uiaf.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
redirectFrom: /standards/UIAF.html
redirectFrom: /zh/standards/UIAF.html
category: [标准化文档]
order: 2
head:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
redirectFrom: /standards/UIGF-legacy-v2.2.html
redirectFrom: /zh/standards/UIGF-legacy-v2.2.html
category: [标准化文档]
order: 3
head:
Expand All @@ -13,7 +13,7 @@ head:
> Uniformed Interchangeable GachaLog Format standard (UIGF) v2.2 <Badge text="Legacy" type="message" />
::: warning 警告
该标准已过时,[UIGF v2.4](UIGF.md) 替代了本标准。
该标准已过时,[UIGF v2.4](uigf.md) 替代了本标准。
:::

## 前言
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
redirectFrom: /zh/standards/UIGF-legacy-v2.3.html
category: [标准化文档]
order: 1
head:
Expand All @@ -16,7 +17,7 @@ head:
仅包含导入或导出功能降低了用户数据可流通性,且将数据至于用户不可控的风险中,不符合 UIGF-Org 设计的初衷。
:::
::: warning 警告
该标准已过时,[UIGF v2.4](UIGF.md) 替代了本标准。
该标准已过时,[UIGF v2.4](uigf.md) 替代了本标准。
:::

## 更新记录
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
redirectFrom: /standards/UIGF.html
redirectFrom: /zh/standards/UIGF-legacy-v2.4.html
category: [标准化文档]
order: 1
head:
Expand All @@ -17,7 +17,7 @@ head:
仅包含导入或导出功能降低了用户数据可流通性,且将数据至于用户不可控的风险中,不符合 UIGF-Org 设计的初衷。
:::
::: warning 警告
该标准已过时,[UIGF v3.0](UIGF.md) 替代了该版本的标准。
该标准已过时,[UIGF v3.0](uigf.md) 替代了该版本的标准。
:::

## 更新记录
Expand Down
10 changes: 5 additions & 5 deletions docs/zh/standards/UIGF.md → docs/zh/standards/uigf.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
redirectFrom: /standards/UIGF.html
redirectFrom: /zh/standards/UIGF.html
category: [标准化文档]
order: 1
head:
Expand All @@ -22,9 +22,9 @@ head:
|-------------------------------|-----------------------------------------|----------------|
| `v2.0` | 首个正式版本 | v2.0 |
| `v2.1` | 简化了部分语言表述,与 v2.0在数据格式上完全一致 | v2.1 and lower |
| [`v2.2`](UIGF-legacy-v2.2.md) | 新增 `info.export_timestamp` 填充 UNIX 时间戳 | v2.2 and lower |
| [`v2.3`](UIGF-legacy-v2.3.md) | 扩充至非中文语境,使用 Json Schema 表述。移除了 Excel 格式 | v2.3 and lower |
| [`v2.4`](UIGF-legacy-v2.4.md) | 新增 `info.region_time_zone` 支持时区处理 | v2.4 and lower |
| [`v2.2`](uigf-legacy-v2.2.md) | 新增 `info.export_timestamp` 填充 UNIX 时间戳 | v2.2 and lower |
| [`v2.3`](uigf-legacy-v2.3.md) | 扩充至非中文语境,使用 Json Schema 表述。移除了 Excel 格式 | v2.3 and lower |
| [`v2.4`](uigf-legacy-v2.4.md) | 新增 `info.region_time_zone` 支持时区处理 | v2.4 and lower |
| `v3.0` | 新增 集录祈愿类型支持 | v3.0 and lower |

### v3.0 更新内容
Expand Down Expand Up @@ -78,7 +78,7 @@ App 不应假定 `region_time_zone` 的值为上表中给出的值,应具有

### `item_id`

物品游戏内ID,你可以通过 [UIGF API](../API.md) 获取这一数据
物品游戏内ID,你可以通过 [UIGF API](../api.md) 获取这一数据

## Json Schema

Expand Down

0 comments on commit 6aec650

Please sign in to comment.