Skip to content

Add site search, refresh docs, add preview build workflow#19

Merged
torwager merged 7 commits into
masterfrom
claude_code_dev
May 7, 2026
Merged

Add site search, refresh docs, add preview build workflow#19
torwager merged 7 commits into
masterfrom
claude_code_dev

Conversation

@torwager
Copy link
Copy Markdown
Contributor

@torwager torwager commented May 7, 2026

Summary

  • Site-wide search added via Simple-Jekyll-Search: new /search/ page, search.json index, and a magnifying-glass nav link. The library is bundled locally so it works offline.
  • Documentation refresh: restructured walkthroughs.md into numbered sections with consistent tables and a sticky TOC; rewrote setup.md with a requirements table and troubleshooting matrix; tightened objectoriented.md; added a "What's new" log to the home-page sidebar.
  • 404 page replaced its dead Google linkhelp script with an embedded search box.
  • Cleanup: removed unreferenced _config copy.yml, _pages/about_bak.md (silent permalink conflict), and _pages/OLD_archive/ (28 files); fixed broken /_pages/... link prefix on home and setup pages.
  • Site config: disabled author sidebar and enabled sticky TOC on landing pages; switched analytics provider to false (it was loading the include with no tracking ID and silently doing nothing); added doc comments for re-enabling analytics + Search Console.
  • Preview infrastructure: new .github/workflows/preview-build.yml builds every non-master branch into a downloadable artifact with localhost-friendly URLs, so future PRs can be reviewed visually without touching the live site.

Test plan

  • Pull master after merge and confirm https://canlab.github.io/search/ loads and returns results
  • Click the magnifying-glass nav item from any page; confirm it goes to the search page
  • Visit https://canlab.github.io/walkthroughs/ and spot-check links from each numbered section
  • Visit https://canlab.github.io/setup/; confirm the requirements table and troubleshooting matrix render
  • Trigger a 404 (e.g. https://canlab.github.io/does-not-exist) and confirm the in-page search works
  • Confirm the home-page "What's new" sidebar shows next to the author profile

Documented for follow-up

  • Apply for Algolia DocSearch for higher-quality hosted search
  • Submit https://canlab.github.io/sitemap.xml to Google Search Console
  • Add an internal-link checker (e.g. lycheeverse/lychee-action) to the preview workflow once the existing site is clean
  • Sweep the 53 Dependabot alerts on master (most look like dev dependencies)

🤖 Generated with Claude Code

torwager and others added 7 commits May 6, 2026 20:54
- Add Simple-Jekyll-Search: /search/ page, search.json index, and a
  Search link with magnifying-glass icon in the top nav
- Restructure walkthroughs.md into numbered sections with consistent
  tables so the new sticky TOC and search index work cleanly
- Refresh setup.md with a requirements table and troubleshooting matrix
- Add a "What's new" log to the home page and fix the broken
  /repositories.md link
- Disable the author sidebar and enable a sticky TOC on landing pages
  (walkthroughs, setup, repositories, objectoriented, batch, tutorials)
- Switch analytics provider to false (it was loading the include with
  no tracking ID) and document how to enable it + Search Console
- Remove unreferenced files: _config copy.yml, _pages/about_bak.md
  (had a duplicate permalink: / that silently conflicted with about.md),
  and _pages/OLD_archive
- Add .github/workflows/preview-build.yml so non-master branches build
  to a downloadable artifact for review without affecting the live site

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The github-pages gem needs the owner/repo when running outside the
official GitHub Pages builder; without it the build fails with
"No repo name found".

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The committed _config.yml hard-codes url: https://canlab.github.io, which
caused nav links in the preview build to bounce to the live site. The new
_config.preview.yml override clears url and baseurl so the artifact works
correctly when served from any local web server (e.g. python3 -m http.server).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Uses the Minimal Mistakes theme's sidebar front-matter so the update log
sits alongside the author profile instead of breaking the main reading
flow.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The old 404 page referenced linkhelp.clients.google.com, a Google service
that has been deprecated for years (the script tag itself returns 404).
Replaced with an embedded search box backed by the new search.json index
plus links to common destinations.

objectoriented.md previously duplicated the home-page intro and linked to
the broken /repositories.md path. Tightened the prose, fixed the link, and
removed a redundant install-link paragraph that pointed to material the
home page already covers.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Two issues found while previewing:

1. The search script was loaded from unpkg.com. When the CDN is blocked,
   slow, or unreachable (e.g. when previewing offline) the script never
   loads and the search silently fails. Bundle a local copy under
   assets/js/ so it works regardless of network state.

2. about.md and setup.md linked to /canlab_help_1_installing_tools/...
   but Jekyll actually serves those files under /_pages/. The links have
   been broken on the live site too. Updated to /_pages/...

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@torwager torwager merged commit 6f5f697 into master May 7, 2026
1 check passed
@torwager torwager deleted the claude_code_dev branch May 7, 2026 21:36
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