summaryrefslogtreecommitdiff
path: root/internal/showcase/code_extractor.go
AgeCommit message (Collapse)Author
2025-10-31feat: implement amp AI tool support and replace Taskfile with Magev0.10.0Paul Buetow
- Add amp as default AI tool for release notes and showcase generation - Fallback chain: amp → hexai → claude → aichat - Replace Taskfile.yaml with magefile.go for build automation - Update all documentation (README.md, AGENTS.md, doc/development.md) - Update version to 0.10.0 Amp-Thread-ID: https://ampcode.com/threads/T-735ba1e2-0255-4b43-8ed1-6c0d2f78301b Co-authored-by: Amp <amp@ampcode.com>
2025-07-09feat: improve code snippet line length handling in showcasePaul Buetow
- Prefer code snippets with lines <= 80 characters - Try multiple files to find snippets with good line lengths - Intelligently break long lines at appropriate points (commas, operators, etc.) - Maintain proper indentation for continuation lines This prevents long code lines from breaking the showcase layout. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08feat: remove unnecessary indentation from code snippetsPaul Buetow
- Add removeCommonIndentation function to strip common leading whitespace - Code snippets now start at column 0 when possible - Preserves relative indentation within the code - Works with both spaces and tabs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
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: add syntax highlighting labels and strip comments from code snippetsPaul Buetow
- Add language labels to code blocks for syntax highlighting (e.g., ```go, ```sh) - Map languages to source-highlight compatible identifiers - Strip comments from code snippets to show more actual code - Comments no longer count towards the ~10 line target - Support for multi-line and single-line comment removal - Remove inline comments where appropriate 🤖 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>