From 4d3529030f938001915e9fc769ac7a25633db3af Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Wed, 17 Jun 2026 12:05:47 +1000 Subject: [PATCH] Add language switcher config for fa and zh-cn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `languages` and `current_language` to `html_theme_options` to enable the language switcher (globe icon) and SEO hreflang tags provided by quantecon-book-theme. Main already ships the 0.21.0 theme, so no environment change is needed here. Languages: - English (en) — https://python-programming.quantecon.org - فارسی (fa) — https://quantecon.github.io/lecture-python-programming.fa - 中文 (zh-cn) — https://quantecon.github.io/lecture-python-programming.zh-cn Co-Authored-By: Claude Opus 4.8 --- lectures/_config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lectures/_config.yml b/lectures/_config.yml index c3fe4825..0183ce65 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -35,6 +35,17 @@ sphinx: html_theme: quantecon_book_theme html_static_path: ['_static'] html_theme_options: + languages: + - code: en + name: English + url: https://python-programming.quantecon.org + - code: fa + name: فارسی + url: https://quantecon.github.io/lecture-python-programming.fa + - code: zh-cn + name: 中文 + url: https://quantecon.github.io/lecture-python-programming.zh-cn + current_language: en authors: - name: Thomas J. Sargent url: http://www.tomsargent.com/