Skip to content

Commit

Permalink
feat :add 3 blog
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <[email protected]>
  • Loading branch information
coder-sett committed Dec 9, 2023
1 parent f100782 commit 6f2c724
Show file tree
Hide file tree
Showing 11 changed files with 110 additions and 52 deletions.
3 changes: 3 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"header.docs": {
"message": "Docs"
},
"header.academe": {
"message": "Collaboration"
},
"header.metrics_models": {
"message": "Metrics Models"
},
Expand Down
28 changes: 18 additions & 10 deletions i18n/en/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,41 @@
"description": "The label for category Ecosystem Evaluation System in sidebar webSidebar"
},
"sidebar.webSidebar.category.Ecosystem Evaluation System.link.generated-index.description": {
"message": "Ecosystem is used to describe the health status of open source community standing from ecology context. We create three top level dimensions: Productivity, Robustness and Niche Creation.",
"message": "Ecosystem is used to describe the health status of open source community standing from ecology context. We create a three-dimensional space for the evaluation system, including the open source ecosystem, 'collaboration, people, software' and evaluation models.",
"description": "The generated-index page description for category Ecosystem Evaluation System in sidebar webSidebar"
},
"sidebar.webSidebar.category.Productivity": {
"message": "Productivity",
"sidebar.webSidebar.category.Collaboration-Productivity": {
"message": "Collaboration-Productivity",
"description": "The label for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.Productivity.link.generated-index.description": {
"sidebar.webSidebar.category.Collaboration-Productivity.link.generated-index.description": {
"message": "The efficiency with which an ecosystem or project converts inputs into output.",
"description": "The generated-index page description for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.Robustness": {
"message": "Robustness",
"sidebar.webSidebar.category.Collaboration-Robustness": {
"message": "Collaboration-Robustness",
"description": "The label for category Robustness in sidebar webSidebar"
},
"sidebar.webSidebar.category.Robustness.link.generated-index.description": {
"sidebar.webSidebar.category.Collaboration-Robustness.link.generated-index.description": {
"message": "The capability of an ecosystem or project to face and survive disruptions.",
"description": "The generated-index page description for category Robustness in sidebar webSidebar"
},
"sidebar.webSidebar.category.Niche Creation": {
"message": "Niche Creation",
"sidebar.webSidebar.category.Collaboration-Niche Creation": {
"message": "Collaboration-Niche Creation",
"description": "The label for category Niche Creation in sidebar webSidebar"
},
"sidebar.webSidebar.category.Niche Creation.link.generated-index.description": {
"sidebar.webSidebar.category.Collaboration-Niche Creation.link.generated-index.description": {
"message": "The capacity to create and recognize meaningful diversity and thereby new capabilities.",
"description": "The generated-index page description for category Niche Creation in sidebar webSidebar"
},
"sidebar.webSidebar.category.People-Productivity": {
"message": "People-Productivity",
"description": "The label for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.People-Productivity.link.generated-index.description": {
"message": "The efficiency with which an ecosystem or project converts inputs into output.",
"description": "The generated-index page description for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.Community": {
"message": "Community",
"description": "The label for category Community in sidebar webSidebar"
Expand Down
3 changes: 3 additions & 0 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"header.docs": {
"message": "文档"
},
"header.academe": {
"message": "协作"
},
"header.metrics_models": {
"message": "评估模型"
},
Expand Down
28 changes: 18 additions & 10 deletions i18n/zh/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,41 @@
"description": "The label for category Ecosystem Evaluation System in sidebar webSidebar"
},
"sidebar.webSidebar.category.Ecosystem Evaluation System.link.generated-index.description": {
"message": "开源生态是用来描述站在生态学背景下的开源社区的健康状态。我们创建了三个最高级别的维度来描述开源生态评估:生产力、稳健性和创新力。",
"message": "生态系统是用来描述站在生态学背景下的开源社区的健康状态。我们构建了一个评估体系的三维空间,包括开源生态、“协作、人、软件”和评估模型",
"description": "The generated-index page description for category Ecosystem Evaluation System in sidebar webSidebar"
},
"sidebar.webSidebar.category.Productivity": {
"message": "生产力",
"sidebar.webSidebar.category.Collaboration-Productivity": {
"message": "协作-生产力",
"description": "The label for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.Productivity.link.generated-index.description": {
"sidebar.webSidebar.category.Collaboration-Productivity.link.generated-index.description": {
"message": "一个开源生态将投入转化为产出的能力。",
"description": "The generated-index page description for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.Robustness": {
"message": "稳健性",
"sidebar.webSidebar.category.Collaboration-Robustness": {
"message": "协作-稳健性",
"description": "The label for category Robustness in sidebar webSidebar"
},
"sidebar.webSidebar.category.Robustness.link.generated-index.description": {
"sidebar.webSidebar.category.Collaboration-Robustness.link.generated-index.description": {
"message": "生态系统面对内部或者外部冲突自我恢复的能力。",
"description": "The generated-index page description for category Robustness in sidebar webSidebar"
},
"sidebar.webSidebar.category.Niche Creation": {
"message": "创新力",
"sidebar.webSidebar.category.Collaboration-Niche Creation": {
"message": "协作-创新力",
"description": "The label for category Niche Creation in sidebar webSidebar"
},
"sidebar.webSidebar.category.Niche Creation.link.generated-index.description": {
"sidebar.webSidebar.category.Collaboration-Niche Creation.link.generated-index.description": {
"message": "社区生态具有持续创造多样性创新的能力,并成为社区生态向前演进的动力。",
"description": "The generated-index page description for category Niche Creation in sidebar webSidebar"
},
"sidebar.webSidebar.category.People-Productivity": {
"message": "贡献者-生产力",
"description": "The label for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.People-Productivity.link.generated-index.description": {
"message": "一个开源生态将投入转化为产出的能力。",
"description": "The generated-index page description for category Productivity in sidebar webSidebar"
},
"sidebar.webSidebar.category.Community": {
"message": "社区交流",
"description": "The label for category Community in sidebar webSidebar"
Expand Down
43 changes: 32 additions & 11 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@ const sidebars = {
label: 'Ecosystem Evaluation System',
link: {
type: 'generated-index',
description: 'Ecosystem is used to describe the health status of open source community standing from ecology context. We create three top level dimensions: Productivity, Robustness and Niche Creation.',
description: 'Ecosystem is used to describe the health status of open source community standing from ecology context. We create a three-dimensional space for the evaluation system, including the open source ecosystem, "collaboration, people, software" and evaluation models.',
slug: '/dimensions-define',
keywords: ['Metrics Models Dimensions', 'Productivity', 'Robustness', 'Niche-Creation',],
image: '/img/docusaurus.png',
},
items: [
{ type: 'doc', label: 'Overview', id: 'docs/metrics-models/README' },

{
type: 'category',
collapsed: false,
label: 'Productivity',
label: 'Collaboration-Productivity',
link: {
type: 'generated-index',
description: 'The efficiency with which an ecosystem or project converts inputs into output.',
Expand All @@ -43,16 +45,16 @@ const sidebars = {
image: '/img/docusaurus.png',
},
items: [
{ 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', label: 'Overview', id: 'docs/metrics-models/collaboration/productivity/README' },
{ type: 'doc', id: 'docs/metrics-models/collaboration/productivity/collaboration-development-index' },
{ type: 'doc', id: 'docs/metrics-models/collaboration/productivity/community-service-and-support' },
],
},

{
type: 'category',
collapsed: false,
label: 'Robustness',
label: 'Collaboration-Robustness',
link: {
type: 'generated-index',
description: 'The capability of an ecosystem or project to face and survive disruptions.',
Expand All @@ -61,15 +63,15 @@ const sidebars = {
image: '/img/docusaurus.png',
},
items: [
{ type: 'doc', label: 'Overview', id: 'docs/metrics-models/robustness/README' },
{ type: 'doc', id: 'docs/metrics-models/robustness/activity' },
{ type: 'doc', label: 'Overview', id: 'docs/metrics-models/collaboration/robustness/README' },
{ type: 'doc', id: 'docs/metrics-models/collaboration/robustness/activity' },
],
},

{
type: 'category',
collapsed: false,
label: 'Niche Creation',
label: 'Collaboration-Niche Creation',
link: {
type: 'generated-index',
description: 'The capacity to create and recognize meaningful diversity and thereby new capabilities.',
Expand All @@ -78,8 +80,27 @@ const sidebars = {
image: '/img/docusaurus.png',
},
items: [
{ type: 'doc', label: 'Overview', id: 'docs/metrics-models/niche-creation/README' },
{ type: 'doc', id: 'docs/metrics-models/niche-creation/ecological-diversity/organization-activity' },
{ type: 'doc', label: 'Overview', id: 'docs/metrics-models/collaboration/niche-creation/README' },
{ type: 'doc', id: 'docs/metrics-models/collaboration/niche-creation/organization-activity' },
],
},

{
type: 'category',
collapsed: false,
label: 'People-Productivity',
link: {
type: 'generated-index',
description: 'The efficiency with which an ecosystem or project converts inputs into output.',
// slug: '/metrics-models/productivity',
keywords: [],
image: '/img/docusaurus.png',
},
items: [
{ type: 'doc', label: 'Overview', id: 'docs/metrics-models/people/productivity/README' },
{ type: 'doc', id: 'docs/metrics-models/people/productivity/contributor-domain-persona' },
{ type: 'doc', id: 'docs/metrics-models/people/productivity/contributor-role-persona' },
{ type: 'doc', id: 'docs/metrics-models/people/productivity/contributor-milestone-persona' },
],
},
],
Expand Down
22 changes: 14 additions & 8 deletions src/components/Header/MobileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,37 @@ const MobileHeader: React.FC<PropsWithChildren> = ({ children }) => {
legacyBehavior: true,
},
{
title: translate({ id: 'header.explore' }),
title: translate({ id: 'header.docs' }),
href: '/docs/dimensions-define',
icon: null,
},
{
title: translate({ id: 'header.projects' }),
href: '/explore',
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.metrics_models' }),
href: '/docs/dimensions-define',
title: translate({ id: 'header.academe' }),
href: '/academe',
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.community' }),
href: '/docs/community',
title: translate({ id: 'header.lab' }),
href: '/lab',
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.news' }),
href: '/blog',
icon: null,
},
{
title: translate({ id: 'header.lab' }),
href: '/lab',
title: translate({ id: 'header.community' }),
href: '/docs/community',
icon: null,
legacyBehavior: true,
},
{
title: translate({ id: 'header.about' }),
Expand Down
27 changes: 18 additions & 9 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,29 @@ const Header: React.FC<{
<Logo color="white" />
</a>

<Link
href="/docs/dimensions-define"
className={
'mx-6 flex-shrink-0 px-2.5 font-medium text-white 2xl:mx-2'
}
>
<Translate id={'header.docs'} />
</Link>

<a
href="/explore"
className={'mx-6 px-2.5 font-medium text-white 2xl:mx-2'}
>
<Translate id={'header.explore'} />
<Translate id={'header.projects'} />
</a>

<Link
href="/docs/dimensions-define"
href="/academe"
className={
'mx-6 flex-shrink-0 px-2.5 font-medium text-white 2xl:mx-2'
}
>
<Translate id={'header.metrics_models'} />
</Link>

<CommunityDropdown />

<Link href="/blog" className={'mx-6 px-2.5 font-medium text-white'}>
<Translate id={'header.news'} />
<Translate id={'header.academe'} />
</Link>

<a
Expand All @@ -59,6 +62,12 @@ const Header: React.FC<{
<Translate id={'header.lab'} />
</a>

<Link href="/blog" className={'mx-6 px-2.5 font-medium text-white'}>
<Translate id={'header.news'} />
</Link>

<CommunityDropdown />

<a
href="/about"
className={'mx-6 px-2.5 font-medium text-white 2xl:mx-2'}
Expand Down

1 comment on commit 6f2c724

@vercel
Copy link

@vercel vercel bot commented on 6f2c724 Dec 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.