DscResource.DocGenerator
0.8.0-preview0001
Functionality to help generate documentation for modules.
Minimum PowerShell version
5.0
See the version list below for details.
Installation Options
Owners
Copyright
(c) DSC Community contributors.
Package Details
Author(s)
- DSC Community
Tags
Functions
New-DscResourcePowerShellHelp New-DscResourceWikiPage Publish-WikiContent Set-WikiModuleVersion Split-ModuleVersion
Dependencies
This module has no dependencies.
Release Notes
## [0.8.0-preview0001] - 2021-02-07
### Added
- Added a new private function `Get-ClassResourceCommentBasedHelp` to get
comment-based help from a PowerShell script file.
- Added a new private function `Get-ClassResourcePropertyState` to get
named attribute argument (from the attribute `[DscProperty()]`) for a
class-based resource parameter and return the corresponding name used by
MOF-based resources.
- Added a new private function `Get-ResourceExampleAsMarkdown` that helps
to return examples as markdown, and to reduce code duplication.
- Added a test helper module `DscResource.DocGenerator.TestHelper.psm1`
that contain helper functions for tests.
- Added helper function `Out-Diff` that outputs two text strings in hex
side-by-side (thanks to [@johanringman](https://github.com/johanringman)
for help with this one).
### Changed
- `Split-ModuleVersion`
- This cmdlet is now exported as a public function because it is required
by the build task `Generate_Wiki_Content`.
- `Generate_Wiki_Content`
- The Build task `Generate_Wiki_Content` was changed to call the cmdlet
`New-DscResourceWikiPage` with the correct parameters to support generating
documentation for class-based resource ([issue #52](https://github.com/dsccommunity/DscResource.DocGenerator/issues/52)).
- `New-DscResourceWikiPage`
- Now supports generating wiki documentation for class-based resources
([issue #52](https://github.com/dsccommunity/DscResource.DocGenerator/issues/52)).
- **BREAKING CHANGE:** To support class-based resource the parameters were
renamed to better recognize what path goes where.
- Each values that are in a `ValueMap` of a MOF schema parameter, or in
a `ValidateSet()` of a class-based resource parameter, will be outputted
as markdown inline code.
### Fixed
- `Get-ResourceExampleAsText`
- Comment-based help was updated to reflect the correct parameters.
- `New-DscResourcePowerShellHelp`
- Fixed unit tests to support new private function `Get-ClassResourceCommentBasedHelp`
and use the test helper module `DscResource.DocGenerator.TestHelper.psm1`.
- It no longer uses `Recurse` when looking for the module's PowerShell
script files. It could potentially lead to that it found resources that
are part of common modules in the `Modules` folder.
- Made use of private functions to reduce duplicate code.
- `Get-DscResourceSchemaPropertyContent`
- Fixed the private function so that the description property no longer
output an extra whitespace in some circumstances.
FileList
- DscResource.DocGenerator.nuspec
- DscResource.DocGenerator.psm1
- DscResource.DocGenerator.psd1
- en-US\DscResource.DocGenerator.strings.psd1
- en-US\about_DscResource.DocGenerator.help.txt
- tasks\Publish_GitHub_Wiki_Content.build.ps1
- tasks\Generate_Conceptual_Help.build.ps1
- tasks\Generate_Wiki_Content.build.ps1
- Modules\DscResource.Common\0.2.0\DscResource.Common.psd1
- Modules\DscResource.Common\0.2.0\DscResource.Common.psm1
- Modules\DscResource.Common\0.2.0\en-US\DscResource.Common.psd1
- Modules\DscResource.Common\0.2.0\en-US\about_DscResource.Common.help.txt
Version History
Version | Downloads | Last updated |
---|---|---|
0.13.0-previ... | 9 | 11/17/2024 |
0.13.0-previ... | 33 | 10/26/2024 |
0.13.0-previ... | 4 | 10/23/2024 |
0.13.0-previ... | 46 | 10/20/2024 |
0.12.5 | 1,630 | 8/14/2024 |
0.12.5-previ... | 5 | 8/14/2024 |
0.12.5-previ... | 5 | 8/13/2024 |
0.12.4 | 1,787 | 6/3/2024 |
0.12.4-previ... | 5 | 6/3/2024 |
0.12.3 | 66 | 6/1/2024 |
0.12.3-previ... | 5 | 6/1/2024 |
0.12.2 | 67 | 5/31/2024 |
0.12.2-previ... | 5 | 5/31/2024 |
0.12.2-previ... | 13 | 5/29/2024 |
0.12.1 | 1,957 | 1/21/2024 |
0.12.1-previ... | 7 | 1/21/2024 |
0.12.0 | 18 | 1/21/2024 |
0.12.0-previ... | 26 | 1/19/2024 |
0.12.0-previ... | 49 | 1/17/2024 |
0.12.0-previ... | 28 | 1/14/2024 |
0.12.0-previ... | 42 | 12/30/2023 |
0.11.2 | 6,974 | 1/3/2023 |
0.11.2-previ... | 7 | 1/3/2023 |
0.11.1 | 2,469 | 8/9/2022 |
0.11.1-previ... | 25 | 8/9/2022 |
0.11.1-previ... | 24 | 8/1/2022 |
0.11.0 | 1,732 | 5/10/2022 |
0.11.0-previ... | 25 | 5/9/2022 |
0.10.4-previ... | 27 | 5/9/2022 |
0.10.4-previ... | 25 | 5/9/2022 |
0.10.3 | 962 | 1/26/2022 |
0.10.3-previ... | 25 | 1/26/2022 |
0.10.3-previ... | 26 | 1/26/2022 |
0.10.2 | 33 | 1/25/2022 |
0.10.2-previ... | 25 | 1/24/2022 |
0.10.1 | 670 | 10/19/2021 |
0.10.1-previ... | 25 | 10/18/2021 |
0.10.1-previ... | 26 | 8/7/2021 |
0.10.1-previ... | 26 | 8/6/2021 |
0.10.0 | 608 | 8/5/2021 |
0.10.0-previ... | 26 | 8/5/2021 |
0.9.1 | 364 | 7/14/2021 |
0.9.1-previe... | 27 | 7/13/2021 |
0.9.0 | 70 | 7/8/2021 |
0.9.0-previe... | 25 | 7/8/2021 |
0.9.0-previe... | 25 | 7/8/2021 |
0.9.0-previe... | 25 | 7/8/2021 |
0.9.0-previe... | 26 | 7/7/2021 |
0.9.0-previe... | 25 | 7/6/2021 |
0.9.0-previe... | 26 | 7/6/2021 |
0.9.0-previe... | 31 | 7/6/2021 |
0.9.0-previe... | 26 | 6/26/2021 |
0.9.0-previe... | 25 | 6/25/2021 |
0.9.0-previe... | 26 | 6/20/2021 |
0.9.0-previe... | 25 | 6/19/2021 |
0.9.0-previe... | 26 | 6/16/2021 |
0.9.0-previe... | 25 | 6/8/2021 |
0.8.4-previe... | 25 | 6/3/2021 |
0.8.3 | 1,517 | 4/10/2021 |
0.8.2 | 522 | 3/19/2021 |
0.8.1 | 160 | 3/11/2021 |
0.8.1-previe... | 27 | 3/11/2021 |
0.8.0 | 538 | 2/8/2021 |
0.8.0-previe... (current version) | 30 | 2/7/2021 |
0.7.4 | 84 | 2/2/2021 |
0.7.4-previe... | 28 | 2/2/2021 |
0.7.3 | 31 | 2/2/2021 |
0.7.3-previe... | 27 | 2/2/2021 |
0.7.3-previe... | 27 | 1/18/2021 |
0.7.2 | 227 | 1/17/2021 |
0.7.2-previe... | 28 | 1/17/2021 |
0.7.1 | 1,203 | 8/5/2020 |
0.7.1-previe... | 26 | 8/5/2020 |
0.7.0 | 270 | 7/8/2020 |
0.7.0-previe... | 26 | 7/8/2020 |
0.6.1 | 141 | 7/1/2020 |
0.6.1-previe... | 26 | 7/1/2020 |
0.6.1-previe... | 26 | 6/26/2020 |
0.6.0 | 124 | 6/22/2020 |
0.6.0-previe... | 27 | 6/22/2020 |
0.6.0-previe... | 26 | 6/20/2020 |
0.5.2-previe... | 27 | 6/16/2020 |
0.5.1 | 1,282 | 5/1/2020 |
0.5.1-previe... | 26 | 5/1/2020 |
0.5.0 | 633 | 3/28/2020 |
0.5.0-previe... | 28 | 3/27/2020 |
0.4.1-previe... | 28 | 2/26/2020 |
0.4.0 | 176 | 2/25/2020 |
0.4.0-previe... | 28 | 2/25/2020 |
0.4.0-previe... | 28 | 2/25/2020 |
0.4.0-previe... | 28 | 2/18/2020 |
0.3.0 | 54 | 2/11/2020 |
0.3.0-previe... | 28 | 2/11/2020 |
0.2.0 | 34 | 2/6/2020 |
0.1.1 | 32 | 2/2/2020 |
0.1.1-previe... | 32 | 2/2/2020 |