Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions copy.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Create directories
New-Item -ItemType Directory -Path "i18n\en\docusaurus-plugin-content-docs\current" -Force | Out-Null
New-Item -ItemType Directory -Path "modules\community\blog" -Force | Out-Null
New-Item -ItemType Directory -Path "modules_i18n\community-zh\blog" -Force | Out-Null

# en doc
Write-Host "Copying English docs..."
Copy-Item -Path "modules\docs\*" -Destination "i18n\en\docusaurus-plugin-content-docs\current\docs\" -Recurse -Force -Exclude ".github"

# en community
Write-Host "Copying English community..."
Copy-Item -Path "modules\community\*" -Destination "i18n\en\docusaurus-plugin-content-docs\current\community\" -Recurse -Force -Exclude ".github"

# en blog
Write-Host "Copying English blog..."
if (Test-Path "modules\community\blog") {
Copy-Item -Path "modules\community\blog\*" -Destination "blog\" -Recurse -Force -Exclude ".github"
}

# zh
New-Item -ItemType Directory -Path "i18n\zh\docusaurus-plugin-content-docs\current" -Force | Out-Null

# zh docs
Write-Host "Copying Chinese docs..."
Copy-Item -Path "modules_i18n\docs-zh\*" -Destination "i18n\zh\docusaurus-plugin-content-docs\current\docs\" -Recurse -Force -Exclude ".github"

# zh community
Write-Host "Copying Chinese community..."
Copy-Item -Path "modules_i18n\community-zh\*" -Destination "i18n\zh\docusaurus-plugin-content-docs\current\community\" -Recurse -Force -Exclude ".github"

# zh blog
Write-Host "Copying Chinese blog..."
if (Test-Path "modules_i18n\community-zh\blog") {
Copy-Item -Path "modules_i18n\community-zh\blog\*" -Destination "i18n\zh\docusaurus-plugin-content-blog\" -Recurse -Force -Exclude ".github"
}

Write-Host "Copy completed successfully!"
25 changes: 13 additions & 12 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const math = require('remark-math');
const katex = require('rehype-katex');
import { themes } from 'prism-react-renderer';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import { createRequire } from 'module';

const require = createRequire(import.meta.url);
const vercel = process.env.VERCEL_ENV === 'preview';

