Skip to content

Commit 08bd636

Browse files
authored
New menu upload HTML doc as static resource to your Salesforce org (#190)
* New menu upload HTML doc as static resource to your Salesforce org * typo * [Mega-Linter] Apply linters fixes --------- Co-authored-by: nvuillam <[email protected]>
1 parent 18c2186 commit 08bd636

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- Add your updates here :)
66

7+
## [5.6.0] 2024-01-04
8+
9+
- 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
10+
711
## [5.5.1] 2024-01-03
812

913
- Reorder menu

src/hardis-commands-provider.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,16 @@ export class HardisCommandsProvider
784784
helpUrl:
785785
"https://sfdx-hardis.cloudity.com/salesforce-project-documentation/",
786786
},
787+
{
788+
id: "hardis-upload-doc",
789+
label: "Upload HTML Doc to Salesforce",
790+
command: "sf hardis:doc:mkdocs-to-salesforce",
791+
tooltip:
792+
"Generates HTML Doc and Uploads it to Salesforce as a static resource with a VfPage & a CustomTab. You need Python on your computer :)",
793+
requiresProject: true,
794+
helpUrl:
795+
"https://sfdx-hardis.cloudity.com/hardis/doc/mkdocs-to-salesforce/",
796+
},
787797
{
788798
id: "hardis:doc:flow2markdown",
789799
label: "Generate Flow Documentation",

src/themeUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ export class ThemeUtils {
249249
vscode: "book",
250250
hardis: "doc.svg",
251251
},
252+
"hardis-upload-doc": {
253+
vscode: "cloud-upload",
254+
hardis: "push.svg",
255+
},
252256
"hardis:doc:flow2markdown": { vscode: "git-branch", hardis: "doc.svg" },
253257
"hardis:doc:flow2markdown-history": {
254258
vscode: "git-branch",

0 commit comments

Comments
 (0)