This is an automated email from the ASF dual-hosted git repository.
roryqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle-website.git
The following commit(s) were added to refs/heads/master by this push:
new 895524a Translate home page in zh-CN (#52)
895524a is described below
commit 895524a4be35898e6df9f98e3c4a63a59d0b2a82
Author: Thinking Chen <[email protected]>
AuthorDate: Thu Aug 3 09:44:41 2023 +0800
Translate home page in zh-CN (#52)
---
README.md | 10 +++
.../components/HomepageFeatures/index.tsx | 84 ++++++++++++++++++++++
.../docusaurus-plugin-content-pages/index.tsx | 46 ++++++++++++
i18n/zh-CN/docusaurus-theme-classic/footer.json | 17 +++++
i18n/zh-CN/docusaurus-theme-classic/navbar.json | 21 ++++++
5 files changed, 178 insertions(+)
diff --git a/README.md b/README.md
index ecb1a1c..c88862d 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,11 @@
# incubator-uniffle-website
+
+local startup
+```shell
+npm start
+```
+
+If you want to start with i18n, e.g. switch to zh-cn, you can use the
following command:
+```shell
+npm start -- --locale zh-CN
+```
\ No newline at end of file
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-pages/components/HomepageFeatures/index.tsx
b/i18n/zh-CN/docusaurus-plugin-content-pages/components/HomepageFeatures/index.tsx
new file mode 100644
index 0000000..4d16cfa
--- /dev/null
+++
b/i18n/zh-CN/docusaurus-plugin-content-pages/components/HomepageFeatures/index.tsx
@@ -0,0 +1,84 @@
+import React from 'react';
+import clsx from 'clsx';
+import styles from
'../../../../../src/components/HomepageFeatures/styles.module.css';
+
+type FeatureItem = {
+ title: string;
+ description: JSX.Element;
+};
+
+const FeatureList: FeatureItem[] = [
+ {
+ title: '快速',
+ description: (
+ <>
+ 减少数据 shuffle 过程中的连接数和随机 I/O。
+ </>
+ ),
+ },
+ {
+ title: '可靠',
+ description: (
+ <>
+ 减少大型任务中出现内存(或磁盘空间)不足的故障。
+ </>
+ ),
+ },
+ {
+ title: '弹性',
+ description: (
+ <>
+ 支持编排和提高资源利用率。
+ </>
+ ),
+ },
+ {
+ title: 'Spark 支持',
+ description: (
+ <>
+ 支持 Apache Spark 2.3.x, 2.4.x, 3.0.x, 3.1.x, 3.2.x, 3.3.x。
+ </>
+ ),
+ },
+ {
+ title: 'MapReduce/Tez 支持',
+ description: (
+ <>
+ 支持 Apache Hadoop 2.8.x, 3.2.x 和 Apache Tez 0.9.1 的 MapReduce 架构
+ </>
+ ),
+ },
+ {
+ title: 'Kubernetes Operator',
+ description: (
+ <>
+ 扩展 Kubernetes API 从而可以创建、配置和管理 Uniffle 实例。
+ </>
+ ),
+ },
+];
+
+function Feature({title, description}: FeatureItem) {
+ return (
+ <div className={clsx('col col--4')}>
+ <div className="text--center padding-horiz--md">
+ <h3>{title}</h3>
+ <p>{description}</p>
+ </div>
+ </div>
+ );
+}
+
+export default function HomepageFeatures(): JSX.Element {
+ return (
+ <section className={styles.features}>
+ <div className="container">
+ <div className="row">
+ {FeatureList.map((props, idx) => (
+ <Feature key={idx} {...props} />
+ ))}
+ </div>
+ </div>
+ </section>
+ );
+}
diff --git a/i18n/zh-CN/docusaurus-plugin-content-pages/index.tsx
b/i18n/zh-CN/docusaurus-plugin-content-pages/index.tsx
new file mode 100644
index 0000000..87ca914
--- /dev/null
+++ b/i18n/zh-CN/docusaurus-plugin-content-pages/index.tsx
@@ -0,0 +1,46 @@
+import React from 'react';
+import clsx from 'clsx';
+import Link from '@docusaurus/Link';
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import Layout from '@theme/Layout';
+import HomepageFeatures from './components/HomepageFeatures';
+
+import styles from '../../../src/pages/index.module.css';
+
+function HomepageHeader() {
+ const {siteConfig} = useDocusaurusContext();
+ return (
+ <header className={clsx('hero hero--primary', styles.heroBanner)}>
+ <div className="container">
+ <h1 className="hero__title">{siteConfig.title}</h1>
+ <p className="hero__subtitle">Apache Uniffle 是一个适用于分布式计算引擎的高性能、通用型的远程
shuffle 服务。</p>
+ <div className={styles.buttons}>
+ <Link
+ className="button button--secondary button--lg"
+ to="/docs/intro">
+ 开始文档
+ </Link>
+ <Link
+ className="button button--secondary button--lg"
+ to="https://github.com/apache/incubator-uniffle">
+ GitHub
+ </Link>
+ </div>
+ </div>
+ </header>
+ );
+}
+
+export default function Home(): JSX.Element {
+ const {siteConfig} = useDocusaurusContext();
+ return (
+ <Layout
+ title="主页"
+ description="Apache Uniffle 是一个适用于分布式计算引擎的高性能、通用型的远程 shuffle 服务。">
+ <HomepageHeader />
+ <main>
+ <HomepageFeatures />
+ </main>
+ </Layout>
+ );
+}
diff --git a/i18n/zh-CN/docusaurus-theme-classic/footer.json
b/i18n/zh-CN/docusaurus-theme-classic/footer.json
new file mode 100644
index 0000000..20c6ad0
--- /dev/null
+++ b/i18n/zh-CN/docusaurus-theme-classic/footer.json
@@ -0,0 +1,17 @@
+{
+ "link.title.Docs": {
+ "message": "文档"
+ },
+ "link.title.More": {
+ "message": "更多"
+ },
+ "link.title.Community": {
+ "message": "社区"
+ },
+ "link.item.label.Getting Started": {
+ "message": "开始文档"
+ },
+ "link.item.label.Issue Tracker": {
+ "message": "问题跟踪"
+ }
+}
diff --git a/i18n/zh-CN/docusaurus-theme-classic/navbar.json
b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
index b20ffca..61ebfc5 100644
--- a/i18n/zh-CN/docusaurus-theme-classic/navbar.json
+++ b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
@@ -18,5 +18,26 @@
"item.label.Download": {
"message": "下载",
"description": "Navbar item with label Download"
+ },
+ "item.label.Sponsorship": {
+ "message": "赞助"
+ },
+ "item.label.Foundation": {
+ "message": "基金会"
+ },
+ "item.label.License": {
+ "message": "许可证"
+ },
+ "item.label.Events": {
+ "message": "事件"
+ },
+ "item.label.Security": {
+ "message": "安全"
+ },
+ "item.label.Privacy": {
+ "message": "隐私"
+ },
+ "item.label.Thanks": {
+ "message": "感谢"
}
}