A PowerShell module with commands to generate markdown from objects using PowerShell syntax.
SupportThis project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates.
Support for this project/ product is limited to the resources listed above.
Getting the modulesYou can download and install the PSDocs module from the PowerShell Gallery.
Module Description Downloads / instructions PSDocs Generate markdown from PowerShell latest / instructionsFor integration modules see related projects.
Getting startedThe following example shows basic PSDocs usage. For specific use cases see scenarios.
Define a documentA document provides instructions on how PSDocs should render an object into documentation. To define a document, create the Document
script block saved to a file with the .Doc.ps1
extension.
For example:
# File: Sample.Doc.ps1 # Define a document called Sample Document Sample { # Define content here }
Within the document body provide one or more instructions.
For example:
# File: Sample.Doc.ps1 # Define a document called Sample Document Sample { # Add an introduction section Section Introduction { # Add a comment "This is a sample file list from $TargetObject" # Generate a table Get-ChildItem -Path $TargetObject | Table -Property Name,PSIsContainer } }Execute a document
To execute the document use Invoke-PSDocument
.
For example:
Invoke-PSDocument -InputObject 'C:\';
An example of the output generated is available here.
Scenarios Language referencePSDocs extends PowerShell with domain specific language (DSL) keywords and cmdlets.
KeywordsThe following language keywords are used by the PSDocs
module:
The following commands exist in the PSDocs
module:
The following commands exist in the PSDocs.Dsc
module:
The following conceptual topics exist in the PSDocs
module:
The following projects use or integrate with PSDocs.
Name Description PSDocs.Azure Generate documentation from Azure infrastructure as code (IaC) artifacts. PSDocs.Dsc Extension for PSDocs to generate markdown from Desired State Configuration. Changes and versioningModules in this repository will use the semantic versioning model to declare breaking changes from v1.0.0. Prior to v1.0.0, breaking changes may be introduced in minor (0.x.0) version increments. For a list of module changes please see the change log.
ContributingPre-release module versions are created on major commits and can be installed from the PowerShell Gallery. Pre-release versions should be considered experimental. Modules and change log details for pre-releases will be removed as standard releases are made available.
This project welcomes contributions and suggestions. If you are ready to contribute, please visit the contribution guide.
Code of ConductThis project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Maintainers LicenseThis project is licensed under the MIT License.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4