Add an index page for local browsing without a server #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Most of what's below the h1 is written by Claude 3.7 Sonnet, but here's the high-level by a human:
build_local_index.py
#script that can be run easily with inline dependencies. This is the core of the PR. It takesbuild_colophon.py
as a starting point, and incorporates a part ofgather_links.py
in case the purpose of that file changes.README.md
to mention thisbuild_colophon.py
.layout-demo.html
tool with matchinglayout-demo.docs.md
, which functioned as a useful playground while playing with this.It's not quite a Perfect Commit but I'm not a perfect developer :)
The tool index should be fully keyboard-accessible, with a search bar for filtering. The design is suitable for mobile although it doesn't seem to work on my phone.
Some things that were considered but dropped include categories, a table of contents (search/full list seems more usable), additional optimisations (dark mode, debounce for search), and including Python tools in the listing.
Of course, this is your repo, so I completely understand if you don't want any of this - I found it useful to have a neat way to browse the list, with some neat learning bonuses. Claude transcript available on request although it's a branchy mess.
Speaking of, over to our artificially intelligent friend for the details...
Add local browsing capability without server deployment
This PR adds a simple script that generates an index.html file for browsing
Simon's tools collection locally without needing to set up GitHub Pages or
any other server.
What this adds
How it works
The script:
How to test
uv run --no-project --with markdown ./build_local_index.py