From 81285fd98beca9de2f208a96829f3179fbeddf79 Mon Sep 17 00:00:00 2001 From: Volkan Date: Fri, 15 May 2026 14:20:34 +0200 Subject: [PATCH 1/2] Updating github-pages deploy commands to have versioning in Thunder Documentation --- DocumentGenerator/DocumentGenerator.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DocumentGenerator/DocumentGenerator.py b/DocumentGenerator/DocumentGenerator.py index e2d65c88..df9f75d9 100755 --- a/DocumentGenerator/DocumentGenerator.py +++ b/DocumentGenerator/DocumentGenerator.py @@ -364,10 +364,9 @@ def complete_yaml_creation(self): try: # unless DOCS_REPO_URL is changed the documentation will be deployed in this location: # https://webplatformforembedded.github.io/ServicesInterfaceDocumentation/ - commands = ["mike", "deploy", branch_name, "-p"] + commands = ["mike", "deploy", "--push", branch_name] if tag: - cmd = tag, "-u" - commands.extend(cmd) + commands = ["mike", "deploy", "--push", "--update-aliases", branch_name, tag] os.chdir(docs_path) ret_val = subprocess.run(commands) From e3f7a963a67904fcadbe878ac6865d912680247e Mon Sep 17 00:00:00 2001 From: Volkan Date: Fri, 15 May 2026 14:32:56 +0200 Subject: [PATCH 2/2] Use extend method for extending list --- DocumentGenerator/DocumentGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DocumentGenerator/DocumentGenerator.py b/DocumentGenerator/DocumentGenerator.py index df9f75d9..8cb03d24 100755 --- a/DocumentGenerator/DocumentGenerator.py +++ b/DocumentGenerator/DocumentGenerator.py @@ -366,7 +366,7 @@ def complete_yaml_creation(self): # https://webplatformforembedded.github.io/ServicesInterfaceDocumentation/ commands = ["mike", "deploy", "--push", branch_name] if tag: - commands = ["mike", "deploy", "--push", "--update-aliases", branch_name, tag] + commands.extend(["--update-aliases", tag]) os.chdir(docs_path) ret_val = subprocess.run(commands)