Skip to content

Commit 4f6980d

Browse files
committed
Initial commit: workflow-kit documentation
- Complete PR Auto-Labeler documentation - MkDocs Material theme with developer-focused design - GitHub Actions workflow for automatic deployment - 30+ rule documentation with examples - Quick start, configuration, and troubleshooting guides - Custom CSS for dark theme and code styling
0 parents  commit 4f6980d

25 files changed

Lines changed: 3207 additions & 0 deletions

.github/workflows/deploy-docs.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy MkDocs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.11'
28+
cache: 'pip'
29+
30+
- name: Install dependencies
31+
run: |
32+
pip install --upgrade pip
33+
pip install -r requirements.txt
34+
35+
- name: Build MkDocs site
36+
run: mkdocs build --strict
37+
38+
- name: Deploy to GitHub Pages
39+
run: mkdocs gh-deploy --force
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# MkDocs build output
2+
site/
3+
4+
# Python
5+
__pycache__/
6+
*.py[cod]
7+
*$py.class
8+
*.so
9+
.Python
10+
*.egg-info/
11+
dist/
12+
build/
13+
14+
# Virtual environments
15+
.venv/
16+
venv/
17+
ENV/
18+
env/
19+
20+
# IDE
21+
.vscode/
22+
.idea/
23+
*.swp
24+
*.swo
25+
*~
26+
27+
# OS
28+
.DS_Store
29+
Thumbs.db
30+
31+
# Node modules (if any)
32+
node_modules/
33+
34+
# Coverage
35+
.coverage
36+
htmlcov/
37+
coverage/
38+

Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
############################################
2+
# Builder stage: install deps and build site
3+
############################################
4+
FROM python:3.11-slim AS builder
5+
6+
WORKDIR /site
7+
8+
# Install build dependencies
9+
COPY requirements.txt ./
10+
RUN pip install --no-cache-dir -r requirements.txt
11+
12+
# Copy source and build static site
13+
COPY . .
14+
RUN mkdocs build --strict
15+
16+
############################################
17+
# Runtime stage: serve static site via Nginx
18+
############################################
19+
FROM nginx:alpine AS runtime
20+
21+
# Copy built site to Nginx html directory
22+
COPY --from=builder /site/site /usr/share/nginx/html
23+
24+
EXPOSE 80
25+
26+
# Optional: healthcheck (Nginx default index)
27+
HEALTHCHECK CMD wget -qO- http://localhost/ >/dev/null 2>&1 || exit 1
28+
29+
# Start Nginx (default CMD provided by base image)

