docs: update documentation for Halo 2.1 (#162)

为 Halo 2.1 更新文档。

see https://github.com/halo-dev/halo/releases/tag/v2.1.0

/kind documentation

```release-note
None
```
This commit is contained in:
Ryan Wang
2023-01-03 15:56:36 +08:00
committed by GitHub
parent f89f0beadf
commit ef03b0fbfb
83 changed files with 6856 additions and 28 deletions

View File

@@ -34,11 +34,11 @@ const config = {
showLastUpdateAuthor: true,
remarkPlugins: [math, mermaid],
rehypePlugins: [katex],
lastVersion: "2.0",
lastVersion: "2.1",
versions: {
current: {
label: "2.1.0-SNAPSHOT",
path: "2.1.0-SNAPSHOT",
label: "2.2.0-SNAPSHOT",
path: "2.2.0-SNAPSHOT",
},
},
},
@@ -272,9 +272,10 @@ const config = {
if (existingPath.startsWith("/1.4/")) {
return [existingPath.replace("/1.4/", "/1.4.17/")];
}
if (existingPath.startsWith("/2.1.0-SNAPSHOT/")) {
if (existingPath.startsWith("/2.2.0-SNAPSHOT/")) {
return [
existingPath.replace("/2.1.0-SNAPSHOT/", "/2.0.0-SNAPSHOT/"),
existingPath.replace("/2.2.0-SNAPSHOT/", "/2.0.0-SNAPSHOT/"),
existingPath.replace("/2.2.0-SNAPSHOT/", "/2.1.0-SNAPSHOT/"),
];
}
return undefined;