Skip to content

Add GitHub Pages site with searchable algorithm index#2720

Merged
keon merged 5 commits into
mainfrom
fix/resolve-open-issues
Feb 18, 2026
Merged

Add GitHub Pages site with searchable algorithm index#2720
keon merged 5 commits into
mainfrom
fix/resolve-open-issues

Conversation

@keon
Copy link
Copy Markdown
Owner

@keon keon commented Feb 17, 2026

Summary

  • Single-file static page (docs/index.html) showcasing all 358 algorithms across 21 categories
  • Instant client-side search with match highlighting
  • Collapsible category sections, sticky search bar, mobile-friendly grid layout
  • Zero dependencies — pure HTML/CSS/JS, ~12KB total

Test plan

  • Open docs/index.html locally and verify all categories render
  • Test search filtering (e.g. "sort", "tree", "dijkstra")
  • Test on mobile viewport
  • Verify GitHub Pages deploys from /docs on main

🤖 Generated with Claude Code

keon and others added 5 commits February 17, 2026 18:11
Single-file static page showcasing all 358 algorithms across 21
categories with instant search, collapsible sections, and mobile support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Each algorithm now shows a one-line description when clicked.
Descriptions are extracted from source file docstrings.
Search also matches against descriptions. When searching,
descriptions auto-expand for visible results.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Clicking an algorithm now opens a modal dialog that:
- Fetches the raw Python source from GitHub on demand
- Parses the module docstring as the "Mechanism" section
- Shows the implementation code below
- Caches fetched sources for instant re-opens
- Closes via X button, backdrop click, or Escape key
- Full-screen on mobile, centered card on desktop

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add "Usage" section showing pip install + import + example call
- Fix ... continuation line handling in doctest example parser
- Detect re-export files (just imports + __all__) and skip
  unhelpful Mechanism/Usage sections for them
- Only show Mechanism when docstring content exists
- Strip ... continuation prefixes from usage examples

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove logo image from README, replace with plain # algorithms
- Delete all logo assets from docs/source/_static/logo/
- Delete docs/source/_static/algorithms_logo.png

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@keon keon merged commit e62f10b into main Feb 18, 2026
4 checks passed
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.

1 participant