README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# workflow-kit Documentation
2+
3+
> Comprehensive documentation for workflow-kit GitHub Actions workflows
4+
5+
[![Deploy Docs](https://github.com/workflow-kit/docs/actions/workflows/deploy-docs.yml/badge.svg)](https://github.com/workflow-kit/docs/actions/workflows/deploy-docs.yml)
6+
7+
## 📚 Documentation
8+
9+
Visit the documentation site: **[workflow-kit.github.io/docs](https://workflow-kit.github.io/docs/)**
10+
11+
## 🚀 Quick Start
12+
13+
This documentation is built with [MkDocs Material](https://squidfunk.github.io/mkdocs-material/).
14+
15+
### Local Development
16+
17+
```bash
18+
# Install dependencies
19+
pip install -r requirements.txt
20+
21+
# Serve locally
22+
mkdocs serve
23+
24+
# Access at http://localhost:8000
25+
```
26+
27+
### Build
28+
29+
```bash
30+
# Build static site
31+
mkdocs build
32+
33+
# Output in site/ directory
34+
```
35+
36+
## 🛠️ Stack
37+
38+
- **MkDocs** — Static site generator
39+
- **Material for MkDocs** — Theme
40+
- **Mermaid** — Diagrams
41+
- **GitHub Pages** — Hosting
42+
43+
## 📂 Structure
44+
45+
```
46+
docs/
47+
├── docs/ # Documentation source
48+
│ ├── index.md # Homepage
49+
│ ├── getting-started.md # Getting started guide
50+
│ ├── workflows/ # Workflow documentation
51+
│ │ └── pr-auto-labeler/ # PR Auto-Labeler workflow
52+
│ └── assets/ # Images and static files
53+
├── mkdocs.yml # MkDocs configuration
54+
├── requirements.txt # Python dependencies
55+
├── Dockerfile # Docker build
56+
└── .github/workflows/ # GitHub Actions
57+
└── deploy-docs.yml # Auto-deploy to GitHub Pages
58+
```
59+
60+
## 🔄 Deployment
61+
62+
Documentation is automatically deployed to GitHub Pages when changes are pushed to `main` branch.
63+
64+
The deployment workflow:
65+
1. Installs dependencies
66+
2. Builds the MkDocs site
67+
3. Deploys to `gh-pages` branch
68+
4. GitHub Pages serves the site
69+
70+
## 🤝 Contributing
71+
72+
1. Fork the repository
73+
2. Create a feature branch
74+
3. Make your changes
75+
4. Test locally with `mkdocs serve`
76+
5. Submit a pull request
77+
78+
## 📝 License
79+
80+
MIT License - see [LICENSE](LICENSE) for details.
81+
82+
---
83+
84+
**Made with ❤️ by the workflow-kit team**
85+

docs/assets/images/logo.svg

Lines changed: 12 additions & 0 deletions
Loading

docs/getting-started.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Getting Started
2+
3+
Welcome to **workflow-kit** — your collection of production-ready GitHub Actions workflows.
4+
5+
---
6+
7+
## What is workflow-kit?
8+
9+
workflow-kit provides battle-tested, reusable GitHub Actions workflows that automate common development tasks. Each workflow is:
10+
11+
-**Easy to integrate** — Setup in minutes
12+
- 🔧 **Fully customizable** — Configure to your needs
13+
- 📚 **Well-documented** — Comprehensive guides
14+
- 🚀 **Production-ready** — Used by teams worldwide
15+
16+
---
17+
18+
## Available Workflows
19+
20+
### 🏷️ PR Auto-Labeler
21+
22+
Automatically label pull requests based on code changes, patterns, and metadata.
23+
24+
**Quick Example:**
25+
26+
```yaml title=".github/workflows/pr-labeler.yml"
27+
name: Auto Label PRs
28+
on:
29+
pull_request:
30+
types: [opened, synchronize, reopened]
31+
32+
permissions:
33+
contents: read
34+
pull-requests: write
35+
36+
jobs:
37+
label:
38+
uses: workflow-kit/pr-auto-labeler/.github/workflows/pr-auto-labeler.yml@v0.0.1
39+
with:
40+
enabled_rules: '["ui-change", "test-missing", "large-pr"]'
41+
```
42+
43+
[Get Started with PR Auto-Labeler →](workflows/pr-auto-labeler/quick-start.md){ .md-button .md-button--primary }
44+
45+
---
46+
47+
## Quick Start
48+
49+
=== "Step 1: Choose a Workflow"
50+
51+
Browse available workflows and choose one that fits your needs.
52+
53+
[:material-tag-multiple: PR Auto-Labeler](workflows/pr-auto-labeler/index.md)
54+
55+
=== "Step 2: Add Workflow File"
56+
57+
Create `.github/workflows/` directory and add the workflow YAML file.
58+
59+
```bash
60+
mkdir -p .github/workflows
61+
# Copy workflow configuration
62+
```
63+
64+
=== "Step 3: Configure"
65+
66+
Customize the workflow configuration to match your team's needs.
67+
68+
- Enable specific rules
69+
- Set custom labels
70+
- Adjust thresholds
71+
72+
=== "Step 4: Test"
73+
74+
Create a test PR and verify the workflow runs correctly.
75+
76+
Check the Actions tab for execution logs.
77+
78+
---
79+
80+
## Why Use workflow-kit?
81+
82+
<div class="grid cards" markdown>
83+
84+
- :material-clock-fast:{ .lg .middle } __Save Time__
85+
86+
---
87+
88+
Automate repetitive tasks and focus on what matters — writing code and reviewing PRs.
89+
90+
- :material-shield-check:{ .lg .middle } __Improve Quality__
91+
92+
---
93+
94+
Catch issues early with automated checks before they reach production.
95+
96+
- :material-chart-line:{ .lg .middle } __Better Visibility__
97+
98+
---
99+
100+
Get instant insights into PR content with automated labeling and analysis.
101+
102+
- :material-account-group:{ .lg .middle } __Team Consistency__
103+
104+
---
105+
106+
Standardize processes across repositories and ensure everyone follows best practices.
107+
108+
</div>
109+
110+
---
111+
112+
## Next Steps
113+
114+
1. [:rocket: Explore PR Auto-Labeler](workflows/pr-auto-labeler/index.md)
115+
2. [:books: Read the Documentation](workflows/pr-auto-labeler/quick-start.md)
116+
3. [:bulb: See Usage Examples](workflows/pr-auto-labeler/examples.md)
117+
4. [:material-github: Star on GitHub](https://github.com/workflow-kit)
118+
119+
---
120+
121+
## Support
122+
123+
Need help? We're here for you:
124+
125+
- [:material-book-open: Documentation](workflows/pr-auto-labeler/index.md)
126+
- [:material-chat: GitHub Discussions](https://github.com/workflow-kit/pr-auto-labeler/discussions)
127+
- [:material-bug: Report Issues](https://github.com/workflow-kit/pr-auto-labeler/issues)

0 commit comments

Comments
 (0)