/** @type {import('@docusaurus/types').Config} */
Expand Down Expand Up @@ -40,8 +41,8 @@ const config = {
path: 'modules',
routeBasePath: 'docs',
exclude: ['**/blog/**'],
remarkPlugins: [math],
rehypePlugins: [katex],
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
Expand All @@ -63,8 +64,8 @@ const config = {
routeBasePath: 'blog',
showReadingTime: false,
blogSidebarCount: 'ALL',
remarkPlugins: [math],
rehypePlugins: [katex],
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
Expand All @@ -77,7 +78,7 @@ const config = {
filename: 'sitemap.xml',
},
theme: {
customCss: [require.resolve('./src/style/custom.scss')],
customCss: ['./src/style/custom.scss'],
},
}),
],
Expand Down Expand Up @@ -145,10 +146,10 @@ const config = {
copyright: `Copyright©${new Date().getFullYear()} OSS compass. All Rights Reserved.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: themes.github,
darkTheme: themes.dracula,
},
}),
};

module.exports = config;
export default config;
24 changes: 24 additions & 0 deletions i18n/en/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,29 @@
"sidebar.webSidebar.doc.Weekly Meeting": {
"message": "Weekly Meeting",
"description": "The label for the doc item Weekly Meeting in sidebar webSidebar, linking to the doc community/community/metting"
},
"sidebar.webSidebar.doc.metrics-models-overview": {
"message": "Overview",
"description": "The label for the doc item Overview in sidebar webSidebar"
},
"sidebar.webSidebar.doc.collaboration-productivity-overview": {
"message": "Overview",
"description": "The label for the doc item Overview in sidebar webSidebar"
},
"sidebar.webSidebar.doc.collaboration-robustness-overview": {
"message": "Overview",
"description": "The label for the doc item Overview in sidebar webSidebar"
},
"sidebar.webSidebar.doc.collaboration-niche-creation-overview": {
"message": "Overview",
"description": "The label for the doc item Overview in sidebar webSidebar"
},
"sidebar.webSidebar.doc.people-productivity-overview": {
"message": "Overview",
"description": "The label for the doc item Overview in sidebar webSidebar"
},
"sidebar.webSidebar.doc.software-artifact-robustness-overview": {
"message": "Overview",
"description": "The label for the doc item Overview in sidebar webSidebar"
}
}
68 changes: 66 additions & 2 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
},
"theme.ErrorPageContent.tryAgain": {
"message": "重试",
"description": "The label of the button to try again when the page crashed"
"description": "The label of the button to try again rendering when the React error boundary captures an error"
},
"theme.NotFound.title": {
"message": "页面未找到",
Expand Down Expand Up @@ -199,7 +199,7 @@
},
"theme.colorToggle.ariaLabel": {
"message": "在暗色和亮色模式之间切换 (当前为 {mode})",
"description": "The ARIA label for the navbar color mode toggle"
"description": "The ARIA label for the color mode toggle"
},
"theme.colorToggle.ariaLabel.mode.dark": {
"message": "暗色模式",
Expand Down Expand Up @@ -401,5 +401,69 @@
},
"header.home_input_experience": {
"message": "首页输入框体验产品"
},
"theme.colorToggle.ariaLabel.mode.system": {
"message": "system mode",
"description": "The name for the system color mode"
},
"theme.docs.DocCard.categoryDescription.plurals": {
"message": "{count} 个项目",
"description": "The default description for a category card in the generated index about how many items this category includes"
},
"theme.admonition.warning": {
"message": "注意",
"description": "The default label used for the Warning admonition (:::warning)"
},
"theme.DocSidebarItem.expandCategoryAriaLabel": {
"message": "展开侧边栏分类 '{label}'",
"description": "The ARIA label to expand the sidebar category"
},
"theme.DocSidebarItem.collapseCategoryAriaLabel": {
"message": "折叠侧边栏分类 '{label}'",
"description": "The ARIA label to collapse the sidebar category"
},
"theme.IconExternalLink.ariaLabel": {
"message": "(opens in new tab)",
"description": "The ARIA label for the external link icon"
},
"theme.navbar.mobileDropdown.collapseButton.expandAriaLabel": {
"message": "Expand the dropdown",
"description": "The ARIA label of the button to expand the mobile dropdown navbar item"
},
"theme.navbar.mobileDropdown.collapseButton.collapseAriaLabel": {
"message": "Collapse the dropdown",
"description": "The ARIA label of the button to collapse the mobile dropdown navbar item"
},
"theme.blog.author.pageTitle": {
"message": "{authorName} - {nPosts}",
"description": "The title of the page for a blog author"
},
"theme.blog.authorsList.pageTitle": {
"message": "作者",
"description": "The title of the authors page"
},
"theme.blog.authorsList.viewAll": {
"message": "查看所有作者",
"description": "The label of the link targeting the blog authors page"
},
"theme.blog.author.noPosts": {
"message": "该作者尚未撰写任何文章。",
"description": "The text for authors with 0 blog post"
},
"theme.contentVisibility.unlistedBanner.title": {
"message": "未列出页",
"description": "The unlisted content banner title"
},
"theme.contentVisibility.unlistedBanner.message": {
"message": "此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。",
"description": "The unlisted content banner message"
},
"theme.contentVisibility.draftBanner.title": {
"message": "草稿页",
"description": "The draft content banner title"
},
"theme.contentVisibility.draftBanner.message": {
"message": "此页面是草稿,仅在开发环境中可见,不会包含在正式版本中。",
"description": "The draft content banner message"
}
}
76 changes: 50 additions & 26 deletions i18n/zh/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,102 +5,126 @@
},
"sidebar.webSidebar.category.Ecosystem Evaluation System": {
"message": "开源生态评估体系",
"description": "The label for category Ecosystem Evaluation System in sidebar webSidebar"
"description": "The label for category 'Ecosystem Evaluation System' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Ecosystem Evaluation System.link.generated-index.description": {
"message": "生态系统是用来描述站在生态学背景下的开源社区的健康状态。我们构建了一个评估体系的三维空间,包括开源生态、“协作、人、软件”和评估模型",
"description": "The generated-index page description for category Ecosystem Evaluation System in sidebar webSidebar"
"description": "The generated-index page description for category 'Ecosystem Evaluation System' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Collaboration-Productivity": {
"message": "协作-生产力",
"description": "The label for category Productivity in sidebar webSidebar"
"description": "The label for category 'Collaboration-Productivity' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Collaboration-Productivity.link.generated-index.description": {
"message": "一个开源生态将投入转化为产出的能力。",
"description": "The generated-index page description for category Productivity in sidebar webSidebar"
"description": "The generated-index page description for category 'Collaboration-Productivity' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Collaboration-Robustness": {
"message": "协作-稳健性",
"description": "The label for category Robustness in sidebar webSidebar"
"description": "The label for category 'Collaboration-Robustness' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Collaboration-Robustness.link.generated-index.description": {
"message": "生态系统面对内部或者外部冲突自我恢复的能力。",
"description": "The generated-index page description for category Robustness in sidebar webSidebar"
"description": "The generated-index page description for category 'Collaboration-Robustness' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Collaboration-Niche Creation": {
"message": "协作-创新力",
"description": "The label for category Niche Creation in sidebar webSidebar"
"description": "The label for category 'Collaboration-Niche Creation' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Collaboration-Niche Creation.link.generated-index.description": {
"message": "社区生态具有持续创造多样性创新的能力,并成为社区生态向前演进的动力。",
"description": "The generated-index page description for category Niche Creation in sidebar webSidebar"
"description": "The generated-index page description for category 'Collaboration-Niche Creation' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.People-Productivity": {
"message": "贡献者-生产力",
"description": "The label for category Productivity in sidebar webSidebar"
"description": "The label for category 'People-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"
"description": "The generated-index page description for category 'People-Productivity' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Software Artifact-Robustness": {
"message": "软件制品-稳健性",
"description": "The label for category Productivity in sidebar webSidebar"
"description": "The label for category 'Software Artifact-Robustness' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Software Artifact-Robustness.link.generated-index.description": {
"message": "生态系统面对内部或者外部冲突自我恢复的能力。",
"description": "The generated-index page description for category Productivity in sidebar webSidebar"
"description": "The generated-index page description for category 'Software Artifact-Robustness' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Community": {
"message": "社区交流",
"description": "The label for category Community in sidebar webSidebar"
"description": "The label for category 'Community' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Community.link.generated-index.description": {
"message": "加入开源指南针社区交流",
"description": "The generated-index page description for category Community in sidebar webSidebar"
"description": "The generated-index page description for category 'Community' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.category.Legal": {
"message": "法律合规",
"description": "The label for category Legal in sidebar webSidebar"
"description": "The label for category 'Legal' in sidebar 'webSidebar'"
},
"sidebar.webSidebar.link.GitHub": {
"message": "GitHub",
"description": "The label for link GitHub in sidebar webSidebar, linking to https://github.com/oss-compass"
"description": "The label for link 'GitHub' in sidebar 'webSidebar', linking to 'https://github.com/oss-compass'"
},
"sidebar.webSidebar.link.Gitee": {
"message": "Gitee",
"description": "The label for link Gitee in sidebar webSidebar, linking to https://gitee.com/oss-compass"
"description": "The label for link 'Gitee' in sidebar 'webSidebar', linking to 'https://gitee.com/oss-compass'"
},
"sidebar.webSidebar.doc.Quick Start": {
"message": "快速入门",
"description": "The label for the doc item Quick Start in sidebar webSidebar, linking to the doc community/quick-start"
"description": "The label for the doc item 'Quick Start' in sidebar 'webSidebar', linking to the doc community/quick-start"
},
"sidebar.webSidebar.doc.Overview": {
"message": "概览",
"description": "The label for the doc item Overview in sidebar webSidebar, linking to the doc docs/metrics-models/niche-creation/README"
"description": "The label for the doc item 'Overview' in sidebar 'webSidebar', linking to the doc docs/metrics-models/metrics-models-overview"
},
"sidebar.webSidebar.doc.Slack": {
"message": "Slack 频道",
"description": "The label for the doc item Slack in sidebar webSidebar, linking to the doc community/community/slack"
"description": "The label for the doc item 'Slack' in sidebar 'webSidebar', linking to the doc community/community/slack"
},
"sidebar.webSidebar.doc.WeChat": {
"message": "微信交流群",
"description": "The label for the doc item WeChat in sidebar webSidebar, linking to the doc community/community/wechat"
"description": "The label for the doc item 'WeChat' in sidebar 'webSidebar', linking to the doc community/community/wechat"
},
"sidebar.webSidebar.doc.Terms": {
"message": "使用条款",
"description": "The label for the doc item Terms in sidebar webSidebar, linking to the doc community/legal/terms-of-use"
"description": "The label for the doc item 'Terms' in sidebar 'webSidebar', linking to the doc community/legal/terms-of-use"
},
"sidebar.webSidebar.doc.Privacy": {
"message": "隐私政策",
"description": "The label for the doc item Privacy in sidebar webSidebar, linking to the doc community/legal/privacy-policy"
"description": "The label for the doc item 'Privacy' in sidebar 'webSidebar', linking to the doc community/legal/privacy-policy"
},
"sidebar.webSidebar.doc.Participating Contribution": {
"message": "如何参与贡献",
"description": "The label for the doc item Participating Contribution in sidebar webSidebar, linking to the doc community/CONTRIBUTING"
"description": "The label for the doc item 'Participating Contribution' in sidebar 'webSidebar', linking to the doc community/CONTRIBUTING"
},
"sidebar.webSidebar.doc.Weekly Meeting": {
"message": "技术研讨会",
"description": "The label for the doc item Weekly Meeting in sidebar webSidebar, linking to the doc community/community/metting"
"description": "The label for the doc item 'Weekly Meeting' in sidebar 'webSidebar', linking to the doc community/community/metting"
},
"sidebar.webSidebar.doc.metrics-models-overview": {
"message": "概览",
"description": "The label for the doc item 'Overview' in sidebar 'webSidebar', linking to the doc docs/metrics-models/metrics-models-overview"
},
"sidebar.webSidebar.doc.collaboration-productivity-overview": {
"message": "概览",
"description": "The label for the doc item 'Overview' in sidebar 'webSidebar', linking to the doc docs/metrics-models/collaboration/productivity/collaboration-productivity-overview"
},
"sidebar.webSidebar.doc.collaboration-robustness-overview": {
"message": "概览",
"description": "The label for the doc item 'Overview' in sidebar 'webSidebar', linking to the doc docs/metrics-models/collaboration/robustness/collaboration-robustness-overview"
},
"sidebar.webSidebar.doc.collaboration-niche-creation-overview": {
"message": "概览",
"description": "The label for the doc item 'Overview' in sidebar 'webSidebar', linking to the doc docs/metrics-models/collaboration/niche-creation/collaboration-niche-creation-overview"
},
"sidebar.webSidebar.doc.people-productivity-overview": {
"message": "概览",
"description": "The label for the doc item 'Overview' in sidebar 'webSidebar', linking to the doc docs/metrics-models/people/productivity/people-productivity-overview"
},
"sidebar.webSidebar.doc.software-artifact-robustness-overview": {
"message": "概览",
"description": "The label for the doc item 'Overview' in sidebar 'webSidebar', linking to the doc docs/metrics-models/software_artifact/robustness/software-artifact-robustness-overview"
}
}
}
Loading