From 54d2286f09c45406117b705a2560d6731e6b12cb Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Thu, 9 Apr 2026 14:01:00 +1000 Subject: [PATCH 1/2] UPD: update quantecon-book-theme to v0.20.2 and enable language switcher for zh-cn --- environment.yml | 2 +- lectures/_config.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 817bcf63..7fcd74b3 100644 --- a/environment.yml +++ b/environment.yml @@ -7,7 +7,7 @@ dependencies: - pip - pip: - jupyter-book==1.0.4post1 - - quantecon-book-theme==0.20.0 + - quantecon-book-theme==0.20.2 - 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 bb8173d0..17421664 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -97,6 +97,14 @@ sphinx: repository_url: https://github.com/QuantEcon/lecture-python-intro nb_repository_url: https://github.com/QuantEcon/lecture-python-intro.notebooks path_to_docs: lectures + languages: + - code: en + name: English + url: https://intro.quantecon.org + - code: zh-cn + name: 中文 + url: https://quantecon.github.io/lecture-intro.zh-cn + current_language: en twitter: quantecon twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png From 2914e7c6bfed97760a6931aeb319f1cb30c6633f Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Thu, 9 Apr 2026 14:18:44 +1000 Subject: [PATCH 2/2] FIX: add trailing slashes to language switcher URLs for consistency with baseurl --- lectures/_config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index 17421664..552b2cf9 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -100,10 +100,10 @@ sphinx: languages: - code: en name: English - url: https://intro.quantecon.org + url: https://intro.quantecon.org/ - code: zh-cn name: 中文 - url: https://quantecon.github.io/lecture-intro.zh-cn + url: https://quantecon.github.io/lecture-intro.zh-cn/ current_language: en twitter: quantecon twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png