Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Auto Documentation - Fixes #677 #728

Merged
merged 25 commits into from
Sep 25, 2021

Conversation

PlagueHO
Copy link
Member

@PlagueHO PlagueHO commented Sep 11, 2021

Pull Request (PR) description

This PR will add support for automatic documentation and Wiki generation.

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry to the change log under the Unreleased section of the
    file CHANGELOG.md. Entry should say what was changed and how that
    affects users (if applicable), and reference the issue being resolved
    (if applicable).
  • Resource documentation added/updated in README.md.
  • Resource parameter descriptions added/updated in README.md, schema.mof
    and comment-based help.
  • Comment-based help added/updated.
  • Localization strings added/updated in all localization files as appropriate.
  • Examples appropriately added/updated.
  • Unit tests added/updated. See DSC Community Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
  • New/changed code adheres to DSC Community Style Guidelines.

This change is Reviewable

@codecov
Copy link

codecov bot commented Sep 11, 2021

Codecov Report

Merging #728 (a333831) into main (475885c) will decrease coverage by 0%.
The diff coverage is 100%.

❗ Current head a333831 differs from pull request most recent head cbf6975. Consider uploading reports for the commit cbf6975 to get more accurate results
Impacted file tree graph

@@         Coverage Diff         @@
##           main   #728   +/-   ##
===================================
- Coverage    72%    72%   -1%     
===================================
  Files        30     30           
  Lines      4427   4427           
===================================
- Hits       3213   3199   -14     
- Misses     1214   1228   +14     
Impacted Files Coverage Δ
...sources/DSC_xDSCWebService/DSC_xDSCWebService.psm1 88% <ø> (ø)
...sources/DSC_xGroupResource/DSC_xGroupResource.psm1 70% <ø> (ø)
...sionConfiguration/DSC_xPSSessionConfiguration.psm1 0% <ø> (ø)
...ces/DSC_xPackageResource/DSC_xPackageResource.psm1 76% <ø> (-4%) ⬇️
...urces/DSC_xScriptResource/DSC_xScriptResource.psm1 100% <ø> (ø)
...ces/DSC_xServiceResource/DSC_xServiceResource.psm1 93% <ø> (ø)
...Resources/DSC_xUserResource/DSC_xUserResource.psm1 53% <ø> (ø)
...urces/DSC_xWindowsFeature/DSC_xWindowsFeature.psm1 86% <ø> (ø)
.../xWindowsFeatureSet/xWindowsFeatureSet.schema.psm1 0% <ø> (ø)
...xEnvironmentResource/DSC_xEnvironmentResource.psm1 91% <100%> (ø)
... and 1 more

@PlagueHO PlagueHO marked this pull request as ready for review September 11, 2021 21:29
@PlagueHO PlagueHO added the needs review The pull request needs a code review. label Sep 11, 2021
@PlagueHO
Copy link
Member Author

Hi @johlju - would you mind reviewing this when you get time? Thanks!

Copy link
Member

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 127 of 136 files at r1, 9 of 9 files at r2, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @PlagueHO)

a discussion (no related file):
Should add a WikiSource folder, under ./source, then add a Home.md, like this: https://github.com/dsccommunity/FileSystemDsc/blob/main/source/WikiSource/Home.md.

There is a placeholder in this file that will automatically update to the semantic version during build (and then published).



README.md, line 19 at r2 (raw file):

against that module

Maybe "against this module"?


README.md, line 47 at r2 (raw file):

## Resources

In the future: Seeing this, we should really try to add this ToC-list to the Home.md automatically based on the resource's README.md 🤔 Then a contributor does not need to update this README.md for new resource. But non-blocking as that is a big thing to create. I have created a new issue for that in DocGenerator.


.vscode/settings.json, line 11 at r2 (raw file):

"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",

I usually change this to '...FirstPipeline' otherwise we have to change all code again in all repos. I have (now) added and issue to fix this in Sampler.


source/DSCResources/DSC_xPackageResource/en-US/DSC_xPackageResource.schema.mfl, line 1 at r2 (raw file):

xMsiPackage

THis is not xMsiPackage, but xPackage?


source/Examples/Resources/xDscWebService/5-xDscWebService_RegistrationWithSecurityBestPractices_Config.ps1, line 81 at r2 (raw file):

Import-DSCResource

I think this should still be Import-DscResource (lowercase 'sc' in 'Dsc'). Throughout.

@johlju
Copy link
Member

johlju commented Sep 18, 2021

@PlagueHO just minor things! Awesome work on this, I know how long it takes to do a PR like this 😄

@johlju johlju added waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. and removed needs review The pull request needs a code review. labels Sep 18, 2021
Copy link
Member Author

@PlagueHO PlagueHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @johlju)

a discussion (no related file):

Previously, johlju (Johan Ljunggren) wrote…

Should add a WikiSource folder, under ./source, then add a Home.md, like this: https://github.com/dsccommunity/FileSystemDsc/blob/main/source/WikiSource/Home.md.

There is a placeholder in this file that will automatically update to the semantic version during build (and then published).

Done.

Great stuff. Thanks @johlju - should be good to go.



README.md, line 19 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
against that module

Maybe "against this module"?

Done.


README.md, line 47 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
## Resources

In the future: Seeing this, we should really try to add this ToC-list to the Home.md automatically based on the resource's README.md 🤔 Then a contributor does not need to update this README.md for new resource. But non-blocking as that is a big thing to create. I have created a new issue for that in DocGenerator.

Awesome - great idea. That would be really handy.


.vscode/settings.json, line 11 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",

I usually change this to '...FirstPipeline' otherwise we have to change all code again in all repos. I have (now) added and issue to fix this in Sampler.

Done.


source/DSCResources/DSC_xPackageResource/en-US/DSC_xPackageResource.schema.mfl, line 1 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
xMsiPackage

THis is not xMsiPackage, but xPackage?

Good catch. Done.


source/Examples/Resources/xDscWebService/5-xDscWebService_RegistrationWithSecurityBestPractices_Config.ps1, line 81 at r2 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
Import-DSCResource

I think this should still be Import-DscResource (lowercase 'sc' in 'Dsc'). Throughout.

Fixed. Throughout.

@johlju johlju added needs review The pull request needs a code review. and removed waiting for code fix A review left open comments, and the pull request is waiting for changes to be pushed by the author. labels Sep 25, 2021
Copy link
Member

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 17 of 17 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @PlagueHO)

@johlju
Copy link
Member

johlju commented Sep 25, 2021

@PlagueHO I leave this for you to merge. 🙂 Awesome work on this!

@johlju johlju added ready for merge The pull request was approved by the community and is ready to be merged by a maintainer. and removed needs review The pull request needs a code review. labels Sep 25, 2021
@PlagueHO
Copy link
Member Author

Thanks @johlju - appreciate your time too!

@PlagueHO PlagueHO merged commit d13647a into dsccommunity:main Sep 25, 2021
@PlagueHO PlagueHO deleted the Issue-677 branch September 25, 2021 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge The pull request was approved by the community and is ready to be merged by a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Automated Documentation Generation
2 participants