You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2021/10/28 11:44:27 UTC
[incubator-linkis-website] 14/47: FIX: 调整文档思路
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git
commit b644c2daee9a446065c58fd7979324f4d05a7a2c
Author: lucaszhu <lu...@webank.com>
AuthorDate: Mon Oct 11 15:51:35 2021 +0800
FIX: 调整文档思路
---
src/App.vue | 2 +-
src/docs/deploy/distributed_en.md | 1 +
src/docs/deploy/distributed_zh.md | 1 +
src/docs/deploy/engins_en.md | 1 +
src/docs/deploy/engins_zh.md | 1 +
src/docs/deploy/linkis_en.md | 1 +
src/docs/{deploy.md => deploy/linkis_zh.md} | 0
src/docs/deploy/main_en.md | 1 +
src/docs/deploy/main_zh.md | 1 +
src/docs/deploy/structure_en.md | 1 +
src/docs/deploy/structure_zh.md | 1 +
src/pages/docs/deploy/distributed.vue | 13 +++++++++++++
src/pages/docs/deploy/engins.vue | 13 +++++++++++++
src/pages/docs/deploy/linkis.vue | 13 +++++++++++++
src/pages/docs/deploy/main.vue | 13 +++++++++++++
src/pages/docs/deploy/structure.vue | 13 +++++++++++++
src/pages/{docs.vue => docs/index.vue} | 25 ++++++++++++-------------
src/router.js | 23 ++++++++++++++++++++++-
18 files changed, 109 insertions(+), 15 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 29efbc4..ba07b2a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -23,7 +23,7 @@ const switchLang = (lang) => {
<span class="nav-logo-badge">Incubating</span>
<div class="menu-list">
<router-link class="menu-item" to="/"><span class="label">Home</span></router-link>
- <router-link class="menu-item" to="/docs"><span class="label">Docs</span></router-link>
+ <router-link class="menu-item" to="/docs/deploy"><span class="label">Docs</span></router-link>
<router-link class="menu-item" to="/faq"><span class="label">FAQ</span></router-link>
<router-link class="menu-item" to="/download"><span class="label">Download</span></router-link>
<router-link class="menu-item" to="/blog"><span class="label">Blog</span></router-link>
diff --git a/src/docs/deploy/distributed_en.md b/src/docs/deploy/distributed_en.md
new file mode 100644
index 0000000..c22103d
--- /dev/null
+++ b/src/docs/deploy/distributed_en.md
@@ -0,0 +1 @@
+Linkis1.0 分布式部署手册`英文`
\ No newline at end of file
diff --git a/src/docs/deploy/distributed_zh.md b/src/docs/deploy/distributed_zh.md
new file mode 100644
index 0000000..64b73cf
--- /dev/null
+++ b/src/docs/deploy/distributed_zh.md
@@ -0,0 +1 @@
+Linkis1.0 分布式部署手册
\ No newline at end of file
diff --git a/src/docs/deploy/engins_en.md b/src/docs/deploy/engins_en.md
new file mode 100644
index 0000000..9f4e790
--- /dev/null
+++ b/src/docs/deploy/engins_en.md
@@ -0,0 +1 @@
+快速安装 EngineConnPlugin 引擎插件`英文`
\ No newline at end of file
diff --git a/src/docs/deploy/engins_zh.md b/src/docs/deploy/engins_zh.md
new file mode 100644
index 0000000..1a6bd33
--- /dev/null
+++ b/src/docs/deploy/engins_zh.md
@@ -0,0 +1 @@
+快速安装 EngineConnPlugin 引擎插件
\ No newline at end of file
diff --git a/src/docs/deploy/linkis_en.md b/src/docs/deploy/linkis_en.md
new file mode 100644
index 0000000..2dbdae9
--- /dev/null
+++ b/src/docs/deploy/linkis_en.md
@@ -0,0 +1 @@
+英文文档
\ No newline at end of file
diff --git a/src/docs/deploy.md b/src/docs/deploy/linkis_zh.md
similarity index 100%
rename from src/docs/deploy.md
rename to src/docs/deploy/linkis_zh.md
diff --git a/src/docs/deploy/main_en.md b/src/docs/deploy/main_en.md
new file mode 100644
index 0000000..47354d5
--- /dev/null
+++ b/src/docs/deploy/main_en.md
@@ -0,0 +1 @@
+# 部署文档english
\ No newline at end of file
diff --git a/src/docs/deploy/main_zh.md b/src/docs/deploy/main_zh.md
new file mode 100644
index 0000000..cf9de36
--- /dev/null
+++ b/src/docs/deploy/main_zh.md
@@ -0,0 +1 @@
+# 部署文档
\ No newline at end of file
diff --git a/src/docs/deploy/structure_en.md b/src/docs/deploy/structure_en.md
new file mode 100644
index 0000000..1c8df67
--- /dev/null
+++ b/src/docs/deploy/structure_en.md
@@ -0,0 +1 @@
+Linkis1.0 安装包目录层级结构详解`英文`
\ No newline at end of file
diff --git a/src/docs/deploy/structure_zh.md b/src/docs/deploy/structure_zh.md
new file mode 100644
index 0000000..4436609
--- /dev/null
+++ b/src/docs/deploy/structure_zh.md
@@ -0,0 +1 @@
+Linkis1.0 安装包目录层级结构详解
\ No newline at end of file
diff --git a/src/pages/docs/deploy/distributed.vue b/src/pages/docs/deploy/distributed.vue
new file mode 100644
index 0000000..483976b
--- /dev/null
+++ b/src/pages/docs/deploy/distributed.vue
@@ -0,0 +1,13 @@
+<template>
+ <docEn v-if="lang === 'en'"></docEn>
+ <docZh v-else></docZh>
+</template>
+<script setup>
+ import { ref } from "vue";
+
+ import docEn from '../../../docs/deploy/distributed_en.md';
+ import docZh from '../../../docs/deploy/distributed_zh.md';
+
+ // 初始化语言
+ const lang = ref(localStorage.getItem('locale') || 'en');
+</script>
\ No newline at end of file
diff --git a/src/pages/docs/deploy/engins.vue b/src/pages/docs/deploy/engins.vue
new file mode 100644
index 0000000..aa5aef7
--- /dev/null
+++ b/src/pages/docs/deploy/engins.vue
@@ -0,0 +1,13 @@
+<template>
+ <docEn v-if="lang === 'en'"></docEn>
+ <docZh v-else></docZh>
+</template>
+<script setup>
+ import { ref } from "vue";
+
+ import docEn from '../../../docs/deploy/engins_en.md';
+ import docZh from '../../../docs/deploy/engins_zh.md';
+
+ // 初始化语言
+ const lang = ref(localStorage.getItem('locale') || 'en');
+</script>
\ No newline at end of file
diff --git a/src/pages/docs/deploy/linkis.vue b/src/pages/docs/deploy/linkis.vue
new file mode 100644
index 0000000..bcdc984
--- /dev/null
+++ b/src/pages/docs/deploy/linkis.vue
@@ -0,0 +1,13 @@
+<template>
+ <docEn v-if="lang === 'en'"></docEn>
+ <docZh v-else></docZh>
+</template>
+<script setup>
+ import { ref } from "vue";
+
+ import docEn from '../../../docs/deploy/linkis_en.md';
+ import docZh from '../../../docs/deploy/linkis_zh.md';
+
+ // 初始化语言
+ const lang = ref(localStorage.getItem('locale') || 'en');
+</script>
\ No newline at end of file
diff --git a/src/pages/docs/deploy/main.vue b/src/pages/docs/deploy/main.vue
new file mode 100644
index 0000000..e926a16
--- /dev/null
+++ b/src/pages/docs/deploy/main.vue
@@ -0,0 +1,13 @@
+<template>
+ <docEn v-if="lang === 'en'"></docEn>
+ <docZh v-else></docZh>
+</template>
+<script setup>
+ import { ref } from "vue";
+
+ import docEn from '../../../docs/deploy/main_en.md';
+ import docZh from '../../../docs/deploy/main_zh.md';
+
+ // 初始化语言
+ const lang = ref(localStorage.getItem('locale') || 'en');
+</script>
\ No newline at end of file
diff --git a/src/pages/docs/deploy/structure.vue b/src/pages/docs/deploy/structure.vue
new file mode 100644
index 0000000..5a5205e
--- /dev/null
+++ b/src/pages/docs/deploy/structure.vue
@@ -0,0 +1,13 @@
+<template>
+ <docEn v-if="lang === 'en'"></docEn>
+ <docZh v-else></docZh>
+</template>
+<script setup>
+ import { ref } from "vue";
+
+ import docEn from '../../../docs/deploy/structure_en.md';
+ import docZh from '../../../docs/deploy/structure_zh.md';
+
+ // 初始化语言
+ const lang = ref(localStorage.getItem('locale') || 'en');
+</script>
\ No newline at end of file
diff --git a/src/pages/docs.vue b/src/pages/docs/index.vue
similarity index 59%
rename from src/pages/docs.vue
rename to src/pages/docs/index.vue
index c720d2d..21a2eb0 100644
--- a/src/pages/docs.vue
+++ b/src/pages/docs/index.vue
@@ -1,25 +1,25 @@
<template>
<div class="ctn-block reading-area">
<main class="main-content">
- <deploy></deploy>
+ <router-view></router-view>
</main>
<div class="side-bar">
- <a :href="'#/blog' + doc.anchor" class="bar-item" v-for="(doc,index) in docs" :key="index">{{doc.title}}
- <a :href="'#/blog' + children.anchor" class="bar-item" v-for="(children,cindex) in doc.children" :key="cindex">{{children.title}}
- </a>
- </a>
+ <router-link :to="doc.link" class="bar-item" v-for="(doc,index) in docs" :key="index">{{doc.title}}
+ <router-link :to="children.link" class="bar-item" v-for="(children,cindex) in doc.children" :key="cindex">{{children.title}}
+ </router-link>
+ </router-link>
</div>
</div>
</template>
-<style lang="less" scoped>
+<style lang="less">
.reading-area {
display: flex;
padding: 60px 0;
+ min-height: 600px;
.main-content {
width: 900px;
padding: 30px;
- min-height: 600px;
}
.side-bar {
@@ -36,22 +36,21 @@
}
</style>
<script setup>
-import deploy from '../docs/deploy.md';
const docs = [{
title: '部署文档',
- anchor: 'deploy',
+ link: '/docs/deploy/main',
children: [{
title: '快速部署 Linkis1.0',
- anchor: 'deploy-linkis'
+ link: '/docs/deploy/linkis',
}, {
title: '快速安装 EngineConnPlugin 引擎插件',
- anchor: 'deploy-engine'
+ link: '/docs/deploy/engins',
}, {
title: 'Linkis1.0 分布式部署手册',
- anchor: 'deploy-handbook'
+ link: '/docs/deploy/distributed',
}, {
title: 'Linkis1.0 安装包目录层级结构详解',
- anchor: 'deploy-detail'
+ link: '/docs/deploy/structure',
}]
}]
</script>
\ No newline at end of file
diff --git a/src/router.js b/src/router.js
index db94704..dde943f 100644
--- a/src/router.js
+++ b/src/router.js
@@ -6,7 +6,28 @@ const routes = [{
{
path: '/docs',
name: 'docs',
- component: () => import( /* webpackChunkName: "group-docs" */ './pages/docs.vue')
+ component: () => import( /* webpackChunkName: "group-docs" */ './pages/docs/index.vue'),
+ children: [{
+ path: 'deploy',
+ name: 'docDeploy',
+ component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/main.vue')
+ },{
+ path: 'deploy/linkis',
+ name: 'docDeployLinkis',
+ component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/linkis.vue')
+ },{
+ path: 'deploy/engins',
+ name: 'docDeployEngins',
+ component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/engins.vue')
+ },{
+ path: 'deploy/distributed',
+ name: 'docDeployDistributed',
+ component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/distributed.vue')
+ },{
+ path: 'deploy/structure',
+ name: 'docDeployStructure',
+ component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/structure.vue')
+ }]
},
{
path: '/faq',
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org