File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 19
19
- name : install dependencies
20
20
run : npm install
21
21
- name : create sdf version
22
- run : npm run docusaurus sdf :version $SDF_VERSION
22
+ run : npm run docusaurus docs :version:sdf $SDF_VERSION
23
23
- name : Create Pull Request
24
24
uses : peter-evans/create-pull-request@v6
25
25
with :
Original file line number Diff line number Diff line change @@ -4,10 +4,19 @@ import tailwindPlugin from "./plugins/tailwind-plugin.cjs";
4
4
5
5
import type * as Preset from "@docusaurus/preset-classic" ;
6
6
7
+ import sdfVersionsList from "./sdf_versions.json" with { type : "json" } ;
8
+
9
+
7
10
const FLUVIO_REPOSITORY_URL = "https://github.com/InfinyOn/fluvio" ;
8
11
9
12
const STABLE_VERSION = "0.11.12" ;
10
13
14
+ // read sdf-versions.json and build versions object
15
+ const sdfVersions = sdfVersionsList . reduce ( ( acc , version ) => ( {
16
+ ...acc ,
17
+ [ version ] : { label : version }
18
+ } ) , { } ) ;
19
+
11
20
const config : Config = {
12
21
title : "Fluvio" ,
13
22
tagline : "The programmable data streaming platform" ,
@@ -80,12 +89,7 @@ const config: Config = {
80
89
label : "latest" ,
81
90
path : "latest" ,
82
91
} ,
83
- [ "sdf-beta1.1" ] : {
84
- label : "sdf-beta1.1 (stable)" ,
85
- } ,
86
- [ "sdf-beta1" ] : {
87
- label : "sdf-beta1" ,
88
- } ,
92
+ ...sdfVersions
89
93
} ,
90
94
} ,
91
95
] ,
You can’t perform that action at this time.
0 commit comments