Skip to content

Commit 6953b0e

Browse files
authored
Pr for sdf release (#274)
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
1 parent 1a8bf90 commit 6953b0e

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/sdf-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: install dependencies
2020
run: npm install
2121
- name: create sdf version
22-
run: npm run docusaurus sdf:version $SDF_VERSION
22+
run: npm run docusaurus docs:version:sdf $SDF_VERSION
2323
- name: Create Pull Request
2424
uses: peter-evans/create-pull-request@v6
2525
with:

docusaurus.config.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ import tailwindPlugin from "./plugins/tailwind-plugin.cjs";
44

55
import type * as Preset from "@docusaurus/preset-classic";
66

7+
import sdfVersionsList from "./sdf_versions.json" with { type: "json" };
8+
9+
710
const FLUVIO_REPOSITORY_URL = "https://github.com/InfinyOn/fluvio";
811

912
const STABLE_VERSION = "0.11.12";
1013

14+
// read sdf-versions.json and build versions object
15+
const sdfVersions = sdfVersionsList.reduce((acc, version) => ({
16+
...acc,
17+
[version]: { label: version }
18+
}), {});
19+
1120
const config: Config = {
1221
title: "Fluvio",
1322
tagline: "The programmable data streaming platform",
@@ -80,12 +89,7 @@ const config: Config = {
8089
label: "latest",
8190
path: "latest",
8291
},
83-
["sdf-beta1.1"]: {
84-
label: "sdf-beta1.1 (stable)",
85-
},
86-
["sdf-beta1"]: {
87-
label: "sdf-beta1",
88-
},
92+
...sdfVersions
8993
},
9094
},
9195
],

0 commit comments

Comments
 (0)