From f100782bb9b3edc84eea85fd728497f89d72e63c Mon Sep 17 00:00:00 2001 From: laixingyou Date: Thu, 7 Dec 2023 16:16:23 +0800 Subject: [PATCH] feat: add docs Signed-off-by: laixingyou --- modules/community | 2 +- modules/docs | 2 +- modules_i18n/community-zh | 2 +- modules_i18n/docs-zh | 2 +- sidebars.js | 10 ---------- src/components/Header/MobileHeader.tsx | 19 +++++++++---------- src/components/Header/index.tsx | 26 ++++++++++++++------------ 7 files changed, 27 insertions(+), 36 deletions(-) diff --git a/modules/community b/modules/community index 2f0f8d9..c0b617c 160000 --- a/modules/community +++ b/modules/community @@ -1 +1 @@ -Subproject commit 2f0f8d9e7e176a65e956f6d0be72091cfcd6ae32 +Subproject commit c0b617c6dffc9c172065167e35e589525bac5f81 diff --git a/modules/docs b/modules/docs index 2fa8748..f746632 160000 --- a/modules/docs +++ b/modules/docs @@ -1 +1 @@ -Subproject commit 2fa87485ea403a82ef48f096ec265542168f79df +Subproject commit f746632dd785aa9bc34780d9e3261fd6ace264d6 diff --git a/modules_i18n/community-zh b/modules_i18n/community-zh index 5490d02..f101610 160000 --- a/modules_i18n/community-zh +++ b/modules_i18n/community-zh @@ -1 +1 @@ -Subproject commit 5490d021b31e956a9193b69524bee1bb83d75614 +Subproject commit f1016105ec827a1705388ba10f4d2b2762ff29c8 diff --git a/modules_i18n/docs-zh b/modules_i18n/docs-zh index b07c4d9..423fc78 160000 --- a/modules_i18n/docs-zh +++ b/modules_i18n/docs-zh @@ -1 +1 @@ -Subproject commit b07c4d9045658f8585634da20dcebabfd58c2c49 +Subproject commit 423fc7824a5479b6a805c79bf10d1413ef976dfc diff --git a/sidebars.js b/sidebars.js index 9965793..6fcb89f 100644 --- a/sidebars.js +++ b/sidebars.js @@ -46,9 +46,6 @@ const sidebars = { { type: 'doc', label: 'Overview', id: 'docs/metrics-models/productivity/README' }, { type: 'doc', id: 'docs/metrics-models/productivity/collaboration-development-index' }, { type: 'doc', id: 'docs/metrics-models/productivity/community-service-and-support' }, - { type: 'doc', id: 'docs/metrics-models/productivity/code/code-compliance-guarantee' }, - { type: 'doc', id: 'docs/metrics-models/productivity/code/code-security-guarantee' }, - { type: 'doc', id: 'docs/metrics-models/productivity/content' }, ], }, @@ -66,11 +63,6 @@ const sidebars = { items: [ { type: 'doc', label: 'Overview', id: 'docs/metrics-models/robustness/README' }, { type: 'doc', id: 'docs/metrics-models/robustness/activity' }, - { type: 'doc', id: 'docs/metrics-models/robustness/developer/developer-convertion' }, - { type: 'doc', id: 'docs/metrics-models/robustness/developer/developer-retention' }, - { type: 'doc', id: 'docs/metrics-models/robustness/organization/innner-connectedness' }, - { type: 'doc', id: 'docs/metrics-models/robustness/organization/organization-collaboration-relationships' }, - { type: 'doc', id: 'docs/metrics-models/robustness/organization/outbound-connectedness' }, ], }, @@ -87,9 +79,7 @@ const sidebars = { }, items: [ { type: 'doc', label: 'Overview', id: 'docs/metrics-models/niche-creation/README' }, - { type: 'doc', id: 'docs/metrics-models/niche-creation/ecological-diversity/developer-attraction' }, { type: 'doc', id: 'docs/metrics-models/niche-creation/ecological-diversity/organization-activity' }, - { type: 'doc', id: 'docs/metrics-models/niche-creation/technological-advancement' }, ], }, ], diff --git a/src/components/Header/MobileHeader.tsx b/src/components/Header/MobileHeader.tsx index 612fc80..49dfc96 100644 --- a/src/components/Header/MobileHeader.tsx +++ b/src/components/Header/MobileHeader.tsx @@ -48,21 +48,15 @@ const MobileHeader: React.FC = ({ children }) => { legacyBehavior: true, }, { - title: translate({ id: 'header.docs' }), - href: '/docs/dimensions-define', - icon: null, - }, - { - title: translate({ id: 'header.projects' }), + title: translate({ id: 'header.explore' }), href: '/explore', icon: null, legacyBehavior: true, }, { - title: translate({ id: 'header.lab' }), - href: '/lab', + title: translate({ id: 'header.metrics_models' }), + href: '/docs/dimensions-define', icon: null, - legacyBehavior: true, }, { title: translate({ id: 'header.community' }), @@ -74,7 +68,12 @@ const MobileHeader: React.FC = ({ children }) => { href: '/blog', icon: null, }, - + { + title: translate({ id: 'header.lab' }), + href: '/lab', + icon: null, + legacyBehavior: true, + }, { title: translate({ id: 'header.about' }), href: '/about', diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 035e0c7..5c04834 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -30,32 +30,34 @@ const Header: React.FC<{ + + + + - + + + + + + + - - - - - - - -