This is an automated email from the ASF dual-hosted git repository.

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 81ab1b9  [INLONG-1856] Add a news tab to the official website and 
publish a welcome committer article in the news (#202)
81ab1b9 is described below

commit 81ab1b9f33cc16f62b7a701224e002addedd7284
Author: bluewang <[email protected]>
AuthorDate: Mon Nov 29 16:21:38 2021 +0800

    [INLONG-1856] Add a news tab to the official website and publish a welcome 
committer article in the news (#202)
---
 docusaurus.config.js                                      | 15 ++++++++++++++-
 .../2021-11-26-new-committer-join.md}                     |  0
 i18n/zh-CN/docusaurus-theme-classic/navbar.json           |  4 ++++
 .../2021-11-26-new-committer-join.md                      |  0
 package.json                                              |  1 +
 5 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index e447990..98ea0bd 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -104,11 +104,16 @@ const darkCodeTheme = 
require('prism-react-renderer/themes/dracula');
             activeBaseRegex: `/development/`,
           },
           {
-            to: '/blog/new-committer-join',
+            to: '/blog',
             label: 'BLOG',
             position: 'right'
           },
           {
+            to: '/news',
+            label: 'NEWS',
+            position: 'right'
+          },
+          {
             label: 'ASF',
             position: 'right',
             items: [
@@ -241,5 +246,13 @@ const darkCodeTheme = 
require('prism-react-renderer/themes/dracula');
         sidebarPath: require.resolve('./sidebarsDevelopment.js'),
       },
     ],
+    [
+      '@docusaurus/plugin-content-blog',
+      {
+        id: 'news',
+        routeBasePath: 'news',
+        path: 'news',
+      },
+    ],
   ]
 });
diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/new-committer-join.md 
b/i18n/zh-CN/docusaurus-plugin-content-blog-news/2021-11-26-new-committer-join.md
similarity index 100%
rename from i18n/zh-CN/docusaurus-plugin-content-blog/new-committer-join.md
rename to 
i18n/zh-CN/docusaurus-plugin-content-blog-news/2021-11-26-new-committer-join.md
diff --git a/i18n/zh-CN/docusaurus-theme-classic/navbar.json 
b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
index 10ae35f..ca2d313 100644
--- a/i18n/zh-CN/docusaurus-theme-classic/navbar.json
+++ b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
@@ -23,6 +23,10 @@
     "message": "博客",
     "description": "Navbar item with label BLOG"
   },
+  "item.label.NEWS": {
+    "message": "新闻",
+    "description": "Navbar item with label NEWS"
+  },
   "item.label.ASF": {
     "message": "Apache",
     "description": "Navbar item with label ASF"
diff --git a/blog/new-committer-join.md b/news/2021-11-26-new-committer-join.md
similarity index 100%
rename from blog/new-committer-join.md
rename to news/2021-11-26-new-committer-join.md
diff --git a/package.json b/package.json
index 6f5a2d1..fb17145 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
   },
   "dependencies": {
     "@docusaurus/core": "^2.0.0-beta.6",
+    "@docusaurus/plugin-content-blog": "^2.0.0-beta.6",
     "@docusaurus/plugin-content-docs": "^2.0.0-beta.6",
     "@docusaurus/preset-classic": "2.0.0-beta.6",
     "@mdx-js/react": "^1.6.21",

Reply via email to