How to contribute to the docs

PSChristmasTree uses GitHub Pages to host our documentation. This allows us to keep our docs in the repository, without the various limitations that come with the built in GitHub repo wiki.

Contributions welcome:

Release and quality checklist

For maintainers and contributors preparing larger changes, use this quick process:

  1. Run tests locally before opening or updating a pull request.
  2. Run script analysis on module code.
  3. Verify generated docs are still aligned with command behavior.
  4. Keep GitHub Release notes explicit when behavior changes.

Suggested local validation commands

./tools/Invoke-PSChristmasTreeBuild.ps1 -Task Init,FormatCheck,Analyze,Test,DocsCheck

On Windows, you can also validate the Windows PowerShell 5.1 path explicitly:

./tools/Invoke-PSChristmasTreeBuild.ps1 -Task TestWindowsPowerShell

Git pre-commit hook

A pre-commit hook is available to run tests automatically before every commit. Install it once after cloning:

.\tools\Install-GitHooks.ps1

The hook blocks the commit if any Pester test fails.

CI workflow guidance

The canonical workflows are under .github/workflows/.

  • Keep build/test/publish logic in workflow files under this folder only.
  • Avoid adding parallel experimental pipeline files at repository root.
  • Prefer updating existing workflows over introducing temporary copies.