Skip to content

Conversation

@bketelsen
Copy link
Contributor

No description provided.

Signed-off-by: Brian Ketelsen <bketelsen@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds user-friendly HTML index pages to enable browser-friendly navigation of the Debian repository. When repository operations are performed, HTML index files are automatically generated for all directories, displaying files and subdirectories with icons, file sizes, and clickable navigation links.

Key Changes

  • Introduced HTML index generation for repository browsing with styled directory listings
  • Integrated HTML generation into all repository-modifying CLI commands (init, add, index)
  • Added comprehensive test coverage for HTML generation and helper functions

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/repo/html.go Implements HTML index generation with template-based rendering, file size formatting, and file type icons
internal/repo/html_test.go Adds comprehensive tests for HTML generation, size formatting, and icon selection
internal/cli/init.go Integrates HTML index generation into repository initialization
internal/cli/index.go Adds HTML generation to index regeneration and updates command description
internal/cli/add.go Integrates HTML index generation when packages are added

Signed-off-by: Brian Ketelsen <bketelsen@gmail.com>
@bketelsen bketelsen merged commit b46645d into main Jan 7, 2026
2 checks passed
@bketelsen bketelsen deleted the friendlyhtml branch January 7, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants