|
1 | 1 | const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
2 | 2 |
|
3 | 3 | const versions = require('./versions.json');
|
| 4 | +const st_web_versions = require('./seatunnel_web_versions.json'); |
4 | 5 |
|
5 | 6 | /** @type {import('@docusaurus/types').Config} */
|
6 | 7 | const config = {
|
@@ -108,6 +109,20 @@ const config = {
|
108 | 109 | }
|
109 | 110 | ]
|
110 | 111 | },
|
| 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 | + }, |
111 | 126 | {
|
112 | 127 | to: '/download',
|
113 | 128 | position: 'right',
|
@@ -297,6 +312,24 @@ const config = {
|
297 | 312 | }),
|
298 | 313 | plugins: [
|
299 | 314 | '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 | + ], |
300 | 333 | [
|
301 | 334 | '@docusaurus/plugin-content-docs',
|
302 | 335 | {
|
|
0 commit comments