Skip to content

Add ebook download links to progit3.com/book/ - #20

Merged
schacon merged 1 commit into
mainfrom
cursor/book-download-links-6d3c
Aug 3, 2026
Merged

Add ebook download links to progit3.com/book/#20
schacon merged 1 commit into
mainfrom
cursor/book-download-links-6d3c

Conversation

@schacon

@schacon schacon commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

Adds a "Download:" row to the book index page (/book/) on the site, linking PDF · EPUB · FB2 · HTML as pill-style links next to the book cover.

The links point at the stable GitHub releases/latest/download/... URLs — release-on-merge.yml attaches these four files to a new release on every merge to main, so the links always serve the most recent build with no site changes needed per release. MOBI is deliberately not linked: the workflow lists it, but the current asciidoctor-epub3 toolchain never produces it (known no-op), so a link would 404.

Verification

  • npm run build in site/ succeeds; the generated /book/ page contains all four links (verified in dist/).
  • https://github.com/progit/progit3/releases/latest/download/progit.pdf responds with a 302 to the current release asset (2.1.17 has all four files).
  • Browser demo on the local preview — pills render, hover style works, and the status bar shows the correct target URL:

Book page with Download pills; status bar shows the releases/latest URL

book_page_download_links_demo.mp4

Open in Web Open in Cursor 

Link PDF/EPUB/FB2/HTML from /book/ to the GitHub release assets that
release-on-merge.yml attaches on every merge to main, via the stable
releases/latest/download URLs. MOBI is not linked because the build
does not actually produce it.

Co-authored-by: Scott Chacon <schacon@gmail.com>
@schacon
schacon marked this pull request as ready for review August 3, 2026 19:52
@cursor

cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@schacon
schacon merged commit 0249673 into main Aug 3, 2026
1 check passed
@schacon
schacon deleted the cursor/book-download-links-6d3c branch August 3, 2026 19:52
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