From 0b918d0b95f4c071fc2e9ee4bc0fc3b0c8e50285 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Tue, 9 Dec 2025 12:18:53 +1100 Subject: [PATCH] MAINT: Add exercise_style configuration and update quantecon-book-theme - Added exercise_style: solution_follow_exercise to _config.yml * Enables simplified solution titles (just 'Solution' instead of 'Solution to Exercise #.#') * Activates order validation for exercises and solutions * Better styling for lecture-style content where solutions follow exercises - Updated quantecon-book-theme from 0.14.0 to 0.15.0 * Major refactoring and modernization * Security improvements (fixed 2 npm vulnerabilities) * Performance optimizations with CDN preconnect hints * Updated Node.js and dependencies Fixes #269 --- environment.yml | 2 +- lectures/_config.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 157946e4..e16b7c69 100644 --- a/environment.yml +++ b/environment.yml @@ -7,7 +7,7 @@ dependencies: - pip - pip: - jupyter-book==1.0.4post1 - - quantecon-book-theme==0.14.0 + - quantecon-book-theme==0.15.0 - sphinx-tojupyter==0.6.0 - sphinxext-rediraffe==0.3.0 - sphinx-exercise==1.2.1 diff --git a/lectures/_config.yml b/lectures/_config.yml index 5218016b..99d16f70 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -38,6 +38,7 @@ sphinx: bibtex_reference_style: author_year suppress_warnings: ["mystnb.unknown_mime_type"] nb_merge_streams: true + exercise_style: solution_follow_exercise # myst-nb config nb_render_image_options: width: 80%