Skip to content

Clean up legacy ghp-import deploy path and restore FloodMapper logo - #118

Merged
will-fawcett-trillium merged 2 commits into
mainfrom
cleanup-pages-deploy
May 20, 2026
Merged

Clean up legacy ghp-import deploy path and restore FloodMapper logo#118
will-fawcett-trillium merged 2 commits into
mainfrom
cleanup-pages-deploy

Conversation

@will-fawcett

@will-fawcett will-fawcett commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #117 (the Pages-deploy migration). Two independent changes:

Remove the now-redundant ghp-import deploy path (7fa9670)

Since #117, deployment uses actions/upload-pages-artifact + actions/deploy-pages (artifact-based), so the old ghp-importgh-pages path is dead:

  • Drop ghp-import from the docs extra and relock.
  • Remove the publish-docs Makefile target.
  • Delete jupyterbook/requirements.txt (orphan of the pre-uv pip flow).
  • Rewrite jupyterbook/README.md for the current uv + Actions flow; also refresh the stale PyPI-publish section (it referenced the removed setup.py) and fix a baskbash typo.

Restore FloodMapper logo and intro text from gh-pages (a36e1c8)

Commit 9616ff6 on the gh-pages branch swapped in the new FloodMapper logo and renamed the landing-page intro, but only in built output — never in source. Now that deploys rebuild from jupyterbook/, these are ported into source:

  • Replace jupyterbook/ml4cc_logo.png with the new logo (516 KB → 40 KB).
  • Update the opening sentence of jupyterbook/content/config.md.

Verification

Book builds locally with both changes (jupyter-book 1.0.4.post1, build succeeded); the new logo is copied to _build/html/_static/ and the FloodMapper text appears in the rendered config.html. No repo-settings change needed — Pages is already on "GitHub Actions".

Stage 1 moved Pages deployment to actions/upload-pages-artifact +
actions/deploy-pages, which publish a build artifact instead of pushing
to the gh-pages branch. The old ghp-import path is now dead code:

- Drop ghp-import from the docs extra and relock.
- Remove the Makefile `publish-docs` target -- it pushed to gh-pages,
  which is no longer the deployment source.
- Delete jupyterbook/requirements.txt, an orphan of the pre-uv pip flow
  (it also pinned nothing, re-introducing the jupyter-book 2.x trap).
- Rewrite jupyterbook/README.md for the current uv + GitHub Actions
  flow; also refresh the stale PyPI-publish section, which still
  referenced the removed setup.py, and fix a `bask` -> `bash` typo.
Commit 9616ff6 on the gh-pages branch swapped in the new FloodMapper
logo and renamed the landing-page intro to "FloodMapper (also known as
ML4Floods)". Those edits were made to the built site only, never to
source, so they would be lost now that deploys rebuild from jupyterbook/.

- Replace jupyterbook/ml4cc_logo.png with the new logo (516 KB -> 40 KB).
- Update the opening sentence of jupyterbook/content/config.md.
@will-fawcett-trillium
will-fawcett-trillium merged commit 63b5000 into main May 20, 2026
3 checks passed
@will-fawcett-trillium
will-fawcett-trillium deleted the cleanup-pages-deploy branch May 20, 2026 12:45
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.

2 participants