From 7e8356e7c36444300b282d532f1243b1208637e3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:15:27 +0000 Subject: [PATCH 1/4] Initial plan From 8426f4d03624260949c09ffa6926009d2b8e05d0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:36:29 +0000 Subject: [PATCH 2/4] Fix redirect links in documentation Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com> --- lectures/_config.yml | 1 + lectures/_templates/layout.html | 347 ++++++++++++++++++++++++++++++++ lectures/workspace.md | 2 +- 3 files changed, 349 insertions(+), 1 deletion(-) create mode 100644 lectures/_templates/layout.html diff --git a/lectures/_config.yml b/lectures/_config.yml index e4a8a23d..5e8d83c5 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -30,6 +30,7 @@ sphinx: html_favicon: _static/lectures-favicon.ico html_theme: quantecon_book_theme html_static_path: ['_static'] + templates_path: ['_templates'] html_theme_options: authors: - name: Thomas J. Sargent diff --git a/lectures/_templates/layout.html b/lectures/_templates/layout.html new file mode 100644 index 00000000..1b89801f --- /dev/null +++ b/lectures/_templates/layout.html @@ -0,0 +1,347 @@ +{%- extends "quantecon_book_theme/layout.html" %} + +{# Override the TOC navigation block to fix the Jupyter Book link #} +{% block content %} + + +{%- if not theme_quantecon_project %} + +{%- endif %} + + + +
{{ pagetitle | e }}
+ +Powered by Jupyter Book
From ec2cbba3baef14f98a3d3037d4b2f24fb1d61d17 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:53:24 +0000 Subject: [PATCH 4/4] Fix code review comments: update line number and add quotes Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com> --- lectures/_templates/layout.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/_templates/layout.html b/lectures/_templates/layout.html index 41335047..4285a693 100644 --- a/lectures/_templates/layout.html +++ b/lectures/_templates/layout.html @@ -6,7 +6,7 @@ footer link, so we need to override the entire 'content' block. This is the minimal change required to fix the redirect issue reported by the link checker. - The only modification from the parent template is on line 80: + The only modification from the parent template is on line 89: - OLD: Jupyter Book + NEW: Jupyter Book #} @@ -55,7 +55,7 @@