You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by lg...@apache.org on 2020/06/12 02:16:53 UTC
[incubator-dolphinscheduler-website] branch master updated: Add
1.3.0 directory
This is an automated email from the ASF dual-hosted git repository.
lgcareer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler-website.git
The following commit(s) were added to refs/heads/master by this push:
new 4f4bde2 Add 1.3.0 directory
new c5fe8b1 Merge pull request #129 from break60/master
4f4bde2 is described below
commit 4f4bde2b384d99358e2573cffd1deb9726a0ae21
Author: break60 <79...@qq.com>
AuthorDate: Fri Jun 12 09:45:55 2020 +0800
Add 1.3.0 directory
---
site_config/docs1-3-0.js | 140 ++++++++++++++++++++++++++++++++++++++
site_config/site.js | 18 +++--
src/pages/documentation/index.jsx | 6 ++
3 files changed, 160 insertions(+), 4 deletions(-)
diff --git a/site_config/docs1-3-0.js b/site_config/docs1-3-0.js
new file mode 100644
index 0000000..625d2b9
--- /dev/null
+++ b/site_config/docs1-3-0.js
@@ -0,0 +1,140 @@
+export default {
+ 'en-us': {
+ sidemenu: [
+ {
+ title: 'Deployment Document',
+ children: [
+ {
+ title: 'Hareware Environment',
+ link: '/en-us/docs/1.3.0/user_doc/hardware-environment.html',
+ },
+ {
+ title: 'Backend deploy',
+ link: '/en-us/docs/1.3.0/user_doc/backend-deployment.html',
+ },
+ {
+ title: 'Frontend deploy',
+ link: '/en-us/docs/1.3.0/user_doc/frontend-deployment.html',
+ }
+ ]
+ },
+ {
+ title: 'User Manual',
+ children: [
+ {
+ title: 'Quick Start',
+ link: '/en-us/docs/1.3.0/user_doc/quick-start.html',
+ },
+ {
+ title: 'User Manual',
+ link: '/en-us/docs/1.3.0/user_doc/system-manual.html',
+ },
+ {
+ title: 'Metadata',
+ link: '/en-us/docs/1.3.0/user_doc/metadata-1.2.html'
+ },
+ ]
+ },
+ {
+ title: 'Api Document',
+ children: [
+ {
+ title: 'Api Document',
+ target: '_blank',
+ link: 'http://106.75.43.194:8888/dolphinscheduler/doc.html?language=en&lang=enn'
+ }
+ ]
+ },
+ {
+ title: 'Upgrade',
+ children: [
+ {
+ title: 'Upgrade',
+ link: '/en-us/docs/1.3.0/user_doc/upgrade.html',
+ }
+ ]
+ },
+ {
+ title: 'FAQ',
+ children: [
+ {
+ title: 'FAQ',
+ link: '/en-us/docs/release/faq.html',
+ }
+ ]
+ }
+ ],
+ barText: 'Documentation',
+ },
+ 'zh-cn': {
+ sidemenu: [
+ {
+ title: '部署文档',
+ children: [
+ {
+ title: '软硬件环境建议配置',
+ link: '/zh-cn/docs/1.3.0/user_doc/hardware-environment.html',
+ },
+ {
+ title: '单机部署(Standalone)',
+ link: '/zh-cn/docs/1.3.0/user_doc/standalone-deployment.html',
+ },
+ {
+ title: '集群部署(Cluster)',
+ link: '/zh-cn/docs/1.3.0/user_doc/cluster-deployment.html',
+ }
+ ],
+ },
+ {
+ title: '用户手册',
+ children: [
+ {
+ title: '快速上手',
+ link: '/zh-cn/docs/1.3.0/user_doc/quick-start.html',
+ },
+ {
+ title: '用户手册',
+ link: '/zh-cn/docs/1.3.0/user_doc/system-manual.html',
+ },
+ {
+ title: '元数据文档',
+ link: '/zh-cn/docs/1.3.0/user_doc/metadata-1.2.html'
+ },
+ {
+ title: '部署参数分析',
+ link: '/zh-cn/docs/1.3.0/user_doc/deployparam.html'
+ },
+ ],
+ },
+ {
+ title: 'API文档',
+ children: [
+ {
+ title: 'API文档',
+ target: '_blank',
+ link: 'http://106.75.43.194:8888/dolphinscheduler/doc.html?language=zh_CN&lang=zh'
+ }
+ ]
+ },
+ {
+ title: '版本升级',
+ children: [
+ {
+ title: '升级',
+ link: '/zh-cn/docs/1.3.0/user_doc/upgrade.html',
+ }
+ ],
+ },
+ {
+ title: 'FAQ',
+ children: [
+ {
+ title: 'FAQ',
+ link: '/zh-cn/docs/release/faq.html',
+ }
+ ]
+ }
+ ],
+ barText: '文档'
+ }
+};
diff --git a/site_config/site.js b/site_config/site.js
index e3c2ea0..69695d4 100755
--- a/site_config/site.js
+++ b/site_config/site.js
@@ -18,16 +18,21 @@ export default {
children: [
{
key: 'docs1',
+ text: '1.3.0',
+ link: '/en-us/docs/1.3.0/user_doc/quick-start.html',
+ },
+ {
+ key: 'docs2',
text: '1.2.1',
link: '/en-us/docs/1.2.1/user_doc/quick-start.html',
},
{
- key: 'docs2',
+ key: 'docs3',
text: '1.2.0(Recommend)',
link: '/en-us/docs/1.2.0/user_doc/quick-start.html',
},
{
- key: 'docs3',
+ key: 'docs4',
text: '1.1.0(Not Apache Release)',
link: 'https://analysys.github.io/easyscheduler_docs_cn/',
}
@@ -119,16 +124,21 @@ export default {
children: [
{
key: 'docs1',
+ text: '1.3.0',
+ link: '/zh-cn/docs/1.3.0/user_doc/quick-start.html',
+ },
+ {
+ key: 'docs2',
text: '1.2.1',
link: '/zh-cn/docs/1.2.1/user_doc/quick-start.html',
},
{
- key: 'docs2',
+ key: 'docs3',
text: '1.2.0(推荐)',
link: '/zh-cn/docs/1.2.0/user_doc/quick-start.html',
},
{
- key: 'docs3',
+ key: 'docs4',
text: '1.1.0(Not Apache Release)',
link: 'https://analysys.github.io/easyscheduler_docs_cn/',
}
diff --git a/src/pages/documentation/index.jsx b/src/pages/documentation/index.jsx
index 992f3b7..4a34bec 100755
--- a/src/pages/documentation/index.jsx
+++ b/src/pages/documentation/index.jsx
@@ -10,9 +10,11 @@ import Sidemenu from '../../components/sidemenu';
import Footer from '../../components/footer';
import docsConfig from '../../../site_config/docs';
import docsConfig1 from '../../../site_config/docs1-2-1';
+import docsConfig2 from '../../../site_config/docs1-3-0';
import devConfig from '../../../site_config/development';
import './index.scss';
+
// 锚点正则
const anchorReg = /^#[^/]/;
// 相对地址正则,包括./、../、直接文件夹名称开头、直接文件开头
@@ -93,12 +95,16 @@ class Documentation extends Language {
if (window.location.pathname.indexOf('/development/') >= 0) {
dataSource = devConfig[language];
}
+ if (window.location.pathname.indexOf('/1.3.0/') >= 0) {
+ dataSource = docsConfig2[language];
+ }
if (window.location.pathname.indexOf('/1.2.1/') >= 0) {
dataSource = docsConfig1[language];
}
if (window.location.pathname.indexOf('/1.2.0/') >= 0) {
dataSource = docsConfig[language];
}
+
const __html = this.props.__html || this.state.__html;
return (
<div className="documentation-page">