From e3aafffb69799cc18a063d48001001850bf10f8b Mon Sep 17 00:00:00 2001 From: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com> Date: Wed, 29 Jan 2025 18:46:50 +0100 Subject: [PATCH 1/5] initial version of the download hub page --- docusaurus.config.js | 6 ++ src/css/custom.css | 5 ++ src/pages/download-hub/ArtifactCard.js | 75 +++++++++++++++++++++ src/pages/download-hub/Distributions.js | 85 ++++++++++++++++++++++++ src/pages/download-hub/index.mdx | 41 ++++++++++++ src/pages/download-hub/styles.module.css | 64 ++++++++++++++++++ 6 files changed, 276 insertions(+) create mode 100644 src/pages/download-hub/ArtifactCard.js create mode 100644 src/pages/download-hub/Distributions.js create mode 100644 src/pages/download-hub/index.mdx create mode 100644 src/pages/download-hub/styles.module.css diff --git a/docusaurus.config.js b/docusaurus.config.js index 24d76ac7f22..574dbdabd19 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -232,6 +232,12 @@ module.exports = { label: "Reference", position: "left", }, + { + page: "download-hub", + label: "Download Hub", + to: "/download-hub", + class: "badge badge--primary", + }, ], }, footer: { diff --git a/src/css/custom.css b/src/css/custom.css index a9b7ca3e763..cf76652a5e7 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -431,6 +431,11 @@ h3 .badge:nth-of-type(1) { .openapi__method-endpoint .badge:nth-of-type(1) { margin-bottom: 0; } + +.badge--primary:hover { + color: #ffffff; +} + .badge--beginner { background-color: #ff8b00; color: #ffffff; diff --git a/src/pages/download-hub/ArtifactCard.js b/src/pages/download-hub/ArtifactCard.js new file mode 100644 index 00000000000..61737490dc3 --- /dev/null +++ b/src/pages/download-hub/ArtifactCard.js @@ -0,0 +1,75 @@ +import React, { useState } from "react"; +import Link from "@docusaurus/Link"; +import CodeBlock from "@theme/CodeBlock"; +import styles from "./styles.module.css"; + +const ArtifactCard = ({ + osName = "", + architectures = [], + versions = [], + downloadURL = "", + releaseNotesUrl = "", + runCommand = "", +}) => { + const [architecture, setArchitecture] = useState(architectures[0]); + const [version, setVersion] = useState(versions[0]); + + const handleDownload = () => { + window.open(downloadUrl, "_blank"); + }; + + return ( +
+
+ {osName != "" && ( + <> + + + + )} + {version != null && ( + <> + + + + )} +
+
+ View Release Notes +
+
+ {downloadURL != "" && ( + + )} +
+ {runCommand != "" && ( + + {runCommand.replaceAll("${version}", version)} + + )} +
+
+ ); +}; + +export default ArtifactCard; diff --git a/src/pages/download-hub/Distributions.js b/src/pages/download-hub/Distributions.js new file mode 100644 index 00000000000..2a683d1d6f3 --- /dev/null +++ b/src/pages/download-hub/Distributions.js @@ -0,0 +1,85 @@ +import React from "react"; +import ArtifactCard from "./ArtifactCard.js"; + +// +export const C8Run = () => { + const osCommand = { + Mac: "./start.sh", + Linux: "./start.sh", + Windowns: ".c8run.exe start", + }; + + const versions = ["latest", "1.0.0", "1.1.0", "1.2.0"]; + const releaseNotesUrl = "https://example.com/release-notes"; + const downloadURL = "https://github.com/camunda/camunda/xyz"; + const architectures = ["x86_64", "arm64", "ppc64le"]; + + const osName = "Mac"; + const command = osCommand[osName]; + + return ( + + ); +}; + +// +export const DockerCompose = () => { + const versions = ["latest"]; + const releaseNotesUrl = "https://example.com/release-notes"; + const downloadURL = "https://github.com/camunda/camunda/xyz"; + const command = "docker compose up -d"; + + return ( + + ); +}; + +// +export const HelmLocal = () => { + const versions = ["latest", "1.0.0", "1.1.0", "1.2.0"]; + const releaseNotesUrl = "https://example.com/release-notes"; + const command = [ + "helm repo add camunda https://helm.camunda.io", + "helm repo update", + 'helm install camunda camunda/camunda-platform --version "${version}" \\', + " --value https://helm.camunda.io/local.yaml", + ].join("\n"); + + return ( + + ); +}; + +export const Helm = () => { + const versions = ["latest", "1.0.0", "1.1.0", "1.2.0"]; + const releaseNotesUrl = "https://example.com/release-notes"; + const command = [ + "helm repo add camunda https://helm.camunda.io", + "helm repo update", + 'helm install camunda camunda/camunda-platform --version "${version}"', + ].join("\n"); + + return ( + + ); +}; diff --git a/src/pages/download-hub/index.mdx b/src/pages/download-hub/index.mdx new file mode 100644 index 00000000000..546f95a5338 --- /dev/null +++ b/src/pages/download-hub/index.mdx @@ -0,0 +1,41 @@ +--- +title: Camunda Download Hub +description: One-stop shop for all Camunda 8 downloads +--- + +import { C8Run, DockerCompose, HelmLocal, Helm } from "./Distributions.js"; + +# Camunda Download Hub + +## Local Development Setup + +### Camunda 8 Run + +A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tasklist, and Operate, enabling you to deploy, test, and run workflows locally. + + + +### Docker Compose + + + +### Kubernetes + + + +## Production Setup + +### Kubernete + + + +## Tools + + diff --git a/src/pages/download-hub/styles.module.css b/src/pages/download-hub/styles.module.css new file mode 100644 index 00000000000..39af9b6d114 --- /dev/null +++ b/src/pages/download-hub/styles.module.css @@ -0,0 +1,64 @@ +.card { + margin: 2rem auto; + padding: 1.5rem; + background: #fff; + border-radius: 8px; + box-shadow: 0 1.5px 3px 0 rgb(0 0 0 / 15%); + border: 1px solid var(--ifm-color-emphasis-200); + transition: all var(--ifm-transition-fast) ease; + transition-property: border, box-shadow; +} + +.dropdownContainer { + display: flex; + justify-content: space-between; + gap: 1rem; + margin: 1rem 0; +} + +.dropdownContainer label { + display: block; + font-size: 0.9rem; + font-weight: bold; + margin-bottom: 0.5rem; +} + +select { + width: 100%; + padding: 0.5rem; + border: 1px solid #ccc; + border-radius: 4px; +} + +.linkContainer { + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 1rem; +} + +.linkContainer a { + color: var(--ifm-link-color); + text-decoration: none; + font-size: 0.9rem; +} + +.linkContainer a:hover { + text-decoration: underline; +} + +.downloadButton { + background: var(--ifm-link-color); + color: white; + border: none; + padding: 0.5rem 1rem; + border-radius: 4px; + cursor: pointer; + font-size: 1rem; + width: 100%; +} + +.downloadButton:hover { + opacity: 0.9; + transition: all 0.1s ease-in-out; +} From 3adeb0a61d997afe6302cc298c1968913d57369a Mon Sep 17 00:00:00 2001 From: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com> Date: Wed, 29 Jan 2025 22:07:15 +0100 Subject: [PATCH 2/5] move download hub to docs as useActiveVersion doesn't work in single pages --- docs/download-hub/index.mdx | 54 +++++++++++++++++++ docusaurus.config.js | 5 +- .../CamundaDistributions}/ArtifactCard.js | 18 ++++--- .../DistributionCards.js} | 16 ++++-- .../{DockerCompose.jsx => DockerCompose.js} | 11 ++-- .../CamundaDistributions}/styles.module.css | 13 +++-- src/pages/download-hub/index.mdx | 41 -------------- .../version-8.3/download-hub/index.mdx | 54 +++++++++++++++++++ .../version-8.4/download-hub/index.mdx | 54 +++++++++++++++++++ .../version-8.5/download-hub/index.mdx | 54 +++++++++++++++++++ .../version-8.6/download-hub/index.mdx | 54 +++++++++++++++++++ 11 files changed, 311 insertions(+), 63 deletions(-) create mode 100644 docs/download-hub/index.mdx rename src/{pages/download-hub => components/CamundaDistributions}/ArtifactCard.js (88%) rename src/{pages/download-hub/Distributions.js => components/CamundaDistributions/DistributionCards.js} (84%) rename src/components/CamundaDistributions/{DockerCompose.jsx => DockerCompose.js} (73%) rename src/{pages/download-hub => components/CamundaDistributions}/styles.module.css (84%) delete mode 100644 src/pages/download-hub/index.mdx create mode 100644 versioned_docs/version-8.3/download-hub/index.mdx create mode 100644 versioned_docs/version-8.4/download-hub/index.mdx create mode 100644 versioned_docs/version-8.5/download-hub/index.mdx create mode 100644 versioned_docs/version-8.6/download-hub/index.mdx diff --git a/docs/download-hub/index.mdx b/docs/download-hub/index.mdx new file mode 100644 index 00000000000..73f3b99b86d --- /dev/null +++ b/docs/download-hub/index.mdx @@ -0,0 +1,54 @@ +--- +title: Camunda Download Hub +description: One-stop shop for all Camunda 8 downloads +--- + +import { + C8Run, + DockerCompose, + HelmLocal, + Helm, +} from "@site/src/components/CamundaDistributions/DistributionCards"; + +# Camunda Download Hub + +## Local Development Setup + +### Camunda 8 Run + +A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tasklist, and Operate, enabling you to deploy, test, and run workflows locally. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) + +### Docker Compose + +A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + +## Production Setup + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in production. + + + +[More details ...](../../../docs/self-managed/setup/install) + +## Tools + +- Clients +- SDK diff --git a/docusaurus.config.js b/docusaurus.config.js index 574dbdabd19..2fabf2265f4 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -233,10 +233,11 @@ module.exports = { position: "left", }, { - page: "download-hub", + type: "doc", + docId: "download-hub/index", label: "Download Hub", - to: "/download-hub", class: "badge badge--primary", + position: "left", }, ], }, diff --git a/src/pages/download-hub/ArtifactCard.js b/src/components/CamundaDistributions/ArtifactCard.js similarity index 88% rename from src/pages/download-hub/ArtifactCard.js rename to src/components/CamundaDistributions/ArtifactCard.js index 61737490dc3..9e17223d916 100644 --- a/src/pages/download-hub/ArtifactCard.js +++ b/src/components/CamundaDistributions/ArtifactCard.js @@ -14,8 +14,8 @@ const ArtifactCard = ({ const [architecture, setArchitecture] = useState(architectures[0]); const [version, setVersion] = useState(versions[0]); - const handleDownload = () => { - window.open(downloadUrl, "_blank"); + const handleDownload = (downloadURL) => { + window.open(downloadURL, "_blank"); }; return ( @@ -52,14 +52,15 @@ const ArtifactCard = ({ )} -
- View Release Notes -
{downloadURL != "" && ( - + )}
{runCommand != "" && ( @@ -68,6 +69,9 @@ const ArtifactCard = ({ )}
+
+ View Release Notes +
); }; diff --git a/src/pages/download-hub/Distributions.js b/src/components/CamundaDistributions/DistributionCards.js similarity index 84% rename from src/pages/download-hub/Distributions.js rename to src/components/CamundaDistributions/DistributionCards.js index 2a683d1d6f3..8fd0930f868 100644 --- a/src/pages/download-hub/Distributions.js +++ b/src/components/CamundaDistributions/DistributionCards.js @@ -1,5 +1,6 @@ import React from "react"; import ArtifactCard from "./ArtifactCard.js"; +import { DockerComposeURL } from "./DockerCompose.js"; // export const C8Run = () => { @@ -12,7 +13,14 @@ export const C8Run = () => { const versions = ["latest", "1.0.0", "1.1.0", "1.2.0"]; const releaseNotesUrl = "https://example.com/release-notes"; const downloadURL = "https://github.com/camunda/camunda/xyz"; - const architectures = ["x86_64", "arm64", "ppc64le"]; + const architectures = [ + "MacOS (amd64)", + "MacOS (arm64)", + "Linux (amd64)", + "Linux (arm64)", + "Windows (amd64)", + "Windows (arm64)", + ]; const osName = "Mac"; const command = osCommand[osName]; @@ -33,7 +41,7 @@ export const C8Run = () => { export const DockerCompose = () => { const versions = ["latest"]; const releaseNotesUrl = "https://example.com/release-notes"; - const downloadURL = "https://github.com/camunda/camunda/xyz"; + const downloadURL = DockerComposeURL(); const command = "docker compose up -d"; return ( @@ -48,7 +56,7 @@ export const DockerCompose = () => { // export const HelmLocal = () => { - const versions = ["latest", "1.0.0", "1.1.0", "1.2.0"]; + const versions = ["1.0.0", "1.1.0", "1.2.0"]; const releaseNotesUrl = "https://example.com/release-notes"; const command = [ "helm repo add camunda https://helm.camunda.io", @@ -67,7 +75,7 @@ export const HelmLocal = () => { }; export const Helm = () => { - const versions = ["latest", "1.0.0", "1.1.0", "1.2.0"]; + const versions = ["1.0.0", "1.1.0", "1.2.0"]; const releaseNotesUrl = "https://example.com/release-notes"; const command = [ "helm repo add camunda https://helm.camunda.io", diff --git a/src/components/CamundaDistributions/DockerCompose.jsx b/src/components/CamundaDistributions/DockerCompose.js similarity index 73% rename from src/components/CamundaDistributions/DockerCompose.jsx rename to src/components/CamundaDistributions/DockerCompose.js index b42ac0fc11f..819938cfc06 100644 --- a/src/components/CamundaDistributions/DockerCompose.jsx +++ b/src/components/CamundaDistributions/DockerCompose.js @@ -13,13 +13,14 @@ const getVersion = () => { return docsVersion.label; }; -const DockerCompose = () => { +export const DockerComposeURL = () => { const version = getVersion(); + return `${DockerComposeBaseURL}/docker-compose-${version}/docker-compose-${version}.zip`; +}; + +export const DockerCompose = () => { return ( - + Docker Compose ); diff --git a/src/pages/download-hub/styles.module.css b/src/components/CamundaDistributions/styles.module.css similarity index 84% rename from src/pages/download-hub/styles.module.css rename to src/components/CamundaDistributions/styles.module.css index 39af9b6d114..de44c063867 100644 --- a/src/pages/download-hub/styles.module.css +++ b/src/components/CamundaDistributions/styles.module.css @@ -31,7 +31,7 @@ select { } .linkContainer { - display: flex; + text-align: right; justify-content: space-between; align-items: center; margin-top: 1rem; @@ -47,18 +47,23 @@ select { text-decoration: underline; } -.downloadButton { +.downloadURL { + display: inline-block; + text-align: center; background: var(--ifm-link-color); color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; - font-size: 1rem; + font-size: 1.1rem; width: 100%; + text-decoration: none; } -.downloadButton:hover { +.downloadURL:hover { opacity: 0.9; transition: all 0.1s ease-in-out; + color: white; + text-decoration: none; } diff --git a/src/pages/download-hub/index.mdx b/src/pages/download-hub/index.mdx deleted file mode 100644 index 546f95a5338..00000000000 --- a/src/pages/download-hub/index.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Camunda Download Hub -description: One-stop shop for all Camunda 8 downloads ---- - -import { C8Run, DockerCompose, HelmLocal, Helm } from "./Distributions.js"; - -# Camunda Download Hub - -## Local Development Setup - -### Camunda 8 Run - -A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tasklist, and Operate, enabling you to deploy, test, and run workflows locally. - - - -### Docker Compose - - - -### Kubernetes - - - -## Production Setup - -### Kubernete - - - -## Tools - - diff --git a/versioned_docs/version-8.3/download-hub/index.mdx b/versioned_docs/version-8.3/download-hub/index.mdx new file mode 100644 index 00000000000..73f3b99b86d --- /dev/null +++ b/versioned_docs/version-8.3/download-hub/index.mdx @@ -0,0 +1,54 @@ +--- +title: Camunda Download Hub +description: One-stop shop for all Camunda 8 downloads +--- + +import { + C8Run, + DockerCompose, + HelmLocal, + Helm, +} from "@site/src/components/CamundaDistributions/DistributionCards"; + +# Camunda Download Hub + +## Local Development Setup + +### Camunda 8 Run + +A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tasklist, and Operate, enabling you to deploy, test, and run workflows locally. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) + +### Docker Compose + +A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + +## Production Setup + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in production. + + + +[More details ...](../../../docs/self-managed/setup/install) + +## Tools + +- Clients +- SDK diff --git a/versioned_docs/version-8.4/download-hub/index.mdx b/versioned_docs/version-8.4/download-hub/index.mdx new file mode 100644 index 00000000000..73f3b99b86d --- /dev/null +++ b/versioned_docs/version-8.4/download-hub/index.mdx @@ -0,0 +1,54 @@ +--- +title: Camunda Download Hub +description: One-stop shop for all Camunda 8 downloads +--- + +import { + C8Run, + DockerCompose, + HelmLocal, + Helm, +} from "@site/src/components/CamundaDistributions/DistributionCards"; + +# Camunda Download Hub + +## Local Development Setup + +### Camunda 8 Run + +A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tasklist, and Operate, enabling you to deploy, test, and run workflows locally. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) + +### Docker Compose + +A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + +## Production Setup + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in production. + + + +[More details ...](../../../docs/self-managed/setup/install) + +## Tools + +- Clients +- SDK diff --git a/versioned_docs/version-8.5/download-hub/index.mdx b/versioned_docs/version-8.5/download-hub/index.mdx new file mode 100644 index 00000000000..73f3b99b86d --- /dev/null +++ b/versioned_docs/version-8.5/download-hub/index.mdx @@ -0,0 +1,54 @@ +--- +title: Camunda Download Hub +description: One-stop shop for all Camunda 8 downloads +--- + +import { + C8Run, + DockerCompose, + HelmLocal, + Helm, +} from "@site/src/components/CamundaDistributions/DistributionCards"; + +# Camunda Download Hub + +## Local Development Setup + +### Camunda 8 Run + +A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tasklist, and Operate, enabling you to deploy, test, and run workflows locally. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) + +### Docker Compose + +A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + +## Production Setup + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in production. + + + +[More details ...](../../../docs/self-managed/setup/install) + +## Tools + +- Clients +- SDK diff --git a/versioned_docs/version-8.6/download-hub/index.mdx b/versioned_docs/version-8.6/download-hub/index.mdx new file mode 100644 index 00000000000..73f3b99b86d --- /dev/null +++ b/versioned_docs/version-8.6/download-hub/index.mdx @@ -0,0 +1,54 @@ +--- +title: Camunda Download Hub +description: One-stop shop for all Camunda 8 downloads +--- + +import { + C8Run, + DockerCompose, + HelmLocal, + Helm, +} from "@site/src/components/CamundaDistributions/DistributionCards"; + +# Camunda Download Hub + +## Local Development Setup + +### Camunda 8 Run + +A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tasklist, and Operate, enabling you to deploy, test, and run workflows locally. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) + +### Docker Compose + +A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. + + + +[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + +## Production Setup + +### Kubernetes + +We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in production. + + + +[More details ...](../../../docs/self-managed/setup/install) + +## Tools + +- Clients +- SDK From 51780709aa0495bfc831a46d23e4a2a942d92ecf Mon Sep 17 00:00:00 2001 From: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com> Date: Thu, 30 Jan 2025 12:30:14 +0100 Subject: [PATCH 3/5] tidy up --- docs/download-hub/helm-chart.json | 92 +++++ docs/download-hub/index.mdx | 14 +- .../CamundaDistributions/ArtifactCard.js | 190 +++++++--- .../CamundaDistributions/DistributionCards.js | 337 ++++++++++++++---- .../CamundaDistributions/DockerCompose.js | 13 +- src/components/CamundaDistributions/utilz.js | 10 + .../version-8.3/download-hub/index.mdx | 11 +- .../version-8.4/download-hub/index.mdx | 11 +- .../version-8.5/download-hub/index.mdx | 11 +- .../version-8.6/download-hub/index.mdx | 11 +- 10 files changed, 514 insertions(+), 186 deletions(-) create mode 100644 docs/download-hub/helm-chart.json create mode 100644 src/components/CamundaDistributions/utilz.js diff --git a/docs/download-hub/helm-chart.json b/docs/download-hub/helm-chart.json new file mode 100644 index 00000000000..bd65f1bd9a5 --- /dev/null +++ b/docs/download-hub/helm-chart.json @@ -0,0 +1,92 @@ +{ + "11.1.1": [ + { + "system": "linux-x86_64", + "download": "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-linux-x86_64.tar.gz", + "links": [ + { + "description": "Release Notes", + "link": "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1" + }, + { + "description": "Values", + "link": "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters" + } + ] + }, + { + "system": "windows-x86_64", + "download": "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + "links": [ + { + "description": "Release Notes", + "link": "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1" + }, + { + "description": "Values", + "link": "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters" + } + ] + } + ], + "11.1.0": [ + { + "system": "linux-x86_64", + "download": "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-linux-x86_64.tar.gz", + "links": [ + { + "description": "Release Notes", + "link": "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1" + }, + { + "description": "Values", + "link": "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters" + } + ] + }, + { + "system": "windows-x86_64", + "download": "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + "links": [ + { + "description": "Release Notes", + "link": "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1" + }, + { + "description": "Values", + "link": "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters" + } + ] + } + ], + "11.0.4": [ + { + "system": "linux-x86_64", + "download": "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-linux-x86_64.tar.gz", + "links": [ + { + "description": "Release Notes", + "link": "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1" + }, + { + "description": "Values", + "link": "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters" + } + ] + }, + { + "system": "windows-x86_64", + "download": "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + "links": [ + { + "description": "Release Notes", + "link": "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1" + }, + { + "description": "Values", + "link": "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters" + } + ] + } + ] +} diff --git a/docs/download-hub/index.mdx b/docs/download-hub/index.mdx index 73f3b99b86d..fdc19f64966 100644 --- a/docs/download-hub/index.mdx +++ b/docs/download-hub/index.mdx @@ -6,9 +6,9 @@ description: One-stop shop for all Camunda 8 downloads import { C8Run, DockerCompose, - HelmLocal, Helm, } from "@site/src/components/CamundaDistributions/DistributionCards"; +import helmData from "./helm-chart.json"; # Camunda Download Hub @@ -20,23 +20,17 @@ A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tas -[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) - ### Docker Compose A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). -[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) - -### Kubernetes +### Kubernetes Local We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. - - -[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + ## Production Setup @@ -46,8 +40,6 @@ We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed -[More details ...](../../../docs/self-managed/setup/install) - ## Tools - Clients diff --git a/src/components/CamundaDistributions/ArtifactCard.js b/src/components/CamundaDistributions/ArtifactCard.js index 9e17223d916..7b479825f80 100644 --- a/src/components/CamundaDistributions/ArtifactCard.js +++ b/src/components/CamundaDistributions/ArtifactCard.js @@ -1,77 +1,159 @@ +// import React, { useState } from "react"; +// import Link from "@docusaurus/Link"; +// import CodeBlock from "@theme/CodeBlock"; +// import styles from "./styles.module.css"; + +// const ArtifactCard = (artifactData = Object) => { +// const versions = artifactData.keys() +// return ( +//
+//
+// {version != null && ( +// <> +// +// +// +// )} +// {artifactData.system != "" && ( +// <> +// +// +// +// )} +//
+//
+// {downloadURL != "" && ( +// +// Download +// +// )} +//
+// {runCommand != "" && ( +// +// {runCommand.replaceAll("${version}", version)} +// +// )} +//
+//
+// {extraLinks.forEach(element => { +// {element.desc} +// })} +//
+//
+// ); +// }; + +// export default ArtifactCard; import React, { useState } from "react"; +import styles from "./styles.module.css"; import Link from "@docusaurus/Link"; import CodeBlock from "@theme/CodeBlock"; -import styles from "./styles.module.css"; -const ArtifactCard = ({ - osName = "", - architectures = [], - versions = [], - downloadURL = "", - releaseNotesUrl = "", - runCommand = "", -}) => { - const [architecture, setArchitecture] = useState(architectures[0]); - const [version, setVersion] = useState(versions[0]); +const ArtifactCard = ({ data, runCommand = "" }) => { + const versions = Object.keys(data); + + // Ensure at least one version exists + const [selectedVersion, setSelectedVersion] = useState(versions[0] || ""); + const [selectedSystem, setSelectedSystem] = useState( + data[versions[0]]?.[0]?.system || "" + ); + + const handleVersionChange = (event) => { + const newVersion = event.target.value; + setSelectedVersion(newVersion); + setSelectedSystem(data[newVersion]?.[0]?.system || ""); + }; - const handleDownload = (downloadURL) => { - window.open(downloadURL, "_blank"); + const handleSystemChange = (event) => { + setSelectedSystem(event.target.value); }; + const selectedData = + data[selectedVersion]?.find((item) => item.system === selectedSystem) || {}; + return (
- {osName != "" && ( - <> - - - - )} - {version != null && ( - <> - - + {versions.map((version) => ( + + ))} + + + {selectedSystem && ( + )}
-
- {downloadURL != "" && ( + + {selectedData.download && ( + <> +

Get

Download - )} -
- {runCommand != "" && ( - - {runCommand.replaceAll("${version}", version)} - - )} -
-
- View Release Notes -
+ + )} + +

Run

+ {runCommand && ( + + {runCommand.replace("${version}", selectedVersion)} + + )} + + {selectedData.links && ( + <> +

Links

+ + + )}
); }; diff --git a/src/components/CamundaDistributions/DistributionCards.js b/src/components/CamundaDistributions/DistributionCards.js index 8fd0930f868..05e26c14322 100644 --- a/src/components/CamundaDistributions/DistributionCards.js +++ b/src/components/CamundaDistributions/DistributionCards.js @@ -1,93 +1,290 @@ import React from "react"; import ArtifactCard from "./ArtifactCard.js"; import { DockerComposeURL } from "./DockerCompose.js"; +import { getDocsVersion } from "./utilz"; // -export const C8Run = () => { - const osCommand = { - Mac: "./start.sh", - Linux: "./start.sh", - Windowns: ".c8run.exe start", +export const C8Run = (runCommandArgs = []) => { + const jsonData = { + "8.6.7": [ + { + system: "linux-x86_64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-linux-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "windows-x86_64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "darwin-aarch64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "More", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + ], + "8.6.6": [ + { + system: "linux-x86_64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-linux-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "More", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "windows-x86_64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "More", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "darwin-aarch64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "More", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + ], + "8.6.5": [ + { + system: "linux-x86_64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-linux-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "More", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "windows-x86_64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "darwin-aarch64", + download: + "https://github.com/camunda/camunda/releases/download/8.6.7/camunda8-run-8.6.7-windows-x86_64.tar.gz", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "More", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + ], }; - const versions = ["latest", "1.0.0", "1.1.0", "1.2.0"]; - const releaseNotesUrl = "https://example.com/release-notes"; - const downloadURL = "https://github.com/camunda/camunda/xyz"; - const architectures = [ - "MacOS (amd64)", - "MacOS (arm64)", - "Linux (amd64)", - "Linux (arm64)", - "Windows (amd64)", - "Windows (arm64)", - ]; + const runCommand = ["./start.sh"]; - const osName = "Mac"; - const command = osCommand[osName]; + if (runCommandArgs) { + runCommand.concat(runCommandArgs); + } - return ( - - ); + return ; }; // export const DockerCompose = () => { - const versions = ["latest"]; - const releaseNotesUrl = "https://example.com/release-notes"; - const downloadURL = DockerComposeURL(); - const command = "docker compose up -d"; + const jsonData = { + latest: [ + { + system: "", + download: + "https://github.com/camunda/camunda-self-managed/releases/download/docker-compose-alpha/docker-compose-alpha.zip", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + ], + }, + ], + }; + + const runCommand = "docker compose up -d"; - return ( - - ); + return ; }; // -export const HelmLocal = () => { - const versions = ["1.0.0", "1.1.0", "1.2.0"]; - const releaseNotesUrl = "https://example.com/release-notes"; - const command = [ - "helm repo add camunda https://helm.camunda.io", - "helm repo update", - 'helm install camunda camunda/camunda-platform --version "${version}" \\', - " --value https://helm.camunda.io/local.yaml", - ].join("\n"); - - return ( - - ); -}; +export const Helm = ({ runCommandArgs }) => { + const jsonData = { + "11.1.1": [ + { + system: "", + download: "", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "", + download: "", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + ], + "11.1.0": [ + { + system: "", + download: "", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "", + download: "", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + ], + "11.0.4": [ + { + system: "", + download: "", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + { + system: "", + download: "", + links: [ + { + description: "Release Notes", + link: "https://github.com/camunda/camunda-platform-helm/releases/tag/camunda-platform-11.1.1", + }, + { + description: "Values", + link: "https://artifacthub.io/packages/helm/camunda/camunda-platform/11.1.1#parameters", + }, + ], + }, + ], + }; -export const Helm = () => { - const versions = ["1.0.0", "1.1.0", "1.2.0"]; - const releaseNotesUrl = "https://example.com/release-notes"; - const command = [ + const runCommand = [ "helm repo add camunda https://helm.camunda.io", "helm repo update", 'helm install camunda camunda/camunda-platform --version "${version}"', - ].join("\n"); + ]; + + if (runCommandArgs) { + runCommand.concat(runCommandArgs); + } - return ( - - ); + return ; }; diff --git a/src/components/CamundaDistributions/DockerCompose.js b/src/components/CamundaDistributions/DockerCompose.js index 819938cfc06..c7adbd6ab0e 100644 --- a/src/components/CamundaDistributions/DockerCompose.js +++ b/src/components/CamundaDistributions/DockerCompose.js @@ -1,20 +1,11 @@ import React from "react"; -import { useActiveVersion } from "@docusaurus/plugin-content-docs/client"; +import { getDocsVersion } from "./utilz"; const DockerComposeBaseURL = "https://github.com/camunda/camunda-self-managed/releases/download"; -const getVersion = () => { - const docsVersion = useActiveVersion(); - if (docsVersion.label == "Next") return "alpha"; - // NOTE: This is a workaround for the irregular release cut of the 8.7 version. - // TODO: Remove this condition once the 8.7 is released. - if (docsVersion.label == "8.7") return "alpha"; - return docsVersion.label; -}; - export const DockerComposeURL = () => { - const version = getVersion(); + const version = getDocsVersion(); return `${DockerComposeBaseURL}/docker-compose-${version}/docker-compose-${version}.zip`; }; diff --git a/src/components/CamundaDistributions/utilz.js b/src/components/CamundaDistributions/utilz.js new file mode 100644 index 00000000000..4b7e026cf89 --- /dev/null +++ b/src/components/CamundaDistributions/utilz.js @@ -0,0 +1,10 @@ +import { useActiveVersion } from "@docusaurus/plugin-content-docs/client"; + +export const getDocsVersion = () => { + const docsVersion = useActiveVersion(); + if (docsVersion.label == "Next") return "alpha"; + // NOTE: This is a workaround for the irregular release cut of the 8.7 version. + // TODO: Remove this condition once the 8.7 is released. + if (docsVersion.label == "8.7") return "alpha"; + return docsVersion.label; +}; diff --git a/versioned_docs/version-8.3/download-hub/index.mdx b/versioned_docs/version-8.3/download-hub/index.mdx index 73f3b99b86d..41f06fe6147 100644 --- a/versioned_docs/version-8.3/download-hub/index.mdx +++ b/versioned_docs/version-8.3/download-hub/index.mdx @@ -6,7 +6,6 @@ description: One-stop shop for all Camunda 8 downloads import { C8Run, DockerCompose, - HelmLocal, Helm, } from "@site/src/components/CamundaDistributions/DistributionCards"; @@ -20,23 +19,17 @@ A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tas -[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) - ### Docker Compose A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). -[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) - ### Kubernetes We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. - - -[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + ## Production Setup @@ -46,8 +39,6 @@ We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed -[More details ...](../../../docs/self-managed/setup/install) - ## Tools - Clients diff --git a/versioned_docs/version-8.4/download-hub/index.mdx b/versioned_docs/version-8.4/download-hub/index.mdx index 73f3b99b86d..41f06fe6147 100644 --- a/versioned_docs/version-8.4/download-hub/index.mdx +++ b/versioned_docs/version-8.4/download-hub/index.mdx @@ -6,7 +6,6 @@ description: One-stop shop for all Camunda 8 downloads import { C8Run, DockerCompose, - HelmLocal, Helm, } from "@site/src/components/CamundaDistributions/DistributionCards"; @@ -20,23 +19,17 @@ A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tas -[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) - ### Docker Compose A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). -[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) - ### Kubernetes We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. - - -[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + ## Production Setup @@ -46,8 +39,6 @@ We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed -[More details ...](../../../docs/self-managed/setup/install) - ## Tools - Clients diff --git a/versioned_docs/version-8.5/download-hub/index.mdx b/versioned_docs/version-8.5/download-hub/index.mdx index 73f3b99b86d..41f06fe6147 100644 --- a/versioned_docs/version-8.5/download-hub/index.mdx +++ b/versioned_docs/version-8.5/download-hub/index.mdx @@ -6,7 +6,6 @@ description: One-stop shop for all Camunda 8 downloads import { C8Run, DockerCompose, - HelmLocal, Helm, } from "@site/src/components/CamundaDistributions/DistributionCards"; @@ -20,23 +19,17 @@ A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tas -[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) - ### Docker Compose A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). -[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) - ### Kubernetes We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. - - -[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + ## Production Setup @@ -46,8 +39,6 @@ We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed -[More details ...](../../../docs/self-managed/setup/install) - ## Tools - Clients diff --git a/versioned_docs/version-8.6/download-hub/index.mdx b/versioned_docs/version-8.6/download-hub/index.mdx index 73f3b99b86d..41f06fe6147 100644 --- a/versioned_docs/version-8.6/download-hub/index.mdx +++ b/versioned_docs/version-8.6/download-hub/index.mdx @@ -6,7 +6,6 @@ description: One-stop shop for all Camunda 8 downloads import { C8Run, DockerCompose, - HelmLocal, Helm, } from "@site/src/components/CamundaDistributions/DistributionCards"; @@ -20,23 +19,17 @@ A one-click Java application with BPMN Workflow Engine, DMN Decision Engine, Tas -[More details ...](../../../docs/self-managed/setup/deploy/local/c8run) - ### Docker Compose A Docker Compose configuration to run Camunda Self-Managed components (Zeebe, Operate, Tasklist, Optimize, Identity, and Connectors). -[More details ...](../../../docs/self-managed/setup/deploy/local/docker-compose) - ### Kubernetes We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed in development too. - - -[More details ...](../../../docs/self-managed/setup/deploy/local/local-kubernetes-cluster) + ## Production Setup @@ -46,8 +39,6 @@ We recommend using Kubernetes and Helm to deploy and run Camunda 8 Self-Managed -[More details ...](../../../docs/self-managed/setup/install) - ## Tools - Clients From 4427960caa79138e866c232bef7ba89c3ae4dd81 Mon Sep 17 00:00:00 2001 From: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com> Date: Fri, 31 Jan 2025 14:22:48 +0100 Subject: [PATCH 4/5] test tweak webpack --- package.json | 2 +- webpack.config.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 webpack.config.js diff --git a/package.json b/package.json index 1c85373daab..c1e6646cfd0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "scripts": { "docusaurus": "docusaurus", "start": "docusaurus start", - "build": "docusaurus build", + "build": "NODE_OPTIONS='--max_old_space_size=12288' docusaurus build", "build:docker": "docker build -f Dockerfile.build --output ./build --target=outputs . ", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 00000000000..4de894b0f68 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,6 @@ +module.exports = { + //... + cache: { + type: "filesystem", + }, +}; From 01f82c748b3e6ff4ffa6e41fc9ab1b269e0d3833 Mon Sep 17 00:00:00 2001 From: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com> Date: Fri, 28 Feb 2025 16:17:21 +0100 Subject: [PATCH 5/5] wip --- .../CamundaDistributions/ArtifactCard.js | 37 ++++++++--- .../CamundaDistributions/DistributionCards.js | 62 ++++++++++++++++++- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/src/components/CamundaDistributions/ArtifactCard.js b/src/components/CamundaDistributions/ArtifactCard.js index 7b479825f80..5775100d43b 100644 --- a/src/components/CamundaDistributions/ArtifactCard.js +++ b/src/components/CamundaDistributions/ArtifactCard.js @@ -71,6 +71,15 @@ import styles from "./styles.module.css"; import Link from "@docusaurus/Link"; import CodeBlock from "@theme/CodeBlock"; +const systemLabel = { + "darwin-x86_64": "MacOS (amd64)", + "darwin-aarch64": "MacOS (m1/arm64)", + "linux-x86_64": "Linux (AMD64)", + "linux-x86_64": "Linux (ARM64)", + "windows-x86_64": "Windows (amd64)", + "windows-x86_64": "Windows (arm64)", +}; + const ArtifactCard = ({ data, runCommand = "" }) => { const versions = Object.keys(data); @@ -96,9 +105,13 @@ const ArtifactCard = ({ data, runCommand = "" }) => { return (
-