chore: bump docusaurus to beta 16 ()

Signed-off-by: Ryan Wang <i@ryanc.cc>
JohnNiang-patch-1
Ryan Wang 3 years ago committed by GitHub
parent ac0a40beda
commit ea16bf0046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
shamefully-hoist=true

@ -19,9 +19,9 @@
"message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。", "message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。",
"description": "The 2nd paragraph of the 404 page" "description": "The 2nd paragraph of the 404 page"
}, },
"theme.BackToTopButton.buttonAriaLabel": { "theme.AnnouncementBar.closeButtonAriaLabel": {
"message": "回到顶部", "message": "关闭",
"description": "The ARIA label for the back to top button" "description": "The ARIA label for close button of announcement bar"
}, },
"theme.blog.archive.title": { "theme.blog.archive.title": {
"message": "历史博文", "message": "历史博文",
@ -31,9 +31,9 @@
"message": "历史博文", "message": "历史博文",
"description": "The page & hero description of the blog archive page" "description": "The page & hero description of the blog archive page"
}, },
"theme.AnnouncementBar.closeButtonAriaLabel": { "theme.BackToTopButton.buttonAriaLabel": {
"message": "关闭", "message": "回到顶部",
"description": "The ARIA label for close button of announcement bar" "description": "The ARIA label for the back to top button"
}, },
"theme.blog.paginator.navAriaLabel": { "theme.blog.paginator.navAriaLabel": {
"message": "博文列表分页导航", "message": "博文列表分页导航",
@ -51,6 +51,10 @@
"message": "{readingTime} 分钟阅读", "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)" "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.readMoreLabel": {
"message": "阅读 {title} 的全文",
"description": "The ARIA label for the link to full blog posts from excerpts"
},
"theme.blog.post.readMore": { "theme.blog.post.readMore": {
"message": "阅读更多", "message": "阅读更多",
"description": "The label used in blog post item excerpts to link to full blog posts" "description": "The label used in blog post item excerpts to link to full blog posts"
@ -71,6 +75,18 @@
"message": "最近博文导航", "message": "最近博文导航",
"description": "The ARIA label for recent posts in the blog sidebar" "description": "The ARIA label for recent posts in the blog sidebar"
}, },
"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.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)"
@ -83,17 +99,9 @@
"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": { "theme.docs.DocCard.categoryDescription": {
"message": "复制代码到剪贴板", "message": "{count} 个项目",
"description": "The ARIA label for copy code blocks button" "description": "The default description for a category card in the generated index about how many items this category includes"
},
"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.docs.sidebar.expandButtonTitle": { "theme.docs.sidebar.expandButtonTitle": {
"message": "展开侧边栏", "message": "展开侧边栏",
@ -107,14 +115,14 @@
"message": "文档分页导航", "message": "文档分页导航",
"description": "The ARIA label for the docs pagination" "description": "The ARIA label for the docs pagination"
}, },
"theme.docs.paginator.next": {
"message": "下一页",
"description": "The label used to navigate to the next doc"
},
"theme.docs.paginator.previous": { "theme.docs.paginator.previous": {
"message": "上一页", "message": "上一页",
"description": "The label used to navigate to the previous doc" "description": "The label used to navigate to the previous doc"
}, },
"theme.docs.paginator.next": {
"message": "下一页",
"description": "The label used to navigate to the next doc"
},
"theme.docs.sidebar.collapseButtonTitle": { "theme.docs.sidebar.collapseButtonTitle": {
"message": "收起侧边栏", "message": "收起侧边栏",
"description": "The title attribute for collapse button of doc sidebar" "description": "The title attribute for collapse button of doc sidebar"
@ -135,6 +143,13 @@
"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": {
"message": "版本:{versionLabel}"
},
"theme.common.editThisPage": {
"message": "编辑此页",
"description": "The link label to edit the current page"
},
"theme.docs.versions.unreleasedVersionLabel": { "theme.docs.versions.unreleasedVersionLabel": {
"message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。", "message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。",
"description": "The label used to tell the user that he's browsing an unreleased doc version" "description": "The label used to tell the user that he's browsing an unreleased doc version"
@ -151,10 +166,6 @@
"message": "最新版本", "message": "最新版本",
"description": "The label used for the latest version suggestion link label" "description": "The label used for the latest version suggestion link label"
}, },
"theme.common.editThisPage": {
"message": "编辑此页",
"description": "The link label to edit the current page"
},
"theme.common.headingLinkTitle": { "theme.common.headingLinkTitle": {
"message": "标题的直接链接", "message": "标题的直接链接",
"description": "Title for link to heading" "description": "Title for link to heading"
@ -171,6 +182,10 @@
"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"
@ -179,10 +194,6 @@
"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.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.TOCCollapsible.toggleButtonLabel": { "theme.TOCCollapsible.toggleButtonLabel": {
"message": "本页总览", "message": "本页总览",
"description": "The label used by the button on the collapsible TOC component" "description": "The label used by the button on the collapsible TOC component"
@ -191,6 +202,22 @@
"message": "标签:", "message": "标签:",
"description": "The label alongside a tag list" "description": "The label alongside a tag list"
}, },
"theme.colorToggle.ariaLabel": {
"message": "切换浅色/暗黑模式(当前为{mode}",
"description": "The ARIA label for the navbar color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "暗黑模式",
"description": "The name for the dark color mode"
},
"theme.colorToggle.ariaLabel.mode.light": {
"message": "浅色模式",
"description": "The name for the light color mode"
},
"theme.navbar.mobileLanguageDropdown.label": {
"message": "选择语言",
"description": "The label for the mobile language switcher dropdown"
},
"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)"
@ -223,6 +250,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.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"
@ -231,4 +261,4 @@
"message": "标签", "message": "标签",
"description": "The title of the tag list page" "description": "The title of the tag list page"
} }
} }

@ -43,4 +43,4 @@
"message": "REST API", "message": "REST API",
"description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run" "description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run"
} }
} }

