Repo-Documenter is a PowerShell script that generates comprehensive documentation for a repository, including a tree view of the repository structure and the contents of specified files. The aggregated file is useful for code review, documentation, or use by an AI assistant.
MIT License
Repo-Documenter is a PowerShell script that generates comprehensive documentation for a repository, including a tree view of the repository structure and the contents of specified files. The aggregated file is useful for code review, documentation, or use by an AI assistant.
Repo-Documenter.ps1
script.repo_documenter.config
file in the root of the repository you want to document.repo_documenter.config
file to specify which files and directories to include..\Repo-Documenter.ps1 -RepoPath <path_to_your_repository> [-OutputFile <output_file_name>]
If no output file is specified, the script will create a Markdown file named after the repository in the current directory.
Create a repo_documenter.config
file in the root of your repository. Each line in this file should contain a pattern for files or directories to include. For example:
*.md
src/*
docs/*.txt
This configuration will include all Markdown files, everything in the src
directory, and all text files in the docs
directory.
The script now safely handles binary files:
The script generates a Markdown file containing: