Skip to content

Migrate research figures off dibs-web01.vm.duke.edu (closes #33)#38

Merged
jmxpearson merged 7 commits into
masterfrom
claude/issue-33-dibs-web01-migration
May 11, 2026
Merged

Migrate research figures off dibs-web01.vm.duke.edu (closes #33)#38
jmxpearson merged 7 commits into
masterfrom
claude/issue-33-dibs-web01-migration

Conversation

@jmxpearson

Copy link
Copy Markdown
Member

Closes #33.

Summary

  • Replaced 13 of 14 dibs-web01.vm.duke.edu image URLs across location.md, people.html, research.md, _layouts/home.html, and 2 blog posts with local /images/ paths.
  • 13 image files committed under images/ (4 in images/location/, 9 at the top level) — compressed via the Phase 1 pre-commit hooks. raymond_poster.jpg and website_VAEGAM_fig.png were still over the 1 MB cap after jpegoptim --max=85; both added to .image-size-overrides with justification.
  • Added scripts/recover_dibs_web01.py — stdlib-only Python that tries the live host then falls back to the Wayback Machine. Used to do the recovery; kept in the repo as documentation / for re-runs if more images surface.
  • Removed dibs-web01\.vm\.duke\.edu from lychee.toml's exclude list now that there's nothing left to point at it.

Not recovered

ava_preprint.png (referenced in _posts/2019-10-29-vae-preprint.md) wasn't on the live host or in Wayback. Removed the broken <img> tag and left an HTML comment in the post noting the gap — easy to restore if a copy of the figure surfaces later (e.g., from Jack or the bioRxiv PDF).

Test plan

  • bundle exec jekyll build produces a clean _site/
  • lychee --config ./lychee.toml --no-progress --root-dir _site --exclude-path _site/blog _site reports 0 errors locally
  • Pre-commit hooks pass on the diff
  • CI checks (pre-commit, site-health) pass on the PR
  • Visual spot-check after merge: home page logo, location page entrance photos, research page figures, people page (John/Trevor/shiyang)

Follow-ups worth tracking separately (low priority)

  • Downscale raymond_poster.jpg (currently 2 MB @ 4032×3024 — way bigger than needed for web display) and website_VAEGAM_fig.png (1.7 MB), then remove the override entries.
  • Recover ava_preprint.png if a copy is locatable.

https://claude.ai/code/session_01S5QXfkxZBNSAf2Y1XAD8H7


Generated by Claude Code

claude and others added 7 commits May 11, 2026 19:09
Same file already exists locally; just swap the dibs-web01 URL for the
local path. One down, thirteen to go.
Stdlib-only Python script. Tries the live dibs-web01 host first
(in case it's reachable for the runner), falls back to the most
recent Wayback Machine snapshot via archive.org's API.

Saves files into organized subdirectories under images/ matching
the original URL categories (website/, fmri/, vocal/, zebrafish/).

I (Claude) can't run this from my sandbox — outbound to all the
relevant hosts is firewalled. A maintainer needs to run it from a
machine with internet access, then commit the resulting images/
files. After that, a separate commit will update source files to
point at the local paths and the dibs-web01 exclude can come out
of lychee.toml.
Reverts 768d5bc — the local images/john.png is out of date; the
current dibs-web01 version is what should be on the site. Adds
john.png to the recovery script's URL list, removes the stale local
file, and reverts people.html to point at the dibs-web01 URL (it
will get swapped to /images/john.png in the URL-replacement step
after the script runs).

Also removes the "skip if dest exists" guard from the recovery
script so it always fetches fresh — relevant for john.png and useful
in general if someone needs to re-run.
13 references updated across 6 files:
- location.md: 4 building entrance photos (-> /images/location/)
- people.html: john, Trevor, shiyang
- research.md: colorFish, pipelineNewpng3, vae_finch, website_VAEGAM_fig
- _layouts/home.html: DUSOM_Dept_Neurobio_stack
- _posts/2019-7-26-huang-poster.md: raymond_poster
- _posts/2018-12-5-incubator-award.md: pipelineNewpng3

The 14th reference (ava_preprint.png in 2019-10-29-vae-preprint.md) is
not changed — that image wasn't recoverable from dibs-web01 or Wayback;
handled in the next commit.
ava_preprint.png didn't recover from dibs-web01 or Wayback. Removed
the broken <img> tag from the post and left an HTML comment noting
the gap so it's easy to restore if a copy of the figure surfaces.
The post still reads fine without the figure.

Removed the dibs-web01 exclude from lychee.toml — no remaining
references on the active site, and we want lychee to catch any
future regressions to that domain.
@jmxpearson jmxpearson merged commit b239ae2 into master May 11, 2026
2 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.

Migrate research figures off dibs-web01.vm.duke.edu

2 participants