summaryrefslogtreecommitdiff
path: root/internal/showcase/language_detector.go
AgeCommit message (Collapse)Author
2025-07-08feat: improve language detection with shebang parsingPaul Buetow
- Always check shebang lines for executable files without extensions - Detect AWK scripts with .cgi extension (like awksite) - Support detecting Python, Ruby, Perl, Raku, JavaScript, PHP, Lua via shebang - Add comprehensive shebang parsing for awk/gawk/mawk variants - awksite now correctly shows as 72.1% AWK 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08feat: add Raku language support and move generation date to topPaul Buetow
- Add Raku (Perl 6) language detection for .raku, .rakumod, .p6, .pm6 files - Add Raku to code extractor and syntax highlighting (uses perl highlighting) - Move 'Generated on' date to the top of the page below main header - guprecords now correctly shows as 100% Raku - ior now shows Raku at 5.4% of the codebase 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08feat: add AWK language support for syntax highlightingPaul Buetow
- Add AWK to language detection (.awk files) - Add AWK to code extractor language extensions - Add AWK to syntax highlighting mapping - Note: cpuinfo project is detected as Make-only because the main script has no file extension (it's a shell script with embedded AWK) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08feat: improve showcase code snippets and add Unicode iconsPaul Buetow
- Refactor code snippet extraction to show complete functions (5-50 lines) - Add findSmallestCompleteFunction to prioritize smaller, complete code units - Move code samples to the end of project descriptions (after links) - Remove '### Code Sample' header for cleaner output - Add AI detection for CLAUDE.md, GEMINI.md, and 'agentic coding' mentions - Add AI-Assisted indicator when AI usage is detected - Add Unicode icons to all statistics for better visual presentation: * 📦 Projects, 📊 Commits, 📈 Lines of Code, 📄 Documentation * 💻 Languages, 📚 Documentation types, 📅 Development Period * 🔥 Recent Activity, ⚖️ License, 🤖 AI-Assisted - Add HCL/Terraform language support (.tf, .tfvars, .hcl files) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08feat: separate documentation from code in showcase statisticsPaul Buetow
- Add new Documentation field to RepoMetadata structure - Update language detector to categorize Markdown, reStructuredText, LaTeX, etc. as documentation - Display documentation statistics separately in both project entries and overall stats - Calculate lines of code and documentation independently - Show "Documentation: Markdown (100.0%)" style formatting 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08feat: show language usage percentages in showcasePaul Buetow
- Languages are now counted by lines of code - Displayed with percentages ordered by usage (highest first) - Format: 'Go (88.8%), Markdown (5.5%), ...' - Only shows languages with at least 0.1% usage - More accurate representation of project composition 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>