0.0.9 • Published 5 months ago

apex-docs-to-azure-wiki v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Apex Docs to Azure Wiki

NPM Version TypeScript version Node.js version MIT Build Status - GitHub Actions

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

  1. orgURL - e.g. https://dev.azure.com/exampleOrg/ or use $(System.TeamFoundationCollectionUri) in an azure pipeline
  2. token - Personal Access Token or use $(System.AccessToken) in an azure pipeline
  3. projectName - e.g. ExampleProject or use $(System.TeamProject) in an azure pipeline
  4. wikiName - e.g. ExampleProject.wiki - Name of the wiki, usually the name of the project with ".wiki" appended
  5. pathPrefix - Where in the wiki structure you want the pages to be uploaded e.g. "Home/Org Information/Auto Documentation"
  6. 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

  1. cesarParra/apexdocs - Without this fantastic package, I would have nothing to upload to an Azure Wiki.
  2. 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.
0.0.9

5 months ago

0.0.8

5 months ago

0.0.5

5 months ago