You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
170 lines
5.0 KiB
170 lines
5.0 KiB
/**
|
|
* Creating a sidebar enables you to:
|
|
- create an ordered group of docs
|
|
- render a sidebar for each doc of that group
|
|
- provide next/previous navigation
|
|
|
|
The sidebars can be generated from the filesystem, or explicitly defined here.
|
|
|
|
Create as many sidebars as you want.
|
|
*/
|
|
|
|
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
|
module.exports = {
|
|
// By default, Docusaurus generates a sidebar from the docs folder structure
|
|
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
|
|
|
tutorialSidebar: [
|
|
"intro",
|
|
{
|
|
type: "category",
|
|
label: "入门",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
collapsed: false,
|
|
items: [
|
|
"getting-started/prepare",
|
|
{
|
|
type: "category",
|
|
label: "安装指南",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
items: [
|
|
"getting-started/install/docker-compose",
|
|
"getting-started/install/docker",
|
|
{
|
|
type: "category",
|
|
label: "其他指南",
|
|
items: ["getting-started/install/other/oneinstack"],
|
|
},
|
|
"getting-started/install/third-party",
|
|
],
|
|
},
|
|
"getting-started/migrate-from-1.x",
|
|
"getting-started/first-post",
|
|
// "getting-started/config",
|
|
// "getting-started/upgrade",
|
|
// "getting-started/downloads",
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "用户指南",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
items: [
|
|
"user-guide/common",
|
|
"user-guide/posts",
|
|
"user-guide/pages",
|
|
"user-guide/attachments",
|
|
"user-guide/themes",
|
|
"user-guide/plugins",
|
|
"user-guide/users",
|
|
"user-guide/settings",
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "开发者指南",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
items: [
|
|
{
|
|
type: "category",
|
|
label: "系统开发",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
items: [
|
|
// "developer-guide/core/structure",
|
|
"developer-guide/core/prepare",
|
|
"developer-guide/core/run",
|
|
// "developer-guide/core/code-style",
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "插件开发",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
items: ["developer-guide/plugin/prepare"],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "主题开发",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
items: [
|
|
"developer-guide/theme/prepare",
|
|
"developer-guide/theme/config",
|
|
"developer-guide/theme/structure",
|
|
"developer-guide/theme/template-route-mapping",
|
|
"developer-guide/theme/static-resources",
|
|
"developer-guide/theme/settings",
|
|
{
|
|
type: "category",
|
|
label: "模板变量",
|
|
link: {
|
|
type: "doc",
|
|
id: "developer-guide/theme/template-variables",
|
|
},
|
|
items: [
|
|
"developer-guide/theme/template-variables/index_",
|
|
"developer-guide/theme/template-variables/post",
|
|
"developer-guide/theme/template-variables/page",
|
|
"developer-guide/theme/template-variables/archives",
|
|
"developer-guide/theme/template-variables/tags",
|
|
"developer-guide/theme/template-variables/tag",
|
|
"developer-guide/theme/template-variables/categories",
|
|
"developer-guide/theme/template-variables/category",
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "Finder API",
|
|
link: {
|
|
type: "doc",
|
|
id: "developer-guide/theme/finder-apis",
|
|
},
|
|
items: [
|
|
"developer-guide/theme/finder-apis/category",
|
|
"developer-guide/theme/finder-apis/tag",
|
|
"developer-guide/theme/finder-apis/post",
|
|
"developer-guide/theme/finder-apis/single-page",
|
|
"developer-guide/theme/finder-apis/comment",
|
|
"developer-guide/theme/finder-apis/contributor",
|
|
"developer-guide/theme/finder-apis/menu",
|
|
"developer-guide/theme/finder-apis/site-stats",
|
|
"developer-guide/theme/finder-apis/theme",
|
|
"developer-guide/theme/finder-apis/plugin",
|
|
],
|
|
},
|
|
"developer-guide/theme/code-snippets",
|
|
],
|
|
},
|
|
"developer-guide/form-schema",
|
|
// {
|
|
// type: "link",
|
|
// label: "REST API",
|
|
// href: "https://api.halo.run",
|
|
// },
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "参与贡献",
|
|
link: {
|
|
type: "generated-index",
|
|
},
|
|
items: ["contribution/issue", "contribution/pr"],
|
|
},
|
|
"about",
|
|
],
|
|
};
|