Skip to content

Improve documentation discovery with categorisation and filtering#242

Merged
tombentley merged 5 commits intokroxylicious:mainfrom
tombentley:filter-docs
Mar 29, 2026
Merged

Improve documentation discovery with categorisation and filtering#242
tombentley merged 5 commits intokroxylicious:mainfrom
tombentley:filter-docs

Conversation

@tombentley
Copy link
Copy Markdown
Member

@tombentley tombentley commented Mar 25, 2026

Documentation index pages now include a client-side filtering system to help visitors find relevant guides more quickly. Guides are tagged with categories (Proxy, Filters, Kubernetes, Developer, Security, Governance) and displayed with category-specific icons and visual styling.

The implementation uses vanilla JavaScript for progressive enhancement—the site remains fully functional without JavaScript. Documentation metadata has been updated for recent versions (0.16.0+) to include appropriate category tags.

Changes include:

  • Filter buttons on documentation index pages with active state styling
  • Card-based layout with Bootstrap Icons and category badges
  • Category-specific border colours for visual distinction
  • JavaScript-based filtering that matches against guide tags
  • Documentation of the system in CLAUDE.md for future maintenance

With All selected (the default):
image


With an different category selected:

image

@tombentley tombentley requested a review from a team as a code owner March 25, 2026 00:47
Added icons, badges, and client-side filtering to documentation index pages
to help visitors quickly find relevant guides as the guide count grows.

- Filter buttons (All, Proxy, Filters, Kubernetes, Developer) with counts
- Category icons in card headers using Bootstrap Icons (cpu, puzzle, boxes, code-slash, shield-lock)
- Visible tag badges at bottom of cards
- Subtle category-specific border colours on cards
- Vanilla JavaScript for client-side filtering with progressive enhancement
- Cards reflow properly when filtered (no gaps in grid layout)

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Tom Bentley <tbentley@redhat.com>
Added two new filter categories to better organise documentation:
- Security: for encryption, authentication, and authorisation guides
- Governance: for compliance and validation guides

Changes:
- Added 'security' tag to: Proxy guide, Record Encryption quickstart/guide,
  OAuth Bearer Validation, SASL Inspection, and Authorization guides
- Added 'governance' tag to: Record Validation Guide
- Removed overly-specific 'record-encryption' and 'encryption-at-rest' tags
- Added Security and Governance filter buttons with shield-lock and
  check-square-fill icons respectively
- Updated icon mapping and CSS border styles for new categories
- Applied changes to versions 0.16.0 through 0.19.0

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Tom Bentley <tbentley@redhat.com>
Added comprehensive documentation about the documentation filtering system
including structure, current categories, and conventions for adding new
filters. This will help maintain consistency when adding new categories
or modifying the filtering system in future.

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Tom Bentley <tbentley@redhat.com>
The count badge on the All button had two problems:
- Visually associated with "All" but showed count for selected filter
- Bug: when returning to All, showed previous filter's count (not total)

Removed the count entirely as it added confusion without providing
sufficient value. The filtering functionality remains unchanged.

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Tom Bentley <tbentley@redhat.com>
@tombentley
Copy link
Copy Markdown
Member Author

Assuming this gets merged I will make the same changes to the tags in kroxylicious/kroxylicious, so that future releases get categorised in the same way.

Copy link
Copy Markdown
Contributor

@PaulRMellor PaulRMellor left a comment

Choose a reason for hiding this comment

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

Great, Tom!
I made a few comments as I read through

@k-wall
Copy link
Copy Markdown
Member

k-wall commented Mar 27, 2026

@tombentley that looks super! thank you so much.

Copy link
Copy Markdown
Member

@k-wall k-wall left a comment

Choose a reason for hiding this comment

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

Looks Awesome To Me :)

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>
Signed-off-by: Tom Bentley <tombentley@users.noreply.github.com>
@tombentley tombentley merged commit f722a2e into kroxylicious:main Mar 29, 2026
2 checks passed
@tombentley tombentley deleted the filter-docs branch March 29, 2026 20:13
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.

3 participants