feat: auto-generate badges + template layouts + dynamic stats #2

Merged
ti-paul merged 1 commit from feature/1-badges-auto-stats-templates into main 2026-05-11 01:49:18 +00:00
Member

Closes #1

Adds automatic badge generation, template layouts, and enhanced stats.

  • generators/badges.py: shields.io badges from project analysis
  • generators/templates.py: 4 layouts (minimal, developer, startup, open-source)
  • Auto-detect best template based on project size/tests/frameworks
  • --template CLI flag + --list-templates
  • Dynamic stats with formatted numbers (1.5k lines)
  • Features and Installation sections per template
  • 15 new tests, all 41 pass
Closes #1 Adds automatic badge generation, template layouts, and enhanced stats. - generators/badges.py: shields.io badges from project analysis - generators/templates.py: 4 layouts (minimal, developer, startup, open-source) - Auto-detect best template based on project size/tests/frameworks - --template CLI flag + --list-templates - Dynamic stats with formatted numbers (1.5k lines) - Features and Installation sections per template - 15 new tests, all 41 pass
- Add generators/badges.py: shields.io badge generation
  - format_badge() for single badges with custom colors
  - generate_badges() auto-selects relevant badges from project analysis
  - render_badges_row() for single-line badge display
- Add generators/templates.py: 4 README layouts
  - minimal: clean, no fluff
  - developer: full docs with structure
  - startup: product-focused with features
  - open-source: community-focused with install guide
  - detect_template() auto-picks best template based on project
- Update MarkdownGenerator with template support and badge integration
- Add --template CLI flag and --list-templates
- Add dynamic stats section with formatted line counts
- Add features and installation sections
- Remove emoji from code (ASCII-safe descriptions)
- 15 new tests for badges and templates, all 41 pass

Closes #1
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/readme-generator!2
No description provided.