Conversation
Replace the HTML5 UP Strata theme with a hand-written single-column layout. Each volume gets its own card with the MyST online edition as the primary CTA and PDF/Code/Slides demoted to ghost buttons; the Cambridge publisher link sits alongside Amazon on the Vol I print line. Vol I uses the Cambridge cover artwork; Vol II shows a styled "forthcoming" placeholder. Drop the Strata theme, jQuery, FontAwesome and the unused demo assets. Add PLAN.md to .gitignore so the planning doc stays local. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The workflow named "Build Project [using jupyter-book]" doesn't use jupyter-book — it deploys the static website/ directory to Netlify as a preview. Rename to "Deploy preview to Netlify" so the Actions UI is self-describing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for resonant-pie-f0089d ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR redesigns the website/ static site for dp.quantecon.org, replacing the prior HTML5 UP theme-driven layout with a hand-authored single-column layout that emphasizes the MyST online editions and simplifies assets/dependencies.
Changes:
- Rebuild
index.htmlinto a card-based “Read & download” layout with MyST as the primary CTA and PDFs/Code/Slides as secondary actions. - Restyle
code.htmlandslides.htmlto share the new mast/footer/table styling and remove the old theme’s JS/CSS dependencies. - Remove the legacy theme source/assets (Sass, jQuery plugins, FontAwesome, demo pages/images) and rename the CI workflow to reflect Netlify preview deployment.
Reviewed changes
Copilot reviewed 16 out of 63 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| website/index.html | New single-column layout with volume cards, lectures block, and shared mast/footer. |
| website/code.html | Updated to the new mast/footer and simplified “list table” presentation. |
| website/slides.html | Updated to the new mast/footer and simplified “list table” presentation. |
| website/LICENSE.txt | Removed the old theme license file (theme assets are removed in this PR). |
| website/elements.html | Removed theme demo page. |
| website/images/logo-square.svg | Removed unused theme asset. |
| website/images/julia.svg | Removed unused theme asset. |
| website/assets/sass/main.scss | Removed legacy theme Sass source. |
| website/assets/sass/libs/_vendor.scss | Removed legacy theme Sass lib. |
| website/assets/sass/libs/_vars.scss | Removed legacy theme Sass lib. |
| website/assets/sass/libs/_mixins.scss | Removed legacy theme Sass lib. |
| website/assets/sass/libs/_html-grid.scss | Removed legacy theme Sass lib. |
| website/assets/sass/libs/_functions.scss | Removed legacy theme Sass lib. |
| website/assets/sass/libs/_breakpoints.scss | Removed legacy theme Sass lib. |
| website/assets/js/util.js | Removed legacy theme JS dependency. |
| website/assets/js/main.js | Removed legacy theme JS dependency. |
| website/assets/js/jquery.poptrox.min.js | Removed legacy theme JS dependency. |
| website/assets/js/browser.min.js | Removed legacy theme JS dependency. |
| website/assets/js/breakpoints.min.js | Removed legacy theme JS dependency. |
| website/assets/css/fontawesome-all.min.css | Removed legacy theme CSS dependency. |
| .github/workflows/ci.yml | Renamed workflow to reflect Netlify preview deployment behavior. |
| .gitignore | Added PLAN.md to ignored files. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <header class="mast"> | ||
| <div class="mast__inner"> | ||
| <a class="mast__brand" href="/">dp.quantecon.org</a> | ||
| <nav class="mast__nav" aria-label="Primary"> |
Performance side-effectMeasured the actual first-load weight before/after (sizes from Before —
After —
~70% smaller initial payload, ~half the round-trips, and zero JavaScript (so no parse/execute step blocking interactivity). The Vol I cover JPG is the heaviest single asset at 83 KB; everything else is small. Repeat-visit cost is even lower since Google Fonts almost always hits a warm shared-CDN cache. |
Mobile / responsive supportHand-written responsive CSS (no framework). Three breakpoints, each addressing real fitting concerns rather than just "smaller fonts":
The H1 uses Verification caveat for reviewers: headless Chrome has a minimum viewport floor (~500 px) so screenshot-based testing won't show the narrowest layouts honestly. To verify <500 px, use Chrome DevTools device emulation (iPhone SE, iPhone 12, etc.) or open the Netlify preview URL on an actual phone. |
|
@jstac — good call on the blurb. The current text undersells Vol II as just "innovations + applications" when it's a foundational rework. Two options below; pick whichever (or suggest a tweak) and I'll update Option 1 — one paragraph, two sentences
Option 2 — two paragraphs, per-volume
Happy to iterate on wording — e.g. swap "reworks the foundations" for "rebuilds the foundations" / "presents a new foundation", reorder the field list, label Vol II as a "research monograph" explicitly, etc. |
|
Thanks @mmcky ! Option 1 looks good to me. |
The previous blurb described the work as "innovations" plus applications, which underweighted Vol II — per @jstac it is a complete reworking of DP theory for general state spaces, not an addendum. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
A serif "DP" monogram on a teal square that echoes the MyST CTA colour and the site's display type. Ships favicon.svg for modern browsers plus favicon.png (32px) and apple-touch-icon.png (180px) as fallbacks. Linked from all three pages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
FaviconAdded in 40b7d06. A serif "DP" monogram on a teal square (same colour as the MyST CTA), with |
Swap the teal background for the cover's near-black (#0d1110), keeping the cream serif "DP" on top. The favicon now reads as a miniature book-spine, pairing visually with the Vol I cover thumbnail in the landing-page card. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Updated the favicon in the latest push: dark cover-match palette ( |
|
Agree with you @mmcky in regards to the QuantEcon branding, a small tweak makes a difference?
|
Desktop 110 → 150 px and mobile 90 → 110 px so the QE wordmark reads as a peer to the nav text and the parent-brand presence stays proportionate on small screens. Per @DrDrij's suggestion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Applied in the latest push — desktop logo at 150 px, mobile bumped from 90 → 110 px to keep the proportional jump sensible. Thanks @DrDrij. |
- JSON-LD Book schema for both volumes in index.html <head>, with author, publisher, ISBN, MyST URL, and cross-links to Cambridge and Amazon. Helps AI pipelines disambiguate citations. - Google Scholar citation_* meta tags for Vol I (published 2024, ISBN 9781009540759). Vol II skipped until print ISBN exists. - llms.txt at the website root following the llmstxt.org convention, pointing AI tools to the canonical MyST editions, PDFs, code, and print sources. All silent additions; no visual change to any page. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
AI-crawler discoverabilityThree silent additions for AI / academic crawlers (no visual change):
The MyST sites remain the canonical full-text source — this just makes the landing page a schema-rich pointer that AI crawlers can read correctly. |
|
thanks @jstac and @DrDrij -- this is looking great. I will merge but happy to iterate with any adjustments. @jstac I have added additional LLM discovery features as well. |

Summary
code.htmlandslides.htmlrestyled to share the new mast, table, and footer.© 2024–2026 Sargent & Stachurskiacross all pages.Bookschema for both volumes (author, publisher, ISBN, MyST URL,sameAsto Cambridge & Amazon).citation_*meta tags for Vol I.llms.txtat the website root following llmstxt.org — points AI tools to the canonical MyST editions, PDFs, code, and print sources.ci.ymlwas named "Build Project [using jupyter-book]" but doesn't use jupyter-book; renamed to "Deploy preview to Netlify".Note on diff size
The diff shows ~17 k deletions vs ~1 k insertions — this is expected, not a feature removal. The previous site shipped the entire HTML5 UP "Strata" theme bundle. The new site is hand-written CSS + HTML with no JavaScript and no FontAwesome. All deleted files were either unused theme infrastructure or demo content that no page referenced.
Specifically removed (none of these were used by the live site):
assets/js/— jQuery,breakpoints.min.js,browser.min.js,jquery.poptrox.min.js, util, thememain.js. The new site has zero JS.assets/sass/— Strata's SCSS source.assets/webfonts/andassets/css/fontawesome-all.min.css— FontAwesome (~26 font files + stylesheet). Icons are now inline SVG.images/fulls/,images/thumbs/— Strata's demo gallery photos (6 + 6).images/bg.jpg,images/bg.png,images/avatar.jpg,images/logo-square.{png,svg},images/julia.svg,images/python.png— Strata demo / leftover assets.images/book.png,images/slides.png,images/github-mark.png,images/mail.png,images/qe-logo-small.png— PNG icons replaced by inline SVG.elements.html— Strata's component-showcase demo page.LICENSE.txt— the HTML5 UP CCA-3.0 licence; the repo-rootLICENSEstill applies.The final
website/tree is: 3 HTML pages (index.html,code.html,slides.html),assets/css/main.css,images/qe-menubar-logo.svg,images/covers/dp-vol1.jpg,favicon.svg,favicon.png,apple-touch-icon.png,llms.txt,CNAME.Test plan
/code.htmland/slides.htmland confirm the back link, list table, and footer render correctly.🤖 Generated with Claude Code