AI-powered GitHub Wiki generator for automated documentation
Project description
Git Wiki Builder
AI-powered GitHub Wiki generator that automatically creates comprehensive documentation for your projects.
๐ Overview
Git Wiki Builder transforms your project's README, documentation files, and code structure into a comprehensive, well-organized GitHub Wiki using AI. It analyzes your project intelligently and generates professional documentation that follows industry best practices.
โจ Key Benefits
- ๐ค AI-Powered: Uses GitHub's hosted AI models (free for public repos) to generate high-quality content
- ๐ Zero Configuration: Works out-of-the-box with sensible defaults
- โก Automated: Integrates seamlessly with GitHub Actions for continuous documentation
- ๐ Comprehensive: Creates complete wiki structure with multiple sections
- ๐ฏ Intelligent: Analyzes your project to detect APIs, Docker, tests, and more
- โ Quality Assured: Built-in markdown validation and auto-fixing
- ๐ง Customizable: Flexible prompts and configuration options
- ๐ฐ Cost-Effective: Uses free GitHub Models for public repositories
๐๏ธ What It Creates
Git Wiki Builder automatically generates a complete wiki structure:
- ๐ Home: Project overview and navigation
- ๐ Getting Started: Installation, configuration, first steps
- ๐ User Guide: Features, usage examples, tutorials
- ๐ API Reference: Endpoint documentation (if APIs detected)
- ๐ฉโ๐ป Development: Contributing guidelines, setup, testing
- ๐ข Deployment: Deployment guides and best practices
- โ FAQ: Common questions and troubleshooting
- ๐ Changelog: Release notes and migration guides
๐ Quick Start
1. Install Git Wiki Builder
pip install git-wiki-builder
2. One-Command Setup
Run this in your repository root to set up everything automatically:
curl -sSL https://raw.githubusercontent.com/example/git-wiki-builder/main/setup-wiki.sh | bash
Or manually create the workflow file:
mkdir -p .github/workflows
Create .github/workflows/wiki.yml:
name: Generate Wiki Documentation
on:
push:
branches: [main, master]
paths: ['README.md', 'docs/**', 'src/**', '*.md']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
generate-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip install git-wiki-builder
- run: git-wiki-builder
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
3. Enable Wiki & Push
-
Enable Wiki in your repository:
- Go to Settings โ Features โ Wikis โ
-
Commit and push:
git add .github/workflows/wiki.yml git commit -m "Add automated wiki generation" git push
-
Your wiki is ready! ๐
- Visit
https://github.com/yourusername/yourrepo/wiki - Wiki updates automatically when you modify README.md, docs/, or source code
- Visit
๐ฏ Why Git Wiki Builder?
Traditional Documentation Problems
- โ Manual wiki creation is time-consuming
- โ Documentation gets outdated quickly
- โ Inconsistent structure across projects
- โ Requires dedicated technical writers
- โ Hard to maintain comprehensive coverage
Git Wiki Builder Solutions
- โ Automated Generation: AI creates content from your existing files
- โ Always Up-to-Date: Regenerates on every code change
- โ Consistent Structure: Professional, standardized wiki layout
- โ Developer-Friendly: Works with your existing workflow
- โ Comprehensive Coverage: Analyzes entire project structure
Perfect For
- ๐ง Open Source Projects: Professional documentation attracts contributors
- ๐ข Enterprise Teams: Consistent documentation across all repositories
- ๐ API Projects: Automatic API documentation generation
- ๐ Startups: Professional appearance without dedicated resources
- ๐จโ๐ Learning Projects: Well-documented code for portfolios
๐ ๏ธ Advanced Usage
Local Testing
# Test locally before publishing
git-wiki-builder --dry-run --output-dir ./wiki-preview
# Use verbose logging for debugging
git-wiki-builder --verbose --dry-run
Custom Configuration
Create .git-wiki-builder.yml:
# AI Configuration
ai:
provider: "github" # Free for public repos
model: "gpt-4o-mini" # Fast and efficient
# Custom Wiki Structure
wiki_structure:
"Home": ["overview", "quick_start"]
"Documentation": ["user_guide", "api_docs"]
"Development": ["contributing", "setup"]
# Validation
validation:
skip: false # Enable markdown validation
Alternative AI Providers
# Use OpenAI (requires API key)
ai:
provider: "openai"
model: "gpt-4"
# Use Anthropic Claude (requires API key)
ai:
provider: "anthropic"
model: "claude-3-sonnet-20240229"
Custom Prompts
Create custom-prompts.yml:
home: |
Create a welcoming home page for {project_name}.
Highlight: {key_features}
Make it beginner-friendly and engaging.
api_reference: |
Document the API for {project_name}.
Include authentication, endpoints, and examples.
Code structure: {code_structure}
Use with: git-wiki-builder --prompt-file custom-prompts.yml
๐ Supported Project Types
Git Wiki Builder works with any project but provides enhanced support for:
| Technology | Auto-Detected Features |
|---|---|
| Python | Dependencies, virtual envs, testing frameworks |
| Node.js | Package.json, npm scripts, testing |
| Docker | Container deployment, compose files |
| APIs | OpenAPI specs, endpoint documentation |
| CI/CD | GitHub Actions, deployment pipelines |
| Databases | Schema documentation, migrations |
๐ง Command Line Options
git-wiki-builder [OPTIONS]
Options:
-r, --repo-path DIRECTORY Repository path (default: current directory)
-c, --config-file FILE Custom configuration file
-p, --prompt-file FILE Custom prompt templates
-o, --output-dir DIRECTORY Local output directory
--ai-provider [github|openai|anthropic] AI provider (default: github)
--ai-model TEXT Specific model to use
--dry-run Generate locally without publishing
--verbose Enable detailed logging
--skip-validation Skip markdown validation
--help Show help message
๐ Environment Variables
| Variable | Description | Required |
|---|---|---|
GITHUB_TOKEN |
GitHub token (auto-provided in Actions) | Yes |
GITHUB_REPOSITORY |
Repository name (auto-provided in Actions) | Yes |
OPENAI_API_KEY |
OpenAI API key | Only for OpenAI provider |
ANTHROPIC_API_KEY |
Anthropic API key | Only for Anthropic provider |
๐ How It Works
- ๐ Analysis: Scans README, docs/, and source code
- ๐ง AI Generation: Uses AI to create comprehensive content
- โ Validation: Validates and fixes markdown formatting
- ๐ค Publishing: Commits to GitHub Wiki repository
- ๐ Automation: Repeats on every relevant change
๐ค Contributing
We welcome contributions! See our Contributing Guide for details.
Development Setup
git clone https://github.com/example/git-wiki-builder.git
cd git-wiki-builder
pip install -e ".[dev]"
pytest
๐ License
MIT License - see LICENSE file for details.
๐ Support & Resources
- ๐ Documentation Wiki
- ๐ Report Issues
- ๐ฌ GitHub Discussions
- ๐ง Email Support
๐ Examples
See Git Wiki Builder in action:
โญ Star this repository if Git Wiki Builder helps your project!
Made with โค๏ธ for the developer community
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_wiki_builder-0.1.1.tar.gz.
File metadata
- Download URL: git_wiki_builder-0.1.1.tar.gz
- Upload date:
- Size: 57.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
476a6cbaed888211dd4a855cc30bef292e0fe2b19ce6f4cda5ef778b02d202bc
|
|
| MD5 |
7ddf41728e959f94a9185512968a64cc
|
|
| BLAKE2b-256 |
5d2c446e0fedb52b1eea31f53a95646b69ad7deb9f7c188d6cc26d43c8b6b728
|
File details
Details for the file git_wiki_builder-0.1.1-py3-none-any.whl.
File metadata
- Download URL: git_wiki_builder-0.1.1-py3-none-any.whl
- Upload date:
- Size: 45.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdbcc2d5c87db1c1efa28d68599a109a82f77c6fe013f9e9939574c6af81107f
|
|
| MD5 |
8644cd40b3ff9db28552eaae6b18ae39
|
|
| BLAKE2b-256 |
f705c7fb7e7901c3daf3b6ab28bae86a28af8f2f29a67dfca5cc779a52b442af
|