0.0.9 • Published 5 months ago
apex-docs-to-azure-wiki v0.0.9
Apex Docs to Azure Wiki
This npm package is intended to be used in an azure CI/CD pipeline. If run in a Salesforce DX project, it will use cesarParra/apexdocs to generate markdown on any Apex classes. It will then upload them to the specified Azure Wiki.
Usage
npm i -g apex-docs-to-azure-wiki
npx apex-to-azure <orgUrl> <token> <projectName> <wikiName> <pathPrefix> [archivePath]
Parameters
- orgURL - e.g.
https://dev.azure.com/exampleOrg/
or use $(System.TeamFoundationCollectionUri) in an azure pipeline - token - Personal Access Token or use $(System.AccessToken) in an azure pipeline
- projectName - e.g.
ExampleProject
or use $(System.TeamProject) in an azure pipeline - wikiName - e.g.
ExampleProject.wiki
- Name of the wiki, usually the name of the project with ".wiki" appended - pathPrefix - Where in the wiki structure you want the pages to be uploaded e.g.
"Home/Org Information/Auto Documentation"
- archivePath - Optional parameter - Where you want the pages of removed classes to be moved to e.g.
"Home/Archived Pages"
Generating flow documentation
This package doesn't generate flow documentation. However sfdx-hardis generates markdown files for Flows with mermaid diagrams. Since this package uploads the entire contents of the generated /docs folder when it runs, if you run sf hardis:doc:project2markdown
beforehand, these will get uploaded too.
Special thanks to
- cesarParra/apexdocs - Without this fantastic package, I would have nothing to upload to an Azure Wiki.
- sfdx-hardis - Whilst I did not use this package, I use it in my own Azure pipelines and find it to be a great tool.