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/03/31 07:25:15 UTC
[incubator-seatunnel-website] branch main updated: [doc] Change document order (#101)
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 57128d9 [doc] Change document order (#101)
57128d9 is described below
commit 57128d9586f505f1b15042be878ae39a40434eed
Author: Jiajie Zhong <zh...@hotmail.com>
AuthorDate: Thu Mar 31 15:25:08 2022 +0800
[doc] Change document order (#101)
We reorder our document in this path and move next
release after `1.x(not apache release)` and before
all versions
---
docusaurus.config.js | 8 ++++----
src/pages/home/index.jsx | 5 ++++-
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 01656a0..4722f46 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -85,10 +85,6 @@ const config = {
label: 'Document',
items: [
{
- label: "Next-2.x (WIP)",
- to: "/docs/intro/about",
- },
- {
label: versions[0],
to: `docs/${versions[0]}/introduction`,
},
@@ -101,6 +97,10 @@ const config = {
to: "https://interestinglab.github.io/seatunnel-docs/#/zh-cn/v1/"
},
{
+ label: "Next",
+ to: "/docs/intro/about",
+ },
+ {
label: "All versions",
to: "/versions/",
}
diff --git a/src/pages/home/index.jsx b/src/pages/home/index.jsx
index 6d44f2f..1e8e54c 100644
--- a/src/pages/home/index.jsx
+++ b/src/pages/home/index.jsx
@@ -5,6 +5,8 @@ import config from './languages.json';
import './index.less';
import systemConfiguration from '../../js/sysConfig'
+const versions = require('../../../versions.json');
+
export default function () {
const [flag, setFlag] = useState(1)
const isBrowser = useIsBrowser();
@@ -30,7 +32,8 @@ export default function () {
<p className="main_slogan">{dataSource.home.banner.slogan}</p>
<div className="button_row center">
- <a href="https://seatunnel.apache.org/docs/category/start" className="corner_button blue_fill">{dataSource.common.getStart}</a>
+ {/* TODO next release should be change to /category/start */}
+ <a href={'/docs/' + versions[0] + '/introduction'} className="corner_button blue_fill">{dataSource.common.getStart}</a>
<a href={systemConfiguration.github.projectUrl} target="_blank"
className="corner_button blue" onMouseOver={() => changeFlag(1)} onMouseOut={() => changeFlag(2)}>
<img className="button_icon github1" src={useBaseUrl('/home/icons/github' + flag + '.svg')} alt="github"/>