From c36120a7302f3f4f3589ff4c81c8ace28e605cd7 Mon Sep 17 00:00:00 2001 From: Alex Lourie Date: Fri, 21 Nov 2025 14:44:28 +1030 Subject: [PATCH 1/3] Add the "unmaintained" banner message for old python-sdk site Signed-off-by: Alex Lourie --- .github/workflows/python-lib-snapshot.yml | 2 ++ docs/site-config/src/theme/GlobalTopContent.js | 15 +++++++++++++++ docs/site-config/src/theme/Layout/index.js | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 docs/site-config/src/theme/GlobalTopContent.js create mode 100644 docs/site-config/src/theme/Layout/index.js diff --git a/.github/workflows/python-lib-snapshot.yml b/.github/workflows/python-lib-snapshot.yml index 2699056f9..e1257601d 100644 --- a/.github/workflows/python-lib-snapshot.yml +++ b/.github/workflows/python-lib-snapshot.yml @@ -11,4 +11,6 @@ on: jobs: run: uses: zepben/.github/.github/workflows/python-lib-snapshot.yml@main + with: + product-key: "python-sdk" secrets: inherit diff --git a/docs/site-config/src/theme/GlobalTopContent.js b/docs/site-config/src/theme/GlobalTopContent.js new file mode 100644 index 000000000..fd4007bf6 --- /dev/null +++ b/docs/site-config/src/theme/GlobalTopContent.js @@ -0,0 +1,15 @@ +import React from 'react'; + +function MyGlobalTopContent() { + return ( +
+ 🚨 This is an important announcement! 🚨 +
+ This documentation site is no longer actively maintained. +
+ For up-to-date documentation, see the new site at the EWB Python SDK page. +
+ ); +} + +export default MyGlobalTopContent; diff --git a/docs/site-config/src/theme/Layout/index.js b/docs/site-config/src/theme/Layout/index.js new file mode 100644 index 000000000..ad2e6dea6 --- /dev/null +++ b/docs/site-config/src/theme/Layout/index.js @@ -0,0 +1,16 @@ +import React from 'react'; +import OriginalLayout from '@theme-original/Layout'; +import GlobalTopContent from '@theme/GlobalTopContent'; + +function Layout(props) { + return ( +
+ + + {props.children} + +
+ ); +} + +export default Layout; From dbc51fbfa5e9d3e2de39c2f68ddb4b76b43e9bc6 Mon Sep 17 00:00:00 2001 From: Alex Lourie Date: Fri, 21 Nov 2025 14:57:07 +1030 Subject: [PATCH 2/3] Fix function name Signed-off-by: Alex Lourie --- docs/site-config/src/theme/GlobalTopContent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/site-config/src/theme/GlobalTopContent.js b/docs/site-config/src/theme/GlobalTopContent.js index fd4007bf6..9318106a4 100644 --- a/docs/site-config/src/theme/GlobalTopContent.js +++ b/docs/site-config/src/theme/GlobalTopContent.js @@ -1,6 +1,6 @@ import React from 'react'; -function MyGlobalTopContent() { +function GlobalTopContent() { return (
🚨 This is an important announcement! 🚨 @@ -12,4 +12,4 @@ function MyGlobalTopContent() { ); } -export default MyGlobalTopContent; +export default GlobalTopContent; From 02dbc3e446a725076cd777ffb1604ca68a2371d1 Mon Sep 17 00:00:00 2001 From: CI Date: Fri, 21 Nov 2025 17:28:14 +1100 Subject: [PATCH 3/3] Update snapshot 1.1.0b13 to 1.1.0b14 [skip ci] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a51af9e1b..6184efa6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ [project] name = "zepben.ewb" - version = "1.1.0b13" + version = "1.1.0b14" description = "Python SDK for interacting with the Energy Workbench platform" readme = {file = "README.md", content-type = "text/markdown"} license = "MPL-2.0"