Skip to content

Commit d1c2faa

Browse files
authored
Add release links to navbar and footer, update i18n (#555)
1 parent 71dd35d commit d1c2faa

File tree

4 files changed

+50
-33
lines changed

4 files changed

+50
-33
lines changed

docusaurus.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const config = {
131131
([versionName, versionUrl]) => ({
132132
label: versionName,
133133
href: versionUrl,
134-
}),
134+
})
135135
),
136136
{
137137
to: "/versions",
@@ -149,6 +149,11 @@ const config = {
149149
label: "论坛",
150150
position: "right",
151151
},
152+
{
153+
href: "https://releases.halo.run",
154+
label: "版本",
155+
position: "right",
156+
},
152157
{
153158
href: "https://github.com/halo-dev/halo",
154159
label: "GitHub",
@@ -184,6 +189,10 @@ const config = {
184189
label: "Gitee 组织",
185190
href: "https://gitee.com/halo-dev",
186191
},
192+
{
193+
label: "版本发布",
194+
href: "https://releases.halo.run",
195+
},
187196
{
188197
label: "Server Status",
189198
href: "https://status.halo.run",

i18n/zh-Hans/code.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@
9696
"theme.docs.versionBadge.label": {
9797
"message": "版本:{versionLabel}"
9898
},
99-
"theme.common.editThisPage": {
100-
"message": "编辑此页",
101-
"description": "The link label to edit the current page"
102-
},
10399
"theme.docs.versions.unreleasedVersionLabel": {
104100
"message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。",
105101
"description": "The label used to tell the user that he's browsing an unreleased doc version"
@@ -116,6 +112,10 @@
116112
"message": "最新版本",
117113
"description": "The label used for the latest version suggestion link label"
118114
},
115+
"theme.common.editThisPage": {
116+
"message": "编辑此页",
117+
"description": "The link label to edit the current page"
118+
},
119119
"theme.common.headingLinkTitle": {
120120
"message": "{heading}的直接链接",
121121
"description": "Title for link to heading"
@@ -144,6 +144,10 @@
144144
"message": "标签:",
145145
"description": "The label alongside a tag list"
146146
},
147+
"theme.AnnouncementBar.closeButtonAriaLabel": {
148+
"message": "关闭",
149+
"description": "The ARIA label for close button of announcement bar"
150+
},
147151
"theme.admonition.caution": {
148152
"message": "警告",
149153
"description": "The default label used for the Caution admonition (:::caution)"
@@ -168,10 +172,6 @@
168172
"message": "注意",
169173
"description": "The default label used for the Warning admonition (:::warning)"
170174
},
171-
"theme.AnnouncementBar.closeButtonAriaLabel": {
172-
"message": "关闭",
173-
"description": "The ARIA label for close button of announcement bar"
174-
},
175175
"theme.blog.sidebar.navAriaLabel": {
176176
"message": "最近博文导航",
177177
"description": "The ARIA label for recent posts in the blog sidebar"
@@ -192,10 +192,6 @@
192192
"message": "主导航",
193193
"description": "The ARIA label for the main navigation"
194194
},
195-
"theme.navbar.mobileLanguageDropdown.label": {
196-
"message": "选择语言",
197-
"description": "The label for the mobile language switcher dropdown"
198-
},
199195
"theme.NotFound.p1": {
200196
"message": "我们找不到您要找的页面。",
201197
"description": "The first paragraph of the 404 page"
@@ -208,6 +204,10 @@
208204
"message": "本页总览",
209205
"description": "The label used by the button on the collapsible TOC component"
210206
},
207+
"theme.navbar.mobileLanguageDropdown.label": {
208+
"message": "选择语言",
209+
"description": "The label for the mobile language switcher dropdown"
210+
},
211211
"theme.blog.post.readMore": {
212212
"message": "阅读更多",
213213
"description": "The label used in blog post item excerpts to link to full blog posts"
@@ -224,17 +224,13 @@
224224
"message": "切换自动换行",
225225
"description": "The title attribute for toggle word wrapping button of code block lines"
226226
},
227-
"theme.CodeBlock.copy": {
228-
"message": "复制",
229-
"description": "The copy button label on code blocks"
230-
},
231-
"theme.CodeBlock.copied": {
232-
"message": "复制成功",
233-
"description": "The copied button label on code blocks"
227+
"theme.docs.breadcrumbs.home": {
228+
"message": "主页面",
229+
"description": "The ARIA label for the home page in the breadcrumbs"
234230
},
235-
"theme.CodeBlock.copyButtonAriaLabel": {
236-
"message": "复制代码到剪贴板",
237-
"description": "The ARIA label for copy code blocks button"
231+
"theme.docs.sidebar.navAriaLabel": {
232+
"message": "文档侧边栏",
233+
"description": "The ARIA label for the sidebar navigation"
238234
},
239235
"theme.docs.sidebar.collapseButtonTitle": {
240236
"message": "收起侧边栏",
@@ -244,18 +240,26 @@
244240
"message": "收起侧边栏",
245241
"description": "The title attribute for collapse button of doc sidebar"
246242
},
247-
"theme.docs.sidebar.navAriaLabel": {
248-
"message": "文档侧边栏",
249-
"description": "The ARIA label for the sidebar navigation"
243+
"theme.CodeBlock.copy": {
244+
"message": "复制",
245+
"description": "The copy button label on code blocks"
250246
},
251-
"theme.docs.breadcrumbs.home": {
252-
"message": "主页面",
253-
"description": "The ARIA label for the home page in the breadcrumbs"
247+
"theme.CodeBlock.copied": {
248+
"message": "复制成功",
249+
"description": "The copied button label on code blocks"
250+
},
251+
"theme.CodeBlock.copyButtonAriaLabel": {
252+
"message": "复制代码到剪贴板",
253+
"description": "The ARIA label for copy code blocks button"
254254
},
255255
"theme.docs.sidebar.closeSidebarButtonAriaLabel": {
256256
"message": "关闭导航栏",
257257
"description": "The ARIA label for close button of mobile sidebar"
258258
},
259+
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
260+
"message": "← 回到主菜单",
261+
"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)"
262+
},
259263
"theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
260264
"message": "切换导航栏",
261265
"description": "The ARIA label for hamburger menu button of mobile navigation"
@@ -268,10 +272,6 @@
268272
"message": "Collapse the dropdown",
269273
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
270274
},
271-
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
272-
"message": "← 回到主菜单",
273-
"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)"
274-
},
275275
"theme.docs.sidebar.expandButtonTitle": {
276276
"message": "展开侧边栏",
277277
"description": "The ARIA label and title attribute for expand button of doc sidebar"

i18n/zh-Hans/docusaurus-theme-classic/footer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"message": "Gitee 组织",
2424
"description": "The label of footer link with label=Gitee 组织 linking to https://gitee.com/halo-dev"
2525
},
26+
"link.item.label.版本发布": {
27+
"message": "版本发布",
28+
"description": "The label of footer link with label=版本发布 linking to https://releases.halo.run"
29+
},
2630
"link.item.label.Server Status": {
2731
"message": "Server Status",
2832
"description": "The label of footer link with label=Server Status linking to https://status.halo.run"

i18n/zh-Hans/docusaurus-theme-classic/navbar.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"message": "论坛",
2424
"description": "Navbar item with label 论坛"
2525
},
26+
"item.label.版本": {
27+
"message": "版本",
28+
"description": "Navbar item with label 版本"
29+
},
2630
"item.label.GitHub": {
2731
"message": "GitHub",
2832
"description": "Navbar item with label GitHub"

0 commit comments

Comments
 (0)