-
-
Notifications
You must be signed in to change notification settings - Fork 24
Overwrite docs #73
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
Overwrite docs #73
Conversation
* Introduced an `Overwrite` parameter to control the overwriting of existing markdown files. * Updated relevant functions and properties to utilize the new parameter.
* Added new rules for `MD013` to disable checks for code blocks and tables. * Documented breaking changes in `CHANGELOG.md` regarding UTF-8 file compilation and markdown file overwriting.
* Introduced a new `.PARAMETER Overwrite` to allow overwriting existing markdown files. * Updated the `New-MarkdownHelp` command to utilize the `Overwrite` parameter.
So the impact of this on existing users of PowerShellBuild is that if the markdown help files already exist, they'll be overwritten based on comment-based help if it is present? If so, then for someone like me who uses markdown as my source of truth, I'll have to add a line to set Should we overwrite files by default, or should we fail the build and suggest the user add |
…eter * Clarified the behavior of the `$PSBPreference.Docs.Overwrite` parameter. * Updated the default value from `$true` to `$false` in configuration files. * Enhanced error handling in `Build-PSBuildMarkdown` function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet!
I've decided to set the default to |
Updated New-MarkdownHelp with force parameter.
This is a signed version of #67
Description
New-MarkdownHelp should always overwrite new old markdown pages.
If this is not suitable a parameter should be added to be able to force it.
Related Issue
Motivation and Context
This allows the comment based help to be the source of truth.
How Has This Been Tested?
Checklist: