You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ki...@apache.org on 2022/02/22 01:50:17 UTC
[incubator-seatunnel-website] branch main updated: Add scheduled deployment and document optimization (#66)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel-website.git
The following commit(s) were added to refs/heads/main by this push:
new dcc3096 Add scheduled deployment and document optimization (#66)
dcc3096 is described below
commit dcc30964bdf28c62dfa30de8a066518f474c41a8
Author: wuchunfu <31...@qq.com>
AuthorDate: Tue Feb 22 09:50:12 2022 +0800
Add scheduled deployment and document optimization (#66)
---
.github/workflows/deploy.yml | 9 ++-
README.md | 146 +++++++++++++++++++++++++----------------
README_ZH.md | 151 ++++++++++++++++++++++++++-----------------
docs/introduction.md | 43 ++++++------
tools/build-docs.sh | 5 +-
5 files changed, 217 insertions(+), 137 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index f97a580..a15d89d 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -1,6 +1,13 @@
name: Build and Deploy
-on: [push]
+on:
+ pull_request:
+ branches: [main]
+ push:
+ branches: [main]
+ schedule:
+ # Run everyday at 5:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07)
+ - cron: "0 5 * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
diff --git a/README.md b/README.md
index 974c182..ec69d4f 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
# Apache SeaTunnel Website
+
[](https://www.apache.org/licenses/LICENSE-2.0.html)
[English](README.md) | [中文](README_ZH.md)
@@ -6,8 +7,8 @@
This is the repository containing all the source code of `https://seatunnel.apache.org`.
This guide will guide you how to contribute to the SeaTunnel website.
-
## Branch
+
main is the default branch. For all modifications, please fork first, and then proceed on the main branch.
```
@@ -16,7 +17,6 @@ asf-site #The official environment of asf-site official website is accessed th
asf-staging #The asf-staging official website test environment is accessed through https://seatunnel.staged.apache.org
```
-
## 1. Preview and generate static files
This website is compiled using node, using Docusaurus framework components
@@ -29,43 +29,57 @@ This website is compiled using node, using Docusaurus framework components
5. To generate static website resource files, run `npm run build`. The static resources of the build are in the build directory.
## 2. Directory structure
-```html
-|-- community
-|-- docs // The next version of the document that will be released soon
-|-- download
-|-- faq // Q&A
-|-- i18n
-| `-- zh-CN //Internationalized Chinese
-| |-- code.json
-| |-- docusaurus-plugin-content-blog
-| |-- docusaurus-plugin-content-docs
-| |-- docusaurus-plugin-content-docs-community
-| |-- docusaurus-plugin-content-docs-download
-| |-- docusaurus-plugin-content-docs-faq
-| `-- docusaurus-theme-classic
-|-- resource // Original project files for architecture/timing diagram/flow chart, etc.
-|-- src
-| |-- components
-| |-- css
-| |-- js
-| |-- pages
-| | |-- home
-| | |-- index.jsx
-| | |-- team
-| | |-- user
-| | `-- versions
-| |-- styles
-|-- static // Picture static resource
-| |-- doc // document picture
-| |-- image //document common picture
-| |-- image_en //English document picture
-| |-- image_zh //Chinese document picture
-| |-- user // users picture
-| |-- home // homepage picture
-| |-- image // common picture
-|-- docusaurus.config.js
```
+├── LICENSE
+├── Logo.png
+├── README.md
+├── README_ZH.md
+├── babel.config.js
+├── blog
+├── community // Community
+├── docs // Documentation
+├── docusaurus.config.js
+|-- download // Download
+├── faq // Q&A
+├── i18n
+│ └── zh-CN // Internationalized Chinese
+│ ├── docusaurus-plugin-content-blog
+│ ├── docusaurus-plugin-content-docs
+│ ├── docusaurus-plugin-content-docs-community
+│ ├── docusaurus-plugin-content-docs-download
+│ ├── docusaurus-plugin-content-docs-faq
+│ └── docusaurus-theme-classic
+├── package.json
+├── sidebars.js
+├── src
+│ ├── components
+│ ├── css
+│ ├── js
+│ ├── pages
+│ │ ├── home
+│ │ ├── index.tsx
+│ │ ├── team
+│ │ ├── user
+│ │ └── versions
+│ └── styles
+├── static // static resources
+│ ├── doc // Static resources for documentation
+│ │ ├── image // Document common image
+│ │ ├── image_en // English document picture
+│ │ └── image_zh // Chinese document picture
+│ ├── home // Homepage pictures
+│ ├── image // Module common pictures
+│ └── user // user picture
+├── tools
+ │└── build-docs.sh // Document sync script
+├── tsconfig.json
+├── versioned_docs // Version documentation
+│ ├── version-2.0.5
+├── versioned_sidebars // Version sidebars
+│ ├── version-2.0.5-sidebars.json
+├── versions.json // Version
+```
## 3. Specification
@@ -92,44 +106,64 @@ Image resources are unified under `static/{module name}`
css and other style files are placed in the `src/css` directory
### 3.4 Page content modification
+
> Except for the homepage, team, user, Docs>All Version module page, all other pages can be directly jumped to the corresponding github resource modification page through the'Edit this page' button at the bottom
### 3.5 Home page modification
+
Visit the page https://seatunnel.apache.org
+
Located in `src/pages/home`
```
-├─home
-│ languages.json // Home page Chinese and English configuration
-│ index.less // homepage style
+├── home
+ ├── index.jsx
+ ├── index.less
+ └── languages.json
```
+
### 3.6 Team page modification
+
Visit the page https://seatunnel.apache.org/team
+
Located in `src/pages/team`
+
```
-├─team
-│ languages.json
-│ index.js
-│ index.less
+├── team
+ ├── index.js
+ ├── index.less
+ └── languages.json
```
+
### 3.7 User list page modification
+
Visit the page https://seatunnel.apache.org/user
-```
+
Located in `src/pages/user`
-└─versions
- data.json
- images.json
- index.js
- index.less
- languages.json
+
+```
+├── user
+ ├── data.json
+ ├── images.json
+ ├── index.js
+ ├── index.less
+ └── languages.json
```
### 3.8 version List page modification
+
Visit the page https://seatunnel.apache.org/versions
-```
+
Located in `src/pages/versions`
-└─versions
- languages.json
- index.jsorchestrator/overview.md
- index.less
+
```
+└── versions
+ ├── config.json
+ ├── index.js
+ └── index.less
+```
+
+### 3.9 add a new version for documents
+
+- 1、Run `npm run docusaurus docs:version replace_by_target_version` locally to copy a document.
+- 2、Modify the last version in `/src/pages/version/index.js` .
diff --git a/README_ZH.md b/README_ZH.md
index 5aaa814..6bf6907 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -1,4 +1,5 @@
# Apache SeaTunnel Website
+
[](https://www.apache.org/licenses/LICENSE-2.0.html)
[English](README.md) | [中文](README_ZH.md)
@@ -6,16 +7,16 @@
这是包含 `https://seatunnel.apache.org` 的所有源代码的存储库。
本指南将指导您如何为SeaTunnel的网站做出贡献。
+## 分支
-## 分支
main为默认主分支,修改请先fork到自己的仓库,然后在main分支上进行开发修改。
+
```
main 默认分支
asf-site 官网正式环境 通过https://seatunnel.apache.org 访问
asf-staging 官网测试环境 通过https://seatunnel.staged.apache.org 访问
```
-
## 1.预览并生成静态文件
本网站是使用node编译的,使用的是Docusaurus框架组件
@@ -28,43 +29,57 @@ asf-staging 官网测试环境 通过https://seatunnel.staged.apache.org 访问
5. 要生成静态网站资源文件,运行 `npm run build`。构建的静态资源在build目录中。
## 2.目录结构
-```html
-
-|-- community //社区
-|-- docs //文档 存方下一个即将发布的版本
-|-- download //下载
-|-- faq //Q&A
-|-- i18n
-| -- zh-CN //国际化中文
-| |-- code.json
-| |-- docusaurus-plugin-content-blog
-| |-- docusaurus-plugin-content-docs
-| |-- docusaurus-plugin-content-docs-community
-| |-- docusaurus-plugin-content-docs-download
-| |-- docusaurus-plugin-content-docs-faq
-| `-- docusaurus-theme-classic
-|-- resource // 架构/时序/流程图等的原始工程文件
-|-- src
-| |-- components
-| |-- css
-| |-- js
-| |-- pages
-| | |-- home
-| | |-- index.jsx
-| | |-- team
-| | |-- user
-| |-- styles
-|-- static //静态资源
-| |-- doc //文档的静态资源
-| |-- image //文档通用图片
-| |-- image_en //英文文档图片
-| |-- image_zh //中文文档图片
-| |-- user //用户的图片
-| |-- home //首页的图片
-| |-- image //模块公用图片
-|-- docusaurus.config.js
```
+├── LICENSE
+├── Logo.png
+├── README.md
+├── README_ZH.md
+├── babel.config.js
+├── blog
+├── community // 社区
+├── docs // 文档
+├── docusaurus.config.js
+|-- download // 下载
+├── faq // Q&A
+├── i18n
+│ └── zh-CN // 国际化中文
+│ ├── docusaurus-plugin-content-blog
+│ ├── docusaurus-plugin-content-docs
+│ ├── docusaurus-plugin-content-docs-community
+│ ├── docusaurus-plugin-content-docs-download
+│ ├── docusaurus-plugin-content-docs-faq
+│ └── docusaurus-theme-classic
+├── package.json
+├── sidebars.js
+├── src
+│ ├── components
+│ ├── css
+│ ├── js
+│ ├── pages
+│ │ ├── home
+│ │ ├── index.tsx
+│ │ ├── team
+│ │ ├── user
+│ │ └── versions
+│ └── styles
+├── static // 静态资源
+│ ├── doc // 文档的静态资源
+│ │ ├── image // 文档通用图片
+│ │ ├── image_en // 英文文档图片
+│ │ └── image_zh // 中文文档图片
+│ ├── home // 首页的图片
+│ ├── image // 模块公用图片
+│ └── user // 用户的图片
+├── tools
+ │└── build-docs.sh // 文档同步脚本
+├── tsconfig.json
+├── versioned_docs // 版本文档
+│ ├── version-2.0.5
+├── versioned_sidebars // 版本 sidebars
+│ ├── version-2.0.5-sidebars.json
+├── versions.json // 版本
+```
## 3.规范
@@ -84,51 +99,71 @@ asf-staging 官网测试环境 通过https://seatunnel.staged.apache.org 访问
反例: `renderDom.js / UserManagement.html`
-### 3.3 资源路径
+### 3.3 资源路径
图片资源统一放在`static/{模块名}`下
css等样式文件放在`src/css`目录下
-### 3.4 页面内容修改
+### 3.4 页面内容修改
+
> 除了首页、团队、用户、Docs>All Version 模块页面外,其余页面都能通过底部的'Edit this page'按钮 直接跳转至对应的github的资源修改页
### 3.5 首页页面修改
+
访问页面 https://seatunnel.apache.org/
+
位于 `src/pages/home`
```
-├─home
-│ languages.json 首页中英文的配置
-│ index.less 首页样式
+├── home
+ ├── index.jsx
+ ├── index.less
+ └── languages.json
```
+
### 3.6 团队页面修改
+
访问页面 https://seatunnel.apache.org/zh-CN/team
+
位于 `src/pages/team`
+
```
-├─team
-│ languages.json
-│ index.js
-│ index.less
+├── team
+ ├── index.js
+ ├── index.less
+ └── languages.json
```
+
### 3.7 用户 列表页面修改
+
访问页面 https://seatunnel.apache.org/zh-CN/user/
-```
+
位于 `src/pages/user`
-└─versions
- data.json
- images.json
- index.js
- index.less
- languages.json
+
+```
+├── user
+ ├── data.json
+ ├── images.json
+ ├── index.js
+ ├── index.less
+ └── languages.json
```
### 3.8 version 列表页面修改
+
访问页面 https://seatunnel.apache.org/zh-CN/versions/
-```
+
位于 `src/pages/versions`
-└─versions
- languages.json
- index.jsorchestrator/overview.md
- index.less
+
```
+└── versions
+ ├── config.json
+ ├── index.js
+ └── index.less
+```
+
+### 3.9 为文档添加新版本
+
+- 1、在本地运行 npm run docusaurus docs:version replace_by_target_version 以复制文档。
+- 2、修改 `/src/pages/version/index.js` 中的最新的版本。
diff --git a/docs/introduction.md b/docs/introduction.md
index 9b4247d..0f664c7 100644
--- a/docs/introduction.md
+++ b/docs/introduction.md
@@ -5,17 +5,17 @@ sidebar_position: 1
# SeaTunnel
-<img src="https://seatunnel.apache.org/image/logo.png" alt="seatunnel logo" height="200px" align="right" />
+<img src="https://seatunnel.apache.org/image/logo.png" alt="seatunnel logo" width="200px" height="200px" align="right" />
-[](https://github.com/apache/incubator-seatunnel/actions/workflows/backend.yml)
[](https://join.slack.com/t/apacheseatunnel/shared_invite/zt-123jmewxe-RjB_DW3M3gV~xL91pZ0oVQ)
[](https://twitter.com/ASFSeaTunnel)
-[](README.md)
-[](README_zh_CN.md)
+---
SeaTunnel was formerly named Waterdrop , and renamed SeaTunnel since October 12, 2021.
+---
+
SeaTunnel is a very easy-to-use ultra-high-performance distributed data integration platform that supports real-time
synchronization of massive data. It can synchronize tens of billions of data stably and efficiently every day, and has
been used in the production of nearly 100 companies.
@@ -51,9 +51,11 @@ SeaTunnel will do its best to solve the problems that may be encountered in the
## Workflow of SeaTunnel
-
+
-Input[Data Source Input] -> Filter[Data Processing] -> Output[Result Output]
+```
+Source[Data Source Input] -> Transform[Data Processing] -> Sink[Result Output]
+```
The data processing pipeline is constituted by multiple filters to meet a variety of data processing needs. If you are
accustomed to SQL, you can also directly construct a data processing pipeline by SQL, which is simple and efficient.
@@ -62,12 +64,12 @@ processing plug-in, because the whole system is easy to expand.
## Plugins supported by SeaTunnel
-- Input plugin Fake, File, Hdfs, Kafka, Druid, S3, Socket, self-developed Input plugin
+- Input plugin Fake, File, Hdfs, Kafka, Druid, InfluxDB, S3, Socket, self-developed Input plugin
- Filter plugin Add, Checksum, Convert, Date, Drop, Grok, Json, Kv, Lowercase, Remove, Rename, Repartition, Replace,
Sample, Split, Sql, Table, Truncate, Uppercase, Uuid, Self-developed Filter plugin
-- Output plugin Elasticsearch, File, Hdfs, Jdbc, Kafka, Druid, Mysql, S3, Stdout, self-developed Output plugin
+- Output plugin Elasticsearch, File, Hdfs, Jdbc, Kafka, Druid, InfluxDB, Mysql, S3, Stdout, self-developed Output plugin
## Environmental dependency
@@ -84,13 +86,18 @@ and Flink.
## Downloads
-Download address for run-directly software package: https://github.com/apache/incubator-seatunnel/releases
+Download address for run-directly software package :https://github.com/apache/incubator-seatunnel/releases
## Quick start
-Quick start: https://interestinglab.github.io/seatunnel-docs/#/zh-cn/v1/quick-start
+**Spark**
+https://seatunnel.apache.org/docs/spark/quick-start
-Detailed documentation on SeaTunnel:https://interestinglab.github.io/seatunnel-docs/#/
+**Flink**
+https://seatunnel.apache.org/docs/flink/quick-start
+
+Detailed documentation on SeaTunnel
+https://seatunnel.apache.org/docs/introduction
## Application practice cases
@@ -129,9 +136,9 @@ volume average daily, and later writing the data to Clickhouse.
Collecting various logs from business services into Apache Kafka, some of the data in Apache Kafka is consumed and extracted through Seatunnel, and then store into Clickhouse.
-For more use cases, please refer to: https://interestinglab.github.io/seatunnel-docs/#/zh-cn/case_study/
+For more use cases, please refer to: https://seatunnel.apache.org/blog
-## Code of conduct
+# Code of conduct
This project adheres to the Contributor Covenant [code of conduct](https://www.apache.org/foundation/policies/conduct).
By participating, you are expected to uphold this code. Please follow
@@ -146,17 +153,17 @@ Thanks to all developers!
## Contact Us
-* Mail list: **dev@seatunnel.apache.org**. Mail to `dev-subscribe@seatunnel.apache.org`, follow the reply to subscribe the mail list.
+* Mail list: **dev@seatunnel.apache.org**. Mail to `dev-subscribe@seatunnel.apache.org`, follow the reply to subscribe
+ the mail list.
* Slack: https://join.slack.com/t/apacheseatunnel/shared_invite/zt-123jmewxe-RjB_DW3M3gV~xL91pZ0oVQ
* Twitter: https://twitter.com/ASFSeaTunnel
-* [bilibili](https://space.bilibili.com/1542095008) (for china users)
+* [Bilibili](https://space.bilibili.com/1542095008) (for Chinese users)
-## Landscapes
+# Landscapes
<p align="center">
<br/><br/>
-<img src="https://landscape.cncf.io/images/left-logo.svg" width="150" alt=""/> <img src="https://landscape.cncf.io/images/right-logo.svg" width="200" alt=""/>
+<img src="https://landscape.cncf.io/images/left-logo.svg" width="150"/> <img src="https://landscape.cncf.io/images/right-logo.svg" width="200"/>
<br/><br/>
SeaTunnel enriches the <a href="https://landscape.cncf.io/landscape=observability-and-analysis&license=apache-license-2-0">CNCF CLOUD NATIVE Landscape.</a >
</p >
-
diff --git a/tools/build-docs.sh b/tools/build-docs.sh
index 6c24a74..88b36c7 100644
--- a/tools/build-docs.sh
+++ b/tools/build-docs.sh
@@ -4,7 +4,7 @@ WEBSITE_REPO="https://github.com/apache/incubator-seatunnel-website.git"
MAIN_REPO="https://github.com/apache/incubator-seatunnel.git"
WEBSITE_REPO_NAME="incubator-seatunnel-website"
-WEBSITE_NAME="seatunnel-website"
+WEBSITE_NAME="website"
MAIN_NAME="seatunnel"
WORK_PATH=~/work/incubator-seatunnel-website
@@ -18,9 +18,6 @@ fi
echo "===>>>: Start documents sync"
-CURRENT_PATH=$(cd "$(dirname "$0")"; pwd)
-echo "===>>>: current path: ${CURRENT_PATH}"
-
cd ${WORK_PATH}
echo "===>>>: current work path: ${WORK_PATH}"