File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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+
1732const 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 : {
You can’t perform that action at this time.
0 commit comments