@ -43,4 +43,4 @@
"message": "REST API", "message": "REST API",
"description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run" "description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run"
} }
} }

@ -43,4 +43,4 @@
"message": "REST API", "message": "REST API",
"description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run" "description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run"
} }
} }

@ -43,4 +43,4 @@
"message": "REST API", "message": "REST API",
"description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run" "description": "The label for link REST API in sidebar tutorialSidebar, linking to https://api.halo.run"
} }
} }

@ -55,4 +55,4 @@
"message": "Copyright © 2022 <a target=\"_blank\" href=\"https://www.fit2cloud.com/\">FIT2CLOUD 飞致云</a>. Built with Docusaurus.", "message": "Copyright © 2022 <a target=\"_blank\" href=\"https://www.fit2cloud.com/\">FIT2CLOUD 飞致云</a>. Built with Docusaurus.",
"description": "The footer copyright" "description": "The footer copyright"
} }
} }

@ -19,4 +19,4 @@
"message": "Gitee", "message": "Gitee",
"description": "Navbar item with label Gitee" "description": "Navbar item with label Gitee"
} }
} }

@ -16,14 +16,16 @@
"lint": "markdownlint-cli2 './docs/**/*.md' './versioned_docs/version-1.4.17/**/*.md'" "lint": "markdownlint-cli2 './docs/**/*.md' './versioned_docs/version-1.4.17/**/*.md'"
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "2.0.0-beta.14", "@docusaurus/core": "2.0.0-beta.16",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.14", "@docusaurus/plugin-client-redirects": "^2.0.0-beta.16",
"@docusaurus/preset-classic": "2.0.0-beta.14", "@docusaurus/preset-classic": "2.0.0-beta.16",
"@docusaurus/theme-classic": "2.0.0-beta.16",
"@docusaurus/theme-common": "2.0.0-beta.16",
"@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.1.1",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1", "prism-react-renderer": "^1.3.1",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"url-loader": "^4.1.1" "url-loader": "^4.1.1"

File diff suppressed because it is too large Load Diff

@ -1,104 +1,104 @@
import React from 'react'; import React from 'react';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Link from '@docusaurus/Link'; import Link from '@docusaurus/Link';
import Layout from '@theme/Layout'; import Layout from '@theme/Layout';
import {useVersions, useLatestVersion} from '@theme/hooks/useDocs'; import {useLatestVersion, useVersions} from '@docusaurus/plugin-content-docs/client';
function Version(): JSX.Element { function Version(): JSX.Element {
const { const {
siteConfig: {organizationName, projectName}, siteConfig: {organizationName, projectName},
} = useDocusaurusContext(); } = useDocusaurusContext();
const versions = useVersions(); const versions = useVersions();
const latestVersion = useLatestVersion(); const latestVersion = useLatestVersion();
const currentVersion = versions.find( const currentVersion = versions.find(
(version) => version.name === 'current', (version) => version.name === 'current',
)!; )!;
const pastVersions = versions.filter( const pastVersions = versions.filter(
(version) => version !== latestVersion && version.name !== 'current', (version) => version !== latestVersion && version.name !== 'current',
); );
const repoUrl = `https://github.com/${organizationName}/${projectName}`; const repoUrl = `https://github.com/${organizationName}/${projectName}`;
return ( return (
<Layout <Layout
title="Versions" title="Versions"
description="Docusaurus 2 Versions page listing all documented site versions"> description="Docusaurus 2 Versions page listing all documented site versions">
<main className="container margin-vert--lg"> <main className="container margin-vert--lg">
<h1>Halo documentation versions</h1> <h1>Halo documentation versions</h1>
{latestVersion && ( {latestVersion && (
<div className="margin-bottom--lg"> <div className="margin-bottom--lg">
<h3 id="next">Current version (Stable)</h3> <h3 id="next">Current version (Stable)</h3>
<p> <p>
Here you can find the documentation for current released version. Here you can find the documentation for current released version.
</p> </p>
<table> <table>
<tbody> <tbody>
<tr> <tr>
<th>{latestVersion.label}</th> <th>{latestVersion.label}</th>
<td> <td>
<Link to={latestVersion.path}>Documentation</Link> <Link to={latestVersion.path}>Documentation</Link>
</td> </td>
<td> <td>
<a href={`${repoUrl}/releases/tag/v${latestVersion.name}`}> <a href={`${repoUrl}/releases/tag/v${latestVersion.name}`}>
Release Notes Release Notes
</a> </a>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
)} )}
{currentVersion !== latestVersion && ( {currentVersion !== latestVersion && (
<div className="margin-bottom--lg"> <div className="margin-bottom--lg">
<h3 id="latest">Next version (Unreleased)</h3> <h3 id="latest">Next version (Unreleased)</h3>
<p> <p>
Here you can find the documentation for work-in-process unreleased Here you can find the documentation for work-in-process unreleased
version. version.
</p> </p>
<table> <table>
<tbody> <tbody>
<tr> <tr>
<th>{currentVersion.label}</th> <th>{currentVersion.label}</th>
<td> <td>
<Link to={currentVersion.path}>Documentation</Link> <Link to={currentVersion.path}>Documentation</Link>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
)} )}
{(pastVersions.length > 0) && ( {(pastVersions.length > 0) && (
<div className="margin-bottom--lg"> <div className="margin-bottom--lg">
<h3 id="archive">Past versions (Not maintained anymore)</h3> <h3 id="archive">Past versions (Not maintained anymore)</h3>
<p> <p>
Here you can find documentation for previous versions of Here you can find documentation for previous versions of
Docusaurus. Docusaurus.
</p> </p>
<table> <table>
<tbody> <tbody>
{pastVersions.map((version) => ( {pastVersions.map((version) => (
<tr key={version.name}> <tr key={version.name}>
<th>{version.label}</th> <th>{version.label}</th>
<td> <td>
<Link to={version.path}>Documentation</Link> <Link to={version.path}>Documentation</Link>
</td> </td>
<td> <td>
<a href={`${repoUrl}/releases/tag/v${version.name}`}> <a href={`${repoUrl}/releases/tag/v${version.name}`}>
Release Notes Release Notes
</a> </a>
</td> </td>
</tr> </tr>
))} ))}
</tbody> </tbody>
</table> </table>
</div> </div>
)} )}
</main> </main>
</Layout> </Layout>
); );
} }
export default Version; export default Version;
Loading…
Cancel
Save