-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flow Visual Git Diff enhancements + deploy notify documentation (#1008)
* Flow Visual Diff enhancements - Display full node fields table when it contains updated elements - Fix removed long links - Handle cases where Flow has been added or deleted * deploy:notify documentation * docgen * linter fixes * [Mega-Linter] Apply linters fixes :) --------- Co-authored-by: nvuillam <[email protected]>
- Loading branch information
Showing
23 changed files
with
446 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!-- This file has been generated with command 'sf hardis:doc:plugin:generate'. Please do not update it manually or it may be overwritten --> | ||
# hardis:doc:mkdocs-to-salesforce | ||
|
||
## Description | ||
|
||
Generates MkDocs HTML pages and upload them to Salesforce as a static resource | ||
|
||
This command performs the following operations: | ||
|
||
- Generates MkDocs HTML pages (using locally installed mkdocs-material, or using mkdocs docker image) | ||
- Creates a Static Resource, a VisualForce page and a Custom Tab metadata | ||
- Upload the metadatas to the default org | ||
- Opens the Custom Tab in the default browser (only if not in CI context) | ||
|
||
Note: the documentation must have been previously generated using "sf hardis:doc:project2markdown --with-history" | ||
|
||
You can: | ||
|
||
- Specify the type of documentation to generate (CICD or Monitoring) using the --type flag. Default is CICD. | ||
- Override default styles by customizing mkdocs.yml | ||
|
||
More info on [Documentation section](https://sfdx-hardis.cloudity.com/salesforce-project-documentation/) | ||
|
||
|
||
## Parameters | ||
|
||
| Name | Type | Description | Default | Required | Options | | ||
|:------------------|:-------:|:--------------------------------------------------------------|:-------:|:--------:|:-------------------:| | ||
| debug<br/>-d | boolean | Activate debug mode (more logs) | | | | | ||
| flags-dir | option | undefined | | | | | ||
| json | boolean | Format output as json. | | | | | ||
| skipauth | boolean | Skip authentication check when a default username is required | | | | | ||
| target-org<br/>-o | option | undefined | | | | | ||
| type<br/>-t | option | Type of the documentation to generate. Default is "all" | CICD | | CICD<br/>Monitoring | | ||
| websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration | | | | | ||
|
||
## Examples | ||
|
||
```shell | ||
sf hardis:doc:mkdocs-to-salesforce | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<!-- This file has been generated with command 'sf hardis:doc:plugin:generate'. Please do not update it manually or it may be overwritten --> | ||
# hardis:doc:project2markdown copy | ||
|
||
## Description | ||
|
||
Generates a markdown documentation from a SFDX project | ||
|
||
- Package.xml files | ||
- Source Packages | ||
- sfdx-hardis configuration | ||
- Installed packages | ||
|
||
Can work on any sfdx project, no need for it to be a sfdx-hardis flavored one. | ||
|
||
Generates markdown files will be written in **docs** folder (except README.md where a link to doc index is added) | ||
|
||
To read Flow documentations if your markdown reader doesn't handle MermaidJS syntax, this command could require @mermaid-js/mermaid-cli | ||
|
||
- Run `npm install @mermaid-js/mermaid-cli --global` if puppeteer works in your environment | ||
- It can also be run as a docker image | ||
|
||
Both modes will be tried by default, but you can also force one of them by defining environment variable `MERMAID_MODES=docker` or `MERMAID_MODES=cli` | ||
|
||
_sfdx-hardis docker image is alpine-based and does not succeed to run mermaid/puppeteer: if you can help, please submit a PR !_ | ||
|
||
If Flow history doc always display a single state, you probably need to update your workflow configuration: | ||
|
||
- on Gitlab: Env variable [`GIT_FETCH_EXTRA_FLAGS: --depth 10000`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.gitlab-ci.yml#L11) | ||
- on GitHub: [`fetch-depth: 0`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.github/workflows/org-monitoring.yml#L58) | ||
- on Azure: [`fetchDepth: "0"`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/azure-pipelines.yml#L39) | ||
- on Bitbucket: [`step: clone: depth: full`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/bitbucket-pipelines.yml#L18) | ||
|
||
![Screenshot flow doc](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-flow-doc.jpg) | ||
|
||
![Screenshot project documentation](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-project-doc.jpg) | ||
|
||
![Screenshot project documentation](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/screenshot-project-doc-2.jpg) | ||
|
||
## Doc HTML Pages | ||
|
||
To read the documentation as HTML pages, run the following code (you need [**Python**](https://www.python.org/downloads/) on your computer) | ||
|
||
```python | ||
pip install mkdocs-material mdx_truly_sane_lists | ||
mkdocs serve | ||
``` | ||
|
||
To just generate HTML pages that you can host anywhere, run `mkdocs build` | ||
|
||
|
||
|
||
## Parameters | ||
|
||
| Name | Type | Description | Default | Required | Options | | ||
|:-------------|:-------:|:--------------------------------------------------------------------|:-------:|:--------:|:-------:| | ||
| debug<br/>-d | boolean | Activate debug mode (more logs) | | | | | ||
| diff-only | boolean | Generate documentation only for changed files (used for monitoring) | | | | | ||
| flags-dir | option | undefined | | | | | ||
| json | boolean | Format output as json. | | | | | ||
| skipauth | boolean | Skip authentication check when a default username is required | | | | | ||
| websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration | | | | | ||
| with-history | boolean | Generate a markdown file with the history diff of the Flow | | | | | ||
|
||
## Examples | ||
|
||
```shell | ||
sf hardis:doc:project2markdown | ||
``` | ||
|
||
```shell | ||
sf hardis:doc:project2markdown --with-history | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.