From f3dc0cc39888ec6d9c1b6788621610924050c94b Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Fri, 10 Jan 2025 14:36:45 +0100 Subject: [PATCH] Update python commands so they work on any tyme of python installation, including Windows --- CHANGELOG.md | 4 ++++ src/hardis-commands-provider.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9403ed..e4f218b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ - Add your updates here :) +## [5.6.1] 2024-01-10 + +- Update python commands so they work on any tyme of python installation, including Windows + ## [5.6.0] 2024-01-04 - New command [hardis:doc:mkdocs-to-salesforce](https://sfdx-hardis.cloudity.com/hardis/doc/mkdocs-to-salesforce/) to upload HTML doc as static resource to your Salesforce org diff --git a/src/hardis-commands-provider.ts b/src/hardis-commands-provider.ts index 9c376bd..f929ed1 100644 --- a/src/hardis-commands-provider.ts +++ b/src/hardis-commands-provider.ts @@ -777,7 +777,7 @@ export class HardisCommandsProvider id: "hardis-run-doc", label: "Run Local HTML Doc Pages", command: - "pip install mkdocs-material mdx_truly_sane_lists && mkdocs serve", + "(pip install mkdocs-material mdx_truly_sane_lists && mkdocs serve) || (python -m install mkdocs-material mdx_truly_sane_lists && python -m mkdocs serve) || (py -m pip install mkdocs-material mdx_truly_sane_lists && py -m mkdocs serve)", tooltip: "Run Documentation local web server, then open http://127.0.0.1:8000/ . You need Python on your computer :)", requiresProject: true,