Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 55eed6f

Browse files
doc: Add wip announcementBar
1 parent baa892a commit 55eed6f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎docs/docusaurus.config.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ function getSiteTagline() {
1414
}
1515
}
1616

17+
function getAnnouncementBarContent() {
18+
switch(process.env.DOCUSAURUS_CURRENT_LOCALE) {
19+
case "zh-CN": return '🚧 抱歉!本文档仍在建设中 - 如果你发现任何问题,请告诉我们!我们很乐意听取你的意见! 🌟';
20+
default: return '🚧 Oops! This doc is still under construction - If you spot any quirks, give us a shout! We\'d love to hear from you! 🌟';
21+
}
22+
}
23+
24+
function getAnnouncementBar() {
25+
return {
26+
id: 'IN_WIP',
27+
content: getAnnouncementBarContent(),
28+
isCloseable: true
29+
};
30+
}
31+
1732
const config: Config = {
1833
title: 'Kotlin Suspend Transform Compiler Plugin',
1934
tagline: getSiteTagline(), // 'Make suspend less shy',
@@ -88,6 +103,7 @@ const config: Config = {
88103
],
89104

90105
themeConfig: {
106+
announcementBar: getAnnouncementBar(),
91107
// Replace with your project's social card
92108
// image: 'img/docusaurus-social-card.jpg',
93109
navbar: {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /