mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-20 17:54:01 +00:00
chore: bump docusaurus to 2.1.0 (#91)
升级 docusaurus 到 2.1.0 - https://github.com/facebook/docusaurus/releases/tag/v2.0.0 - https://github.com/facebook/docusaurus/releases/tag/v2.1.0 ```release-note none ```
This commit is contained in:
@@ -4,267 +4,266 @@ const katex = require("rehype-katex");
|
|||||||
const mermaid = require("mdx-mermaid");
|
const mermaid = require("mdx-mermaid");
|
||||||
const VersionsArchived = require("./versionsArchived.json");
|
const VersionsArchived = require("./versionsArchived.json");
|
||||||
|
|
||||||
// With JSDoc @type annotations, IDEs can provide config autocompletion
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
const config = {
|
||||||
(
|
title: "Halo Documents",
|
||||||
module.exports = {
|
tagline: "Halo 博客系统的文档站点",
|
||||||
title: "Halo Documents",
|
url: "https://docs.halo.run",
|
||||||
tagline: "Halo 博客系统的文档站点",
|
baseUrl: "/",
|
||||||
url: "https://docs.halo.run",
|
onBrokenLinks: "warn",
|
||||||
baseUrl: "/",
|
onBrokenMarkdownLinks: "warn",
|
||||||
onBrokenLinks: "throw",
|
favicon: "img/favicon-96x96.png",
|
||||||
onBrokenMarkdownLinks: "warn",
|
i18n: {
|
||||||
favicon: "img/favicon-96x96.png",
|
defaultLocale: "zh-Hans",
|
||||||
i18n: {
|
locales: ["zh-Hans"],
|
||||||
defaultLocale: "zh-Hans",
|
},
|
||||||
locales: ["zh-Hans"],
|
organizationName: "halo-dev", // Usually your GitHub org/user name.
|
||||||
},
|
projectName: "halo", // Usually your repo name.
|
||||||
organizationName: "halo-dev", // Usually your GitHub org/user name.
|
|
||||||
projectName: "halo", // Usually your repo name.
|
|
||||||
|
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
"@docusaurus/preset-classic",
|
"classic",
|
||||||
/** @type {import('@docusaurus/preset-classic').Options} */
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
||||||
({
|
|
||||||
docs: {
|
|
||||||
sidebarPath: require.resolve("./sidebars.js"),
|
|
||||||
// Please change this to your repo.
|
|
||||||
editUrl: "https://github.com/halo-dev/docs/edit/main/",
|
|
||||||
routeBasePath: "/",
|
|
||||||
showLastUpdateTime: true,
|
|
||||||
showLastUpdateAuthor: true,
|
|
||||||
remarkPlugins: [math, mermaid],
|
|
||||||
rehypePlugins: [katex],
|
|
||||||
},
|
|
||||||
blog: false,
|
|
||||||
theme: {
|
|
||||||
customCss: require.resolve("./src/css/custom.css"),
|
|
||||||
},
|
|
||||||
sitemap: {
|
|
||||||
changefreq: "weekly",
|
|
||||||
priority: 0.5,
|
|
||||||
},
|
|
||||||
googleAnalytics: {
|
|
||||||
trackingID: "UA-110780416-7",
|
|
||||||
},
|
|
||||||
gtag: {
|
|
||||||
trackingID: "UA-110780416-7",
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
themeConfig:
|
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
||||||
({
|
({
|
||||||
navbar: {
|
docs: {
|
||||||
title: "Halo Documents",
|
sidebarPath: require.resolve("./sidebars.js"),
|
||||||
logo: {
|
// Please change this to your repo.
|
||||||
alt: "Halo Logo",
|
editUrl: "https://github.com/halo-dev/docs/edit/main/",
|
||||||
src: "https://halo.run/upload/2021/03/Adaptive256-463ca9b92e2d40268431018c07735842.png",
|
routeBasePath: "/",
|
||||||
},
|
showLastUpdateTime: true,
|
||||||
items: [
|
showLastUpdateAuthor: true,
|
||||||
{
|
remarkPlugins: [math, mermaid],
|
||||||
href: "https://halo.run",
|
rehypePlugins: [katex],
|
||||||
label: "官网",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
href: "https://bbs.halo.run",
|
|
||||||
label: "论坛",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "docsVersionDropdown",
|
|
||||||
position: "right",
|
|
||||||
dropdownActiveClassDisabled: true,
|
|
||||||
dropdownItemsAfter: [
|
|
||||||
...Object.entries(VersionsArchived).map(
|
|
||||||
([versionName, versionUrl]) => ({
|
|
||||||
label: versionName,
|
|
||||||
href: versionUrl,
|
|
||||||
})
|
|
||||||
),
|
|
||||||
{
|
|
||||||
to: "/versions",
|
|
||||||
label: "All versions",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
href: "https://github.com/halo-dev/halo",
|
|
||||||
label: "GitHub",
|
|
||||||
position: "right",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
href: "https://gitee.com/halo-dev/halo",
|
|
||||||
label: "Gitee",
|
|
||||||
position: "right",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
footer: {
|
blog: false,
|
||||||
style: "dark",
|
theme: {
|
||||||
copyright: `Copyright © 2022 <a target="_blank" href="https://www.fit2cloud.com/">FIT2CLOUD 飞致云</a>. Built with Docusaurus.`,
|
customCss: require.resolve("./src/css/custom.css"),
|
||||||
links: [
|
|
||||||
{
|
|
||||||
title: "关于",
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
label: "官网",
|
|
||||||
href: "https://halo.run",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "主题仓库",
|
|
||||||
href: "https://halo.run/themes.html",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "GitHub 组织",
|
|
||||||
href: "https://github.com/halo-dev",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Gitee 组织",
|
|
||||||
href: "https://gitee.com/halo-dev",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Server Status",
|
|
||||||
href: "https://status.halo.run",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "社区",
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
label: "官方论坛",
|
|
||||||
href: "https://bbs.halo.run",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "微信公众号",
|
|
||||||
href: "https://halo.run/upload/2021/03/B3C27F16-4890-4633-81CC-20BA4B28F94F-2415126255c749b290312ca22d9bdeb0.jpeg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "微信群申请",
|
|
||||||
href: "https://wj.qq.com/s2/8434455/9170/",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "GitHub Issues",
|
|
||||||
href: "https://github.com/halo-dev/halo/issues",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Telegram Channel",
|
|
||||||
href: "https://t.me/halo_dev",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Telegram Group",
|
|
||||||
href: "https://t.me/HaloBlog",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
prism: {
|
sitemap: {
|
||||||
theme: darkCodeTheme,
|
changefreq: "weekly",
|
||||||
darkTheme: darkCodeTheme,
|
priority: 0.5,
|
||||||
},
|
},
|
||||||
algolia: {
|
googleAnalytics: {
|
||||||
apiKey: "739f2a55c6d13d93af146c22a4885669",
|
trackingID: "UA-110780416-7",
|
||||||
indexName: "docs",
|
},
|
||||||
contextualSearch: true,
|
gtag: {
|
||||||
appId: "OG53LY1OQH",
|
trackingID: "UA-110780416-7",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
plugins: [
|
],
|
||||||
[
|
],
|
||||||
"@docusaurus/plugin-client-redirects",
|
|
||||||
{
|
themeConfig:
|
||||||
redirects: [
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
{
|
({
|
||||||
to: "/getting-started/install/linux",
|
navbar: {
|
||||||
from: [
|
title: "Halo Documents",
|
||||||
"/zh/install",
|
logo: {
|
||||||
"/install",
|
alt: "Halo Logo",
|
||||||
"/zh/install/index",
|
src: "https://halo.run/upload/2021/03/Adaptive256-463ca9b92e2d40268431018c07735842.png",
|
||||||
"/install/index",
|
|
||||||
"/zh/install/linux",
|
|
||||||
"/install/linux",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/install/docker",
|
|
||||||
from: ["/zh/install/docker", "/install/docker"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/install/other/bt-panel",
|
|
||||||
from: ["/zh/install/bt-panel", "/install/bt-panel"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/install/other/oneinstack",
|
|
||||||
from: ["/zh/install/oneinstack", "/install/oneinstack"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/install/other/tencent-cloudbase",
|
|
||||||
from: [
|
|
||||||
"/zh/install/tencent-cloudbase",
|
|
||||||
"/install/tencent-cloudbase",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/prepare",
|
|
||||||
from: ["/zh/install/prepare", "/install/prepare"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/config",
|
|
||||||
from: ["/zh/install/config", "/install/config"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/upgrade",
|
|
||||||
from: ["/zh/install/upgrade", "/install/upgrade"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/getting-started/downloads",
|
|
||||||
from: ["/zh/install/downloads", "/install/downloads"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/user-guide/backup-migration",
|
|
||||||
from: ["/zh/user-guide/backup-migration"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/user-guide/markdown",
|
|
||||||
from: ["/zh/user-guide/markdown"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/developer-guide/core/structure",
|
|
||||||
from: ["/zh/developer-guide/core", "/developer-guide/core"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/developer-guide/theme/prepare",
|
|
||||||
from: ["/zh/developer-guide/theme", "/developer-guide/theme"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/contribution/issue",
|
|
||||||
from: ["/zh/contribution/issue"],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
to: "/contribution/pr",
|
|
||||||
from: ["/zh/contribution/pr"],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
items: [
|
||||||
],
|
{
|
||||||
scripts: [
|
href: "https://halo.run",
|
||||||
|
label: "官网",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
href: "https://bbs.halo.run",
|
||||||
|
label: "论坛",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "docsVersionDropdown",
|
||||||
|
position: "right",
|
||||||
|
dropdownActiveClassDisabled: true,
|
||||||
|
dropdownItemsAfter: [
|
||||||
|
...Object.entries(VersionsArchived).map(
|
||||||
|
([versionName, versionUrl]) => ({
|
||||||
|
label: versionName,
|
||||||
|
href: versionUrl,
|
||||||
|
})
|
||||||
|
),
|
||||||
|
{
|
||||||
|
to: "/versions",
|
||||||
|
label: "All versions",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
href: "https://github.com/halo-dev/halo",
|
||||||
|
label: "GitHub",
|
||||||
|
position: "right",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
href: "https://gitee.com/halo-dev/halo",
|
||||||
|
label: "Gitee",
|
||||||
|
position: "right",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
style: "dark",
|
||||||
|
copyright: `Copyright © 2022 <a target="_blank" href="https://www.fit2cloud.com/">FIT2CLOUD 飞致云</a>. Built with Docusaurus.`,
|
||||||
|
links: [
|
||||||
|
{
|
||||||
|
title: "关于",
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
label: "官网",
|
||||||
|
href: "https://halo.run",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "主题仓库",
|
||||||
|
href: "https://halo.run/themes.html",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "GitHub 组织",
|
||||||
|
href: "https://github.com/halo-dev",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Gitee 组织",
|
||||||
|
href: "https://gitee.com/halo-dev",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Server Status",
|
||||||
|
href: "https://status.halo.run",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "社区",
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
label: "官方论坛",
|
||||||
|
href: "https://bbs.halo.run",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "微信公众号",
|
||||||
|
href: "https://halo.run/upload/2021/03/B3C27F16-4890-4633-81CC-20BA4B28F94F-2415126255c749b290312ca22d9bdeb0.jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "微信群申请",
|
||||||
|
href: "https://wj.qq.com/s2/8434455/9170/",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "GitHub Issues",
|
||||||
|
href: "https://github.com/halo-dev/halo/issues",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Telegram Channel",
|
||||||
|
href: "https://t.me/halo_dev",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Telegram Group",
|
||||||
|
href: "https://t.me/HaloBlog",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
prism: {
|
||||||
|
theme: darkCodeTheme,
|
||||||
|
darkTheme: darkCodeTheme,
|
||||||
|
},
|
||||||
|
algolia: {
|
||||||
|
apiKey: "739f2a55c6d13d93af146c22a4885669",
|
||||||
|
indexName: "docs",
|
||||||
|
contextualSearch: true,
|
||||||
|
appId: "OG53LY1OQH",
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
plugins: [
|
||||||
|
[
|
||||||
|
"@docusaurus/plugin-client-redirects",
|
||||||
{
|
{
|
||||||
src: "https://analytics.halo.run/umami.js",
|
redirects: [
|
||||||
async: true,
|
{
|
||||||
defer: true,
|
to: "/getting-started/install/linux",
|
||||||
"data-website-id": "7e8d48ad-973d-4b44-b36d-ea1f1df25baa",
|
from: [
|
||||||
|
"/zh/install",
|
||||||
|
"/install",
|
||||||
|
"/zh/install/index",
|
||||||
|
"/install/index",
|
||||||
|
"/zh/install/linux",
|
||||||
|
"/install/linux",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/install/docker",
|
||||||
|
from: ["/zh/install/docker", "/install/docker"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/install/other/bt-panel",
|
||||||
|
from: ["/zh/install/bt-panel", "/install/bt-panel"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/install/other/oneinstack",
|
||||||
|
from: ["/zh/install/oneinstack", "/install/oneinstack"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/install/other/tencent-cloudbase",
|
||||||
|
from: [
|
||||||
|
"/zh/install/tencent-cloudbase",
|
||||||
|
"/install/tencent-cloudbase",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/prepare",
|
||||||
|
from: ["/zh/install/prepare", "/install/prepare"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/config",
|
||||||
|
from: ["/zh/install/config", "/install/config"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/upgrade",
|
||||||
|
from: ["/zh/install/upgrade", "/install/upgrade"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/getting-started/downloads",
|
||||||
|
from: ["/zh/install/downloads", "/install/downloads"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/user-guide/backup-migration",
|
||||||
|
from: ["/zh/user-guide/backup-migration"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/user-guide/markdown",
|
||||||
|
from: ["/zh/user-guide/markdown"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/developer-guide/core/structure",
|
||||||
|
from: ["/zh/developer-guide/core", "/developer-guide/core"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/developer-guide/theme/prepare",
|
||||||
|
from: ["/zh/developer-guide/theme", "/developer-guide/theme"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/contribution/issue",
|
||||||
|
from: ["/zh/contribution/issue"],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
to: "/contribution/pr",
|
||||||
|
from: ["/zh/contribution/pr"],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
stylesheets: [
|
],
|
||||||
{
|
scripts: [
|
||||||
href: "https://unpkg.com/katex@0.12.0/dist/katex.min.css",
|
{
|
||||||
type: "text/css",
|
src: "https://analytics.halo.run/umami.js",
|
||||||
},
|
async: true,
|
||||||
],
|
defer: true,
|
||||||
}
|
"data-website-id": "7e8d48ad-973d-4b44-b36d-ea1f1df25baa",
|
||||||
);
|
},
|
||||||
|
],
|
||||||
|
stylesheets: [
|
||||||
|
{
|
||||||
|
href: "https://unpkg.com/katex@0.12.0/dist/katex.min.css",
|
||||||
|
type: "text/css",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
|
@@ -25,13 +25,25 @@
|
|||||||
"message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。",
|
"message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。",
|
||||||
"description": "The 2nd paragraph of the 404 page"
|
"description": "The 2nd paragraph of the 404 page"
|
||||||
},
|
},
|
||||||
"theme.AnnouncementBar.closeButtonAriaLabel": {
|
"theme.admonition.note": {
|
||||||
"message": "关闭",
|
"message": "备注",
|
||||||
"description": "The ARIA label for close button of announcement bar"
|
"description": "The default label used for the Note admonition (:::note)"
|
||||||
},
|
},
|
||||||
"theme.BackToTopButton.buttonAriaLabel": {
|
"theme.admonition.tip": {
|
||||||
"message": "回到顶部",
|
"message": "提示",
|
||||||
"description": "The ARIA label for the back to top button"
|
"description": "The default label used for the Tip admonition (:::tip)"
|
||||||
|
},
|
||||||
|
"theme.admonition.danger": {
|
||||||
|
"message": "危险",
|
||||||
|
"description": "The default label used for the Danger admonition (:::danger)"
|
||||||
|
},
|
||||||
|
"theme.admonition.info": {
|
||||||
|
"message": "信息",
|
||||||
|
"description": "The default label used for the Info admonition (:::info)"
|
||||||
|
},
|
||||||
|
"theme.admonition.caution": {
|
||||||
|
"message": "警告",
|
||||||
|
"description": "The default label used for the Caution admonition (:::caution)"
|
||||||
},
|
},
|
||||||
"theme.blog.archive.title": {
|
"theme.blog.archive.title": {
|
||||||
"message": "历史博文",
|
"message": "历史博文",
|
||||||
@@ -41,17 +53,9 @@
|
|||||||
"message": "历史博文",
|
"message": "历史博文",
|
||||||
"description": "The page & hero description of the blog archive page"
|
"description": "The page & hero description of the blog archive page"
|
||||||
},
|
},
|
||||||
"theme.blog.post.readingTime.plurals": {
|
"theme.BackToTopButton.buttonAriaLabel": {
|
||||||
"message": "{readingTime} 分钟阅读",
|
"message": "回到顶部",
|
||||||
"description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
"description": "The ARIA label for the back to top button"
|
||||||
},
|
|
||||||
"theme.blog.post.readMoreLabel": {
|
|
||||||
"message": "阅读 {title} 的全文",
|
|
||||||
"description": "The ARIA label for the link to full blog posts from excerpts"
|
|
||||||
},
|
|
||||||
"theme.blog.post.readMore": {
|
|
||||||
"message": "阅读更多",
|
|
||||||
"description": "The label used in blog post item excerpts to link to full blog posts"
|
|
||||||
},
|
},
|
||||||
"theme.blog.paginator.navAriaLabel": {
|
"theme.blog.paginator.navAriaLabel": {
|
||||||
"message": "博文列表分页导航",
|
"message": "博文列表分页导航",
|
||||||
@@ -77,10 +81,6 @@
|
|||||||
"message": "较旧一篇",
|
"message": "较旧一篇",
|
||||||
"description": "The blog post button label to navigate to the older/next post"
|
"description": "The blog post button label to navigate to the older/next post"
|
||||||
},
|
},
|
||||||
"theme.blog.sidebar.navAriaLabel": {
|
|
||||||
"message": "最近博文导航",
|
|
||||||
"description": "The ARIA label for recent posts in the blog sidebar"
|
|
||||||
},
|
|
||||||
"theme.blog.post.plurals": {
|
"theme.blog.post.plurals": {
|
||||||
"message": "{count} 篇博文",
|
"message": "{count} 篇博文",
|
||||||
"description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
"description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
||||||
@@ -93,18 +93,6 @@
|
|||||||
"message": "查看所有标签",
|
"message": "查看所有标签",
|
||||||
"description": "The label of the link targeting the tag list page"
|
"description": "The label of the link targeting the tag list page"
|
||||||
},
|
},
|
||||||
"theme.CodeBlock.copyButtonAriaLabel": {
|
|
||||||
"message": "复制代码到剪贴板",
|
|
||||||
"description": "The ARIA label for copy code blocks button"
|
|
||||||
},
|
|
||||||
"theme.CodeBlock.copied": {
|
|
||||||
"message": "复制成功",
|
|
||||||
"description": "The copied button label on code blocks"
|
|
||||||
},
|
|
||||||
"theme.CodeBlock.copy": {
|
|
||||||
"message": "复制",
|
|
||||||
"description": "The copy button label on code blocks"
|
|
||||||
},
|
|
||||||
"theme.colorToggle.ariaLabel": {
|
"theme.colorToggle.ariaLabel": {
|
||||||
"message": "切换浅色/暗黑模式(当前为{mode})",
|
"message": "切换浅色/暗黑模式(当前为{mode})",
|
||||||
"description": "The ARIA label for the navbar color mode toggle"
|
"description": "The ARIA label for the navbar color mode toggle"
|
||||||
@@ -117,18 +105,18 @@
|
|||||||
"message": "浅色模式",
|
"message": "浅色模式",
|
||||||
"description": "The name for the light color mode"
|
"description": "The name for the light color mode"
|
||||||
},
|
},
|
||||||
|
"theme.docs.breadcrumbs.home": {
|
||||||
|
"message": "主页面",
|
||||||
|
"description": "The ARIA label for the home page in the breadcrumbs"
|
||||||
|
},
|
||||||
|
"theme.docs.breadcrumbs.navAriaLabel": {
|
||||||
|
"message": "页面路径",
|
||||||
|
"description": "The ARIA label for the breadcrumbs"
|
||||||
|
},
|
||||||
"theme.docs.DocCard.categoryDescription": {
|
"theme.docs.DocCard.categoryDescription": {
|
||||||
"message": "{count} 个项目",
|
"message": "{count} 个项目",
|
||||||
"description": "The default description for a category card in the generated index about how many items this category includes"
|
"description": "The default description for a category card in the generated index about how many items this category includes"
|
||||||
},
|
},
|
||||||
"theme.docs.sidebar.expandButtonTitle": {
|
|
||||||
"message": "展开侧边栏",
|
|
||||||
"description": "The ARIA label and title attribute for expand button of doc sidebar"
|
|
||||||
},
|
|
||||||
"theme.docs.sidebar.expandButtonAriaLabel": {
|
|
||||||
"message": "展开侧边栏",
|
|
||||||
"description": "The ARIA label and title attribute for expand button of doc sidebar"
|
|
||||||
},
|
|
||||||
"theme.docs.paginator.navAriaLabel": {
|
"theme.docs.paginator.navAriaLabel": {
|
||||||
"message": "文档分页导航",
|
"message": "文档分页导航",
|
||||||
"description": "The ARIA label for the docs pagination"
|
"description": "The ARIA label for the docs pagination"
|
||||||
@@ -141,24 +129,12 @@
|
|||||||
"message": "下一页",
|
"message": "下一页",
|
||||||
"description": "The label used to navigate to the next doc"
|
"description": "The label used to navigate to the next doc"
|
||||||
},
|
},
|
||||||
"theme.docs.sidebar.collapseButtonTitle": {
|
|
||||||
"message": "收起侧边栏",
|
|
||||||
"description": "The title attribute for collapse button of doc sidebar"
|
|
||||||
},
|
|
||||||
"theme.docs.sidebar.collapseButtonAriaLabel": {
|
|
||||||
"message": "收起侧边栏",
|
|
||||||
"description": "The title attribute for collapse button of doc sidebar"
|
|
||||||
},
|
|
||||||
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": {
|
|
||||||
"message": "打开/收起侧边栏菜单「{label}」",
|
|
||||||
"description": "The ARIA label to toggle the collapsible sidebar category"
|
|
||||||
},
|
|
||||||
"theme.docs.tagDocListPageTitle.nDocsTagged": {
|
"theme.docs.tagDocListPageTitle.nDocsTagged": {
|
||||||
"message": "{count} 篇文档带有标签",
|
"message": "{count} 篇文档带有标签",
|
||||||
"description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
"description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
||||||
},
|
},
|
||||||
"theme.docs.tagDocListPageTitle": {
|
"theme.docs.tagDocListPageTitle": {
|
||||||
"message": "{nDocsTagged} 篇带有标签「{tagName}」",
|
"message": "{nDocsTagged}「{tagName}」",
|
||||||
"description": "The title of the page for a docs tag"
|
"description": "The title of the page for a docs tag"
|
||||||
},
|
},
|
||||||
"theme.docs.versionBadge.label": {
|
"theme.docs.versionBadge.label": {
|
||||||
@@ -200,10 +176,6 @@
|
|||||||
"message": "最后{byUser}{atDate}更新",
|
"message": "最后{byUser}{atDate}更新",
|
||||||
"description": "The sentence used to display when a page has been last updated, and by who"
|
"description": "The sentence used to display when a page has been last updated, and by who"
|
||||||
},
|
},
|
||||||
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
|
|
||||||
"message": "← 回到主菜单",
|
|
||||||
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
|
|
||||||
},
|
|
||||||
"theme.navbar.mobileVersionsDropdown.label": {
|
"theme.navbar.mobileVersionsDropdown.label": {
|
||||||
"message": "选择版本",
|
"message": "选择版本",
|
||||||
"description": "The label for the navbar versions dropdown on mobile view"
|
"description": "The label for the navbar versions dropdown on mobile view"
|
||||||
@@ -212,25 +184,174 @@
|
|||||||
"message": "跳到主要内容",
|
"message": "跳到主要内容",
|
||||||
"description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
|
"description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
|
||||||
},
|
},
|
||||||
"theme.TOCCollapsible.toggleButtonLabel": {
|
|
||||||
"message": "本页总览",
|
|
||||||
"description": "The label used by the button on the collapsible TOC component"
|
|
||||||
},
|
|
||||||
"theme.tags.tagsListLabel": {
|
"theme.tags.tagsListLabel": {
|
||||||
"message": "标签:",
|
"message": "标签:",
|
||||||
"description": "The label alongside a tag list"
|
"description": "The label alongside a tag list"
|
||||||
},
|
},
|
||||||
|
"theme.AnnouncementBar.closeButtonAriaLabel": {
|
||||||
|
"message": "关闭",
|
||||||
|
"description": "The ARIA label for close button of announcement bar"
|
||||||
|
},
|
||||||
|
"theme.blog.sidebar.navAriaLabel": {
|
||||||
|
"message": "最近博文导航",
|
||||||
|
"description": "The ARIA label for recent posts in the blog sidebar"
|
||||||
|
},
|
||||||
|
"theme.CodeBlock.copied": {
|
||||||
|
"message": "复制成功",
|
||||||
|
"description": "The copied button label on code blocks"
|
||||||
|
},
|
||||||
|
"theme.CodeBlock.copyButtonAriaLabel": {
|
||||||
|
"message": "复制代码到剪贴板",
|
||||||
|
"description": "The ARIA label for copy code blocks button"
|
||||||
|
},
|
||||||
|
"theme.CodeBlock.copy": {
|
||||||
|
"message": "复制",
|
||||||
|
"description": "The copy button label on code blocks"
|
||||||
|
},
|
||||||
|
"theme.CodeBlock.wordWrapToggle": {
|
||||||
|
"message": "切换自动换行",
|
||||||
|
"description": "The title attribute for toggle word wrapping button of code block lines"
|
||||||
|
},
|
||||||
|
"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": {
|
||||||
|
"message": "打开/收起侧边栏菜单「{label}」",
|
||||||
|
"description": "The ARIA label to toggle the collapsible sidebar category"
|
||||||
|
},
|
||||||
"theme.navbar.mobileLanguageDropdown.label": {
|
"theme.navbar.mobileLanguageDropdown.label": {
|
||||||
"message": "选择语言",
|
"message": "选择语言",
|
||||||
"description": "The label for the mobile language switcher dropdown"
|
"description": "The label for the mobile language switcher dropdown"
|
||||||
},
|
},
|
||||||
"theme.SearchBar.seeAll": {
|
"theme.TOCCollapsible.toggleButtonLabel": {
|
||||||
"message": "查看全部 {count} 个结果"
|
"message": "本页总览",
|
||||||
|
"description": "The label used by the button on the collapsible TOC component"
|
||||||
|
},
|
||||||
|
"theme.blog.post.readingTime.plurals": {
|
||||||
|
"message": "阅读需 {readingTime} 分钟",
|
||||||
|
"description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
||||||
|
},
|
||||||
|
"theme.blog.post.readMore": {
|
||||||
|
"message": "阅读更多",
|
||||||
|
"description": "The label used in blog post item excerpts to link to full blog posts"
|
||||||
|
},
|
||||||
|
"theme.blog.post.readMoreLabel": {
|
||||||
|
"message": "阅读 {title} 的全文",
|
||||||
|
"description": "The ARIA label for the link to full blog posts from excerpts"
|
||||||
|
},
|
||||||
|
"theme.docs.sidebar.collapseButtonTitle": {
|
||||||
|
"message": "收起侧边栏",
|
||||||
|
"description": "The title attribute for collapse button of doc sidebar"
|
||||||
|
},
|
||||||
|
"theme.docs.sidebar.collapseButtonAriaLabel": {
|
||||||
|
"message": "收起侧边栏",
|
||||||
|
"description": "The title attribute for collapse button of doc sidebar"
|
||||||
|
},
|
||||||
|
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
|
||||||
|
"message": "← 回到主菜单",
|
||||||
|
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
|
||||||
|
},
|
||||||
|
"theme.docs.sidebar.expandButtonTitle": {
|
||||||
|
"message": "展开侧边栏",
|
||||||
|
"description": "The ARIA label and title attribute for expand button of doc sidebar"
|
||||||
|
},
|
||||||
|
"theme.docs.sidebar.expandButtonAriaLabel": {
|
||||||
|
"message": "展开侧边栏",
|
||||||
|
"description": "The ARIA label and title attribute for expand button of doc sidebar"
|
||||||
},
|
},
|
||||||
"theme.SearchBar.label": {
|
"theme.SearchBar.label": {
|
||||||
"message": "搜索",
|
"message": "搜索",
|
||||||
"description": "The ARIA label and placeholder for search button"
|
"description": "The ARIA label and placeholder for search button"
|
||||||
},
|
},
|
||||||
|
"theme.SearchModal.searchBox.resetButtonTitle": {
|
||||||
|
"message": "清除查询",
|
||||||
|
"description": "The label and ARIA label for search box reset button"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.searchBox.cancelButtonText": {
|
||||||
|
"message": "取消",
|
||||||
|
"description": "The label and ARIA label for search box cancel button"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.startScreen.recentSearchesTitle": {
|
||||||
|
"message": "最近搜索",
|
||||||
|
"description": "The title for recent searches"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.startScreen.noRecentSearchesText": {
|
||||||
|
"message": "没有最近搜索",
|
||||||
|
"description": "The text when no recent searches"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
|
||||||
|
"message": "保存这个搜索",
|
||||||
|
"description": "The label for save recent search button"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
|
||||||
|
"message": "从历史记录中删除这个搜索",
|
||||||
|
"description": "The label for remove recent search button"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.startScreen.favoriteSearchesTitle": {
|
||||||
|
"message": "收藏",
|
||||||
|
"description": "The title for favorite searches"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
|
||||||
|
"message": "从收藏列表中删除这个搜索",
|
||||||
|
"description": "The label for remove favorite search button"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.errorScreen.titleText": {
|
||||||
|
"message": "无法获取结果",
|
||||||
|
"description": "The title for error screen of search modal"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.errorScreen.helpText": {
|
||||||
|
"message": "你可能需要检查网络连接。",
|
||||||
|
"description": "The help text for error screen of search modal"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.selectText": {
|
||||||
|
"message": "选中",
|
||||||
|
"description": "The explanatory text of the action for the enter key"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.selectKeyAriaLabel": {
|
||||||
|
"message": "Enter 键",
|
||||||
|
"description": "The ARIA label for the Enter key button that makes the selection"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.navigateText": {
|
||||||
|
"message": "导航",
|
||||||
|
"description": "The explanatory text of the action for the Arrow up and Arrow down key"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.navigateUpKeyAriaLabel": {
|
||||||
|
"message": "向上键",
|
||||||
|
"description": "The ARIA label for the Arrow up key button that makes the navigation"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.navigateDownKeyAriaLabel": {
|
||||||
|
"message": "向下键",
|
||||||
|
"description": "The ARIA label for the Arrow down key button that makes the navigation"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.closeText": {
|
||||||
|
"message": "关闭",
|
||||||
|
"description": "The explanatory text of the action for Escape key"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.closeKeyAriaLabel": {
|
||||||
|
"message": "Esc 键",
|
||||||
|
"description": "The ARIA label for the Escape key button that close the modal"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.footer.searchByText": {
|
||||||
|
"message": "搜索提供",
|
||||||
|
"description": "The text explain that the search is making by Algolia"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.noResultsScreen.noResultsText": {
|
||||||
|
"message": "没有结果:",
|
||||||
|
"description": "The text explains that there are no results for the following search"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.noResultsScreen.suggestedQueryText": {
|
||||||
|
"message": "试试搜索",
|
||||||
|
"description": "The text for the suggested query when no results are found for the following search"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.noResultsScreen.reportMissingResultsText": {
|
||||||
|
"message": "认为这个查询应该有结果?",
|
||||||
|
"description": "The text for the question where the user thinks there are missing results"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
|
||||||
|
"message": "请告知我们。",
|
||||||
|
"description": "The text for the link to report missing results"
|
||||||
|
},
|
||||||
|
"theme.SearchModal.placeholder": {
|
||||||
|
"message": "搜索文档",
|
||||||
|
"description": "The placeholder of the input of the DocSearch pop-up modal"
|
||||||
|
},
|
||||||
"theme.SearchPage.documentsFound.plurals": {
|
"theme.SearchPage.documentsFound.plurals": {
|
||||||
"message": "找到 {count} 份文件",
|
"message": "找到 {count} 份文件",
|
||||||
"description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
"description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
|
||||||
@@ -263,6 +384,9 @@
|
|||||||
"message": "正在获取新的搜索结果...",
|
"message": "正在获取新的搜索结果...",
|
||||||
"description": "The paragraph for fetching new search results"
|
"description": "The paragraph for fetching new search results"
|
||||||
},
|
},
|
||||||
|
"theme.SearchBar.seeAll": {
|
||||||
|
"message": "查看全部 {count} 个结果"
|
||||||
|
},
|
||||||
"theme.tags.tagsPageTitle": {
|
"theme.tags.tagsPageTitle": {
|
||||||
"message": "标签",
|
"message": "标签",
|
||||||
"description": "The title of the tag list page"
|
"description": "The title of the tag list page"
|
||||||
|
23
package.json
23
package.json
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "docs-halo-run",
|
"name": "@halo-dev/docs",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -16,23 +16,23 @@
|
|||||||
"lint": "markdownlint-cli2 './docs/**/*.md' './versioned_docs/version-1.5.2/**/*.md'"
|
"lint": "markdownlint-cli2 './docs/**/*.md' './versioned_docs/version-1.5.2/**/*.md'"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-beta.17",
|
"@docusaurus/core": "2.1.0",
|
||||||
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.17",
|
"@docusaurus/plugin-client-redirects": "^2.1.0",
|
||||||
"@docusaurus/preset-classic": "2.0.0-beta.17",
|
"@docusaurus/preset-classic": "2.1.0",
|
||||||
"@docusaurus/theme-classic": "2.0.0-beta.17",
|
"@docusaurus/theme-classic": "2.1.0",
|
||||||
"@docusaurus/theme-common": "2.0.0-beta.17",
|
"@docusaurus/theme-common": "2.1.0",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"@svgr/webpack": "^5.5.0",
|
"@svgr/webpack": "^5.5.0",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.2.1",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"hast-util-is-element": "1.1.0",
|
"hast-util-is-element": "1.1.0",
|
||||||
"mdx-mermaid": "^1.2.2",
|
"mdx-mermaid": "^1.3.2",
|
||||||
"mermaid": "^9.0.0",
|
"mermaid": "^9.1.7",
|
||||||
"prism-react-renderer": "^1.3.1",
|
"prism-react-renderer": "^1.3.5",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"rehype-katex": "5",
|
"rehype-katex": "5",
|
||||||
"remark-math": "3",
|
"remark-math": "3.0.1",
|
||||||
"url-loader": "^4.1.1"
|
"url-loader": "^4.1.1"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
@@ -48,6 +48,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@docusaurus/module-type-aliases": "^2.1.0",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
"markdownlint": "^0.25.1",
|
"markdownlint": "^0.25.1",
|
||||||
"markdownlint-cli2": "^0.4.0"
|
"markdownlint-cli2": "^0.4.0"
|
||||||
|
4402
pnpm-lock.yaml
generated
4402
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,7 @@
|
|||||||
Create as many sidebars as you want.
|
Create as many sidebars as you want.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// By default, Docusaurus generates a sidebar from the docs folder structure
|
// By default, Docusaurus generates a sidebar from the docs folder structure
|
||||||
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||||
|
Reference in New Issue
Block a user