Skip to content

Commit e788d49

Browse files
authored
[Doc][SeaTunnel Web] Add seatunnel web document (apache#272)
* Add seatunnel web document * Improve SeaTunnel Web introduce
1 parent 7b2d562 commit e788d49

File tree

20 files changed

+12688
-94
lines changed

20 files changed

+12688
-94
lines changed

docusaurus.config.js

+33
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
22

33
const versions = require('./versions.json');
4+
const st_web_versions = require('./seatunnel_web_versions.json');
45

56
/** @type {import('@docusaurus/types').Config} */
67
const config = {
@@ -108,6 +109,20 @@ const config = {
108109
}
109110
]
110111
},
112+
{
113+
position: 'right',
114+
label: 'SeaTunnel Web Document',
115+
items: [
116+
...st_web_versions.slice(0, st_web_versions.length).map((version) => ({
117+
label: version,
118+
to: `seatunnel_web/${version}/about`,
119+
})),
120+
{
121+
label: "Next",
122+
to: "/seatunnel_web/next/about",
123+
}
124+
]
125+
},
111126
{
112127
to: '/download',
113128
position: 'right',
@@ -297,6 +312,24 @@ const config = {
297312
}),
298313
plugins: [
299314
'docusaurus-plugin-less',
315+
[
316+
'@docusaurus/plugin-content-docs',
317+
{
318+
id: 'seatunnel_web',
319+
path: 'seatunnel_web',
320+
routeBasePath: 'seatunnel_web',
321+
sidebarCollapsible: true,
322+
editLocalizedFiles: true,
323+
// Please change this to your repo.
324+
editUrl: 'https://github.com/apache/incubator-seatunnel-website/edit/main/',
325+
versions: {
326+
[st_web_versions[0]]: {
327+
path: st_web_versions[0],
328+
}
329+
},
330+
sidebarPath: require.resolve('./sidebarsSeaTunnelWeb.js'),
331+
},
332+
],
300333
[
301334
'@docusaurus/plugin-content-docs',
302335
{

0 commit comments

Comments
 (0)