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:
- Clone the PSChristmasTree repo
- Checkout a new branch
- Commit changes
- Organization is described in the mkdocs.yml file
- mkdocs.yml points to markdown files in the docs folder
- Images are stored and accessible from docs/img
- Submit a pull request to the new branch
Release and quality checklist
For maintainers and contributors preparing larger changes, use this quick process:
- Run tests locally before opening or updating a pull request.
- Run script analysis on module code.
- Verify generated docs are still aligned with command behavior.
- 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.