Skip to content

Commit

Permalink
PDF generation commands (#200)
Browse files Browse the repository at this point in the history
* PDF generation commands

* [Mega-Linter] Apply linters fixes

* Update labels

---------

Co-authored-by: nvuillam <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Feb 27, 2025
1 parent 31d4d66 commit 8898d15
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

- Add your updates here :)

## [5.8.0] 2024-02-27

- Add PDF generation commands
- Add another python commands combination to locally run documentation

## [5.7.0] 2024-02-14
Expand Down
21 changes: 20 additions & 1 deletion src/hardis-commands-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,16 @@ export class HardisCommandsProvider
helpUrl:
"https://sfdx-hardis.cloudity.com/hardis/doc/project2markdown/",
},
{
id: "hardis:doc:project2markdown-pdf",
label: "Project Documentation + PDF",
command: "sf hardis:doc:project2markdown --pdf",
tooltip:
"Generates markdown pages with SF Project content: List of metadatas, installed packages... + PDF files",
requiresProject: true,
helpUrl:
"https://sfdx-hardis.cloudity.com/hardis/doc/project2markdown/",
},
{
id: "hardis:doc:project2markdown-history",
label: "Project Documentation (with history)",
Expand Down Expand Up @@ -806,13 +816,22 @@ export class HardisCommandsProvider
},
{
id: "hardis:doc:flow2markdown",
label: "Single Flow Documentation",
label: "Flows Documentation",
command: "sf hardis:doc:flow2markdown",
tooltip: "Generates Visual Documentation for a Flow",
requiresProject: true,
helpUrl:
"https://sfdx-hardis.cloudity.com/hardis/doc/flow2markdown/",
},
{
id: "hardis:doc:flow2markdown-pdf",
label: "Flows Documentation + PDF",
command: "sf hardis:doc:flow2markdown --pdf",
tooltip: "Generates Visual Documentation for a Flow + PDF file",
requiresProject: true,
helpUrl:
"https://sfdx-hardis.cloudity.com/hardis/doc/flow2markdown/",
},
{
id: "hardis:project:generate:flow-git-diff",
label: "Single Flow Visual Git Diff",
Expand Down
5 changes: 5 additions & 0 deletions src/themeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export class ThemeUtils {
hardis: "old.svg",
},
"hardis:doc:project2markdown": { vscode: "book", hardis: "doc.svg" },
"hardis:doc:project2markdown-pdf": { vscode: "book", hardis: "doc.svg" },
"hardis:doc:project2markdown-history": {
vscode: "book",
hardis: "doc.svg",
Expand All @@ -254,6 +255,10 @@ export class ThemeUtils {
hardis: "push.svg",
},
"hardis:doc:flow2markdown": { vscode: "git-branch", hardis: "doc.svg" },
"hardis:doc:flow2markdown-pdf": {
vscode: "git-branch",
hardis: "doc.svg",
},
"hardis:doc:flow2markdown-history": {
vscode: "git-branch",
hardis: "doc.svg",
Expand Down

0 comments on commit 8898d15

Please sign in to comment.