hardis:doc:project2markdown
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 generate Flow documentations, this command requires @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 !
Parameters
Name | Type | Description | Default | Required | Options |
---|---|---|---|---|---|
debug -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 |
Examples
$ sf hardis:doc:project2markdown