Skip to content

sites/dp: take dp's _config.yml with download_nb_path; pin dp at afb26ea - #96

Merged
mmcky merged 1 commit into
mainfrom
sites/dp-download-notebooks
Nov 25, 2026
Merged

mmcky merged 1 commit into
mainfrom
sites/dp-download-notebooks

Conversation

@mmcky

@mmcky mmcky commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

What this changes

QuantEcon/lecture-dp#87 (merged as afb26ea) gave dp's pages the "Download Notebook" button, and changed two lines of dp's lectures/_config.yml: it added download_nb_path: https://quantecon.github.io/lecture-dp, for dp's sub-path, and set tojupyter_static_file_path to ["_static"], as in the other five series. sites/dp/_config.yml copies dp's file verbatim (sites/README.md), so this pull request takes the same two lines. Every # site addition line stays; with them removed, the site's file is byte-for-byte dp's at afb26ea.

sync/state.yml pins dp at afb26ea (tools/sync --update --pin-only dp; it was 3267d81, from #95), so the drift check compares the site copy with the file it now copies. dp is a consumer series, so the new pin brings no lecture into the pool.

The pool's dp site build still builds HTML only, so the pool's dp site shows no download button: the theme offers one only when _notebooks/ exists. That follows when dp's build moves to the monorepo, as QuantEcon/lecture-dp#86 notes.

Checks run locally

In a fresh clone of main at 6fce7d1: tools/sync --update --pin-only dp, then tools/sync (6 ok). tools/drift-check is clean, tools/pool-check is clean (335 lectures, 6 sites), and the tool tests pass (330 passed, 1 skipped).

For the review

Configuration only, no lecture. Without it, the next drift check would open a site-stale issue for sites/dp/_config.yml.

Requested by @mmcky on 2026-11-26 in the lecture monorepo's working session, with QuantEcon/lecture-dp#87 ("Please proceed"); this is its pool follow-up, as #95 was for QuantEcon/lecture-dp#85.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMZxoF4m8xKRb8BcHnG

QuantEcon/lecture-dp#87 (merged as afb26ea) gave dp's pages the
Download Notebook button: its _config.yml gained download_nb_path, for
dp's sub-path on quantecon.github.io, and tojupyter_static_file_path
became ["_static"], as in the other series. sites/dp/_config.yml copies
that file verbatim, so it takes the same two lines; every "# site
addition" line stays. sync/state.yml pins dp at afb26ea, so the drift
check compares the site copy with the file it now copies.

The pool's dp site build still builds HTML only, so it shows no
download button: the theme offers one only when _notebooks/ exists.
That follows when dp's build moves to the monorepo (QuantEcon/lecture-dp#86).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZxoF4m8xKRb8BcHnG
@mmcky
mmcky merged commit 2763c9f into main Nov 25, 2026
9 checks passed
@mmcky
mmcky deleted the sites/dp-download-notebooks branch November 25, 2026 22:59
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