mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-01-26 11:14:04 +00:00
11574c6fee72fe98df288752cdbf67b5b8c0587d
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
gh-action-readme
The definitive CLI tool for generating beautiful documentation from GitHub Actions
action.ymlfiles
Transform your GitHub Actions into professional documentation with multiple themes, output formats, and enterprise-grade features.
✨ Features
- 🎨 5 Beautiful Themes - GitHub, GitLab, Minimal, Professional, Default
- 📄 4 Output Formats - Markdown, HTML, JSON, AsciiDoc
- 🎯 Smart Validation - Context-aware suggestions for fixing action.yml files
- 🚀 Modern CLI - Colored output, progress bars, comprehensive help
- ⚙️ Enterprise Ready - XDG-compliant configuration, recursive processing
- 🔧 Developer Friendly - Template customization, batch operations
- 📁 Flexible Targeting - Directory/file arguments, custom output filenames
- 🛡️ Thread Safe - Race condition protection, concurrent processing ready
🚀 Quick Start
Installation
# Using Go
go install github.com/ivuorinen/gh-action-readme@latest
# Download binary from releases
curl -L https://github.com/ivuorinen/gh-action-readme/releases/latest/download/gh-action-readme_Linux_x86_64.tar.gz | tar -xz
📖 Complete Installation Guide →
Basic Usage
# Generate README.md from action.yml in current directory
gh-action-readme gen
# Target specific directories or files
gh-action-readme gen testdata/example-action/
gh-action-readme gen testdata/composite-action/action.yml
# Use GitHub theme with custom output filename
gh-action-readme gen --theme github --output custom-readme.md
# Generate JSON for API integration with custom filename
gh-action-readme gen --output-format json --output api-docs.json
# Process all action.yml files recursively
gh-action-readme gen --recursive --theme professional
📋 Examples
Input: action.yml
name: My Action
description: Does something awesome
inputs:
token:
description: GitHub token
required: true
environment:
description: Target environment
default: production
outputs:
result:
description: Action result
runs:
using: node20
main: index.js
Output: Professional README.md
The tool generates comprehensive documentation including:
- 📊 Parameter tables with types, requirements, defaults
- 💡 Usage examples with proper YAML formatting
- 🎨 Badges for marketplace visibility
- 📚 Multiple sections (Overview, Configuration, Examples, Troubleshooting)
- 🔗 Navigation with table of contents
🎨 Themes
Choose from 5 built-in themes: github, gitlab, minimal, professional, default
📄 Output Formats
Supports 4 formats: md, html, json, asciidoc
🛠️ Commands
# Generation
gh-action-readme gen [directory_or_file] [flags]
# Validation with suggestions
gh-action-readme validate
# Interactive configuration
gh-action-readme config wizard
⚙️ Configuration
# Interactive setup wizard
gh-action-readme config wizard
# XDG-compliant config file
gh-action-readme config init
🎯 Advanced Usage
# Batch processing with custom themes
gh-action-readme gen --recursive --theme github --output-dir docs/
# Custom themes
cp -r templates/themes/github templates/themes/custom
gh-action-readme gen --theme custom
🏗️ Development
# Build and test
go build .
go test ./...
golangci-lint run
Maintains enterprise-grade code quality with 0 linting violations and 80%+ test coverage.
🔒 Security
Comprehensive security scanning with govulncheck, Trivy, gitleaks, and CodeQL.
make security # Run all security scans
🤝 Contributing
Contributions welcome! Fork, create feature branch, add tests, submit PR.
📊 Comparison
| Feature | gh-action-readme | action-docs | gh-actions-auto-docs |
|---|---|---|---|
| Themes | 5 themes | 1 basic | 1 basic |
| Output Formats | 4 formats | 1 format | 1 format |
| Validation | Smart suggestions | Basic | None |
| Configuration | XDG compliant | None | Basic |
| CLI UX | Modern + colors | Basic | Basic |
| Templates | Customizable | Fixed | Fixed |
📄 License
MIT License - see LICENSE for details.
🙏 Acknowledgments
Built with ❤️ by ivuorinen
Languages
Go
98.5%
Makefile
1%
Shell
0.4%
Dockerfile
0.1%