mirror of
https://github.com/halo-dev/docs.git
synced 2026-05-07 01:01:45 +08:00
chore: bump docusaurus version to 3.x (#395)
升级 Docusaurus 版本至 3.x 参照 https://docusaurus.io/zh-CN/docs/migration/v3 升级指南。 Fixes #394 /kind improvement ```release-note None ```
This commit is contained in:
@@ -79,7 +79,7 @@ spec:
|
||||
|
||||
为了方便主题开发者从 1.x 迁移,我们提供了工具用于迁移配置文件。
|
||||
|
||||
工具仓库地址:<https://github.com/halo-sigs/convert-theme-config-to-next>
|
||||
工具仓库地址:[https://github.com/halo-sigs/convert-theme-config-to-next](https://github.com/halo-sigs/convert-theme-config-to-next)
|
||||
|
||||
```bash
|
||||
# 1.x 版本主题
|
||||
|
||||
@@ -48,7 +48,7 @@ categoryFinder.getByNames(names)
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#CategoryVo](#categoryvo)>
|
||||
List\<[#CategoryVo](#categoryvo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -75,7 +75,7 @@ categoryFinder.list(page,size)
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<CategoryVo\>](#listresultcategoryvo)
|
||||
[#ListResult\<CategoryVo\>](#listresultcategoryvo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -103,7 +103,7 @@ categoryFinder.listAll()
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#CategoryVo](#categoryvo)>
|
||||
List\<[#CategoryVo](#categoryvo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -131,7 +131,7 @@ categoryFinder.listAsTree()
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#CategoryTreeVo](#categorytreevo)>
|
||||
List\<[#CategoryTreeVo](#categorytreevo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -172,7 +172,7 @@ categoryFinder.getBreadcrumbs('category-foo')
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#CategoryVo](#categoryvo)>
|
||||
List\<[#CategoryVo](#categoryvo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -191,7 +191,7 @@ List<[#CategoryVo](#categoryvo)>
|
||||
|
||||
<CategoryVo />
|
||||
|
||||
### ListResult<CategoryVo\>
|
||||
### ListResult\<CategoryVo\>
|
||||
|
||||
```json title="ListResult<CategoryVo>"
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@ commentFinder.list(ref,page,size)
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<CommentVo\>](#listresultcommentvo)
|
||||
[#ListResult\<CommentVo\>](#listresultcommentvo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -84,7 +84,7 @@ commentFinder.listReply(commentName,page,size)
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<ReplyVo\>](#listresultreplyvo)
|
||||
[#ListResult\<ReplyVo\>](#listresultreplyvo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -103,7 +103,7 @@ commentFinder.listReply(commentName,page,size)
|
||||
|
||||
<CommentVo />
|
||||
|
||||
### ListResult<CommentVo\>
|
||||
### ListResult\<CommentVo\>
|
||||
|
||||
```json title="ListResult<CommentVo>"
|
||||
{
|
||||
@@ -125,7 +125,7 @@ commentFinder.listReply(commentName,page,size)
|
||||
|
||||
<ReplyVo />
|
||||
|
||||
### ListResult<ReplyVo\>
|
||||
### ListResult\<ReplyVo\>
|
||||
|
||||
```json title="ListResult<ReplyVo>"
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ contributorFinder.getContributors(names)
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#ContributorVo](#contributorvo)>
|
||||
List\<[#ContributorVo](#contributorvo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ postFinder.listAll();
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#ListedPostVo](#listedpostvo)>
|
||||
List\<[#ListedPostVo](#listedpostvo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -144,7 +144,7 @@ postFinder.list(page, size);
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<ListedPostVo\>](#listresultlistedpostvo)
|
||||
[#ListResult\<ListedPostVo\>](#listresultlistedpostvo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -174,7 +174,7 @@ postFinder.listByCategory(page, size, categoryName);
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<ListedPostVo\>](#listresultlistedpostvo)
|
||||
[#ListResult\<ListedPostVo\>](#listresultlistedpostvo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -204,7 +204,7 @@ postFinder.listByTag(page, size, tag);
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<ListedPostVo\>](#listresultlistedpostvo)
|
||||
[#ListResult\<ListedPostVo\>](#listresultlistedpostvo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -233,7 +233,7 @@ postFinder.archives(page, size);
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<PostArchiveVo\>](#listresultpostarchivevo)
|
||||
[#ListResult\<PostArchiveVo\>](#listresultpostarchivevo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -271,7 +271,7 @@ postFinder.archives(page, size, year);
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<PostArchiveVo\>](#listresultpostarchivevo)
|
||||
[#ListResult\<PostArchiveVo\>](#listresultpostarchivevo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -310,7 +310,7 @@ postFinder.archives(page, size, year, month);
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<PostArchiveVo\>](#listresultpostarchivevo)
|
||||
[#ListResult\<PostArchiveVo\>](#listresultpostarchivevo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -371,13 +371,13 @@ postFinder.archives(page, size, year, month);
|
||||
|
||||
### ListedPostVo
|
||||
|
||||
<ListedPostVo />
|
||||
\<ListedPostVo \/\>
|
||||
|
||||
- [#CategoryVo](#categoryvo)
|
||||
- [#TagVo](#tagvo)
|
||||
- [#ContributorVo](#contributorvo)
|
||||
|
||||
### ListResult<ListedPostVo\>
|
||||
### ListResult\<ListedPostVo\>
|
||||
|
||||
```json title="ListResult<ListedPostVo>"
|
||||
{
|
||||
@@ -411,7 +411,7 @@ postFinder.archives(page, size, year, month);
|
||||
|
||||
- [#ListedPostVo](#listedpostvo)
|
||||
|
||||
### ListResult<PostArchiveVo\>
|
||||
### ListResult\<PostArchiveVo\>
|
||||
|
||||
```json title="ListResult<PostArchiveVo>"
|
||||
{
|
||||
|
||||
@@ -77,7 +77,7 @@ singlePageFinder.list(page,size)
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<ListedSinglePageVo\>](#listresultlistedsinglepagevo)
|
||||
[#ListResult\<ListedSinglePageVo\>](#listresultlistedsinglepagevo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -104,7 +104,7 @@ singlePageFinder.list(page,size)
|
||||
|
||||
<ListedSinglePageVo />
|
||||
|
||||
### ListResult<ListedSinglePageVo\>
|
||||
### ListResult\<ListedSinglePageVo\>
|
||||
|
||||
```json title="ListResult<ListedSinglePageVo>"
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ tagFinder.getByNames(names)
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#TagVo](#tagvo)>
|
||||
List\<[#TagVo](#tagvo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -74,7 +74,7 @@ tagFinder.list(page,size)
|
||||
|
||||
### 返回值
|
||||
|
||||
[#ListResult<TagVo\>](#listresulttagvo)
|
||||
[#ListResult\<TagVo\>](#listresulttagvo)
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -102,7 +102,7 @@ tagFinder.listAll()
|
||||
|
||||
### 返回值
|
||||
|
||||
List<[#TagVo](#tagvo)>
|
||||
List\<[#TagVo](#tagvo)\>
|
||||
|
||||
### 示例
|
||||
|
||||
@@ -120,7 +120,7 @@ List<[#TagVo](#tagvo)>
|
||||
|
||||
<TagVo />
|
||||
|
||||
### ListResult<TagVo\>
|
||||
### ListResult\<TagVo\>
|
||||
|
||||
```json title="ListResult<TagVo>"
|
||||
{
|
||||
|
||||
@@ -123,7 +123,7 @@ Setting 资源的 `metadata.name` 必须和 `theme.yaml` 中的 `spec.settingNam
|
||||
|
||||
为了方便主题开发者从 1.x 迁移,我们提供了工具用于迁移设置表单配置文件。
|
||||
|
||||
工具仓库地址:<https://github.com/halo-sigs/convert-theme-config-to-next>
|
||||
工具仓库地址:[https://github.com/halo-sigs/convert-theme-config-to-next](https://github.com/halo-sigs/convert-theme-config-to-next)
|
||||
|
||||
```bash
|
||||
# 1.x 版本主题
|
||||
|
||||
@@ -22,7 +22,7 @@ import ListedPostVo from "../vo/_ListedPostVo.md";
|
||||
|
||||
#### 变量类型
|
||||
|
||||
[#UrlContextListResult<PostArchiveVo\>](#urlcontextlistresultpostarchivevo)
|
||||
[#UrlContextListResult\<PostArchiveVo\>](#urlcontextlistresultpostarchivevo)
|
||||
|
||||
#### 示例
|
||||
|
||||
@@ -65,7 +65,7 @@ import ListedPostVo from "../vo/_ListedPostVo.md";
|
||||
|
||||
### ListedPostVo
|
||||
|
||||
<ListedPostVo />
|
||||
\<ListedPostVo \/\>
|
||||
|
||||
- [#CategoryVo](#categoryvo)
|
||||
- [#TagVo](#tagvo)
|
||||
@@ -87,7 +87,7 @@ import ListedPostVo from "../vo/_ListedPostVo.md";
|
||||
|
||||
- [#ListedPostVo](#listedpostvo)
|
||||
|
||||
### UrlContextListResult<PostArchiveVo\>
|
||||
### UrlContextListResult\<PostArchiveVo\>
|
||||
|
||||
```json title="UrlContextListResult<PostArchiveVo>"
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
#### 变量类型
|
||||
|
||||
[#UrlContextListResult<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
[#UrlContextListResult\<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
|
||||
#### 示例
|
||||
|
||||
@@ -77,13 +77,13 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
### ListedPostVo
|
||||
|
||||
<ListedPostVo />
|
||||
\<ListedPostVo \/\>
|
||||
|
||||
- [#CategoryVo](#categoryvo)
|
||||
- [#TagVo](#tagvo)
|
||||
- [#ContributorVo](#contributorvo)
|
||||
|
||||
### UrlContextListResult<ListedPostVo\>
|
||||
### UrlContextListResult\<ListedPostVo\>
|
||||
|
||||
```json title="UrlContextListResult<ListedPostVo>"
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ import CategoryTreeVo from "../vo/_CategoryTreeVo.md"
|
||||
|
||||
#### 变量类型
|
||||
|
||||
List<[#CategoryTreeVo](#categorytreevo)>
|
||||
List\<[#CategoryTreeVo](#categorytreevo)\>
|
||||
|
||||
#### 示例
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
#### 变量类型
|
||||
|
||||
[#UrlContextListResult<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
[#UrlContextListResult\<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
|
||||
#### 示例
|
||||
|
||||
@@ -78,13 +78,13 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
### ListedPostVo
|
||||
|
||||
<ListedPostVo />
|
||||
\<ListedPostVo \/\>
|
||||
|
||||
- [#CategoryVo](#categoryvo)
|
||||
- [#TagVo](#tagvo)
|
||||
- [#ContributorVo](#contributorvo)
|
||||
|
||||
### UrlContextListResult<ListedPostVo\>
|
||||
### UrlContextListResult\<ListedPostVo\>
|
||||
|
||||
```json title="UrlContextListResult<ListedPostVo>"
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
#### 变量类型
|
||||
|
||||
[#UrlContextListResult<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
[#UrlContextListResult\<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
|
||||
#### 示例
|
||||
|
||||
@@ -71,13 +71,13 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
### ListedPostVo
|
||||
|
||||
<ListedPostVo />
|
||||
\<ListedPostVo \/\>
|
||||
|
||||
- [#CategoryVo](#categoryvo)
|
||||
- [#TagVo](#tagvo)
|
||||
- [#ContributorVo](#contributorvo)
|
||||
|
||||
### UrlContextListResult<ListedPostVo\>
|
||||
### UrlContextListResult\<ListedPostVo\>
|
||||
|
||||
```json title="UrlContextListResult<ListedPostVo>"
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
#### 变量类型
|
||||
|
||||
[#UrlContextListResult<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
[#UrlContextListResult\<ListedPostVo\>](#urlcontextlistresultlistedpostvo)
|
||||
|
||||
#### 示例
|
||||
|
||||
@@ -78,13 +78,13 @@ import ListedPostVo from "../vo/_ListedPostVo.md"
|
||||
|
||||
### ListedPostVo
|
||||
|
||||
<ListedPostVo />
|
||||
\<ListedPostVo \/\>
|
||||
|
||||
- [#CategoryVo](#categoryvo)
|
||||
- [#TagVo](#tagvo)
|
||||
- [#ContributorVo](#contributorvo)
|
||||
|
||||
### UrlContextListResult<ListedPostVo\>
|
||||
### UrlContextListResult\<ListedPostVo\>
|
||||
|
||||
```json title="UrlContextListResult<ListedPostVo>"
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ import TagVo from '../vo/_TagVo.md'
|
||||
|
||||
#### 变量类型
|
||||
|
||||
List<[#TagVo](#tagvo)>
|
||||
List\<[#TagVo](#tagvo)\>
|
||||
|
||||
#### 示例
|
||||
|
||||
|
||||
Reference in New Issue
Block a user