From 9526fd34bb7df0c7353306c2d95475ccf90bfb73 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 20 Oct 2025 13:37:32 +1100 Subject: [PATCH 1/2] test: Update sphinx-proof to main branch for Chinese support Install sphinx-proof directly from GitHub main branch to test the new Chinese language support features that were recently merged. --- environment-cn.yml | 2 +- environment.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/environment-cn.yml b/environment-cn.yml index e253e397..4071b127 100644 --- a/environment-cn.yml +++ b/environment-cn.yml @@ -13,7 +13,7 @@ dependencies: - sphinxext-rediraffe==0.2.7 - sphinx_reredirects==0.1.4 - sphinx-exercise==1.0.1 - - sphinx-proof==0.2.1 + - git+https://github.com/executablebooks/sphinx-proof.git@main - ghp-import==1.1.0 - sphinxcontrib-youtube==1.4.1 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5 - sphinx-togglebutton==0.3.2 diff --git a/environment.yml b/environment.yml index 28d6a96f..b1393868 100644 --- a/environment.yml +++ b/environment.yml @@ -11,7 +11,7 @@ dependencies: - sphinx-tojupyter==0.3.1 - sphinxext-rediraffe==0.2.7 - sphinx-exercise==1.0.1 - - sphinx-proof==0.2.1 + - git+https://github.com/executablebooks/sphinx-proof.git@main - sphinxcontrib-youtube==1.4.1 - sphinx-togglebutton==0.3.2 - sphinx-reredirects==0.1.4 \ No newline at end of file From f93e0b9584e3ac3befe1d70fc670e82dee521db9 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 20 Oct 2025 13:40:41 +1100 Subject: [PATCH 2/2] Configure zh_CN language for sphinx-proof Chinese support Set language to zh_CN in sphinx config to enable Chinese translations for proof, theorem, lemma, and other sphinx-proof directives. Also fix duplicate intersphinx_mapping key in config. --- lectures/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index a17b4c9c..b6ef10e8 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -34,6 +34,7 @@ latex: sphinx: extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinxcontrib.youtube, sphinx.ext.todo, sphinx_exercise, sphinx_proof, sphinx_togglebutton, sphinx.ext.intersphinx, sphinx_reredirects] config: + language: zh_CN # false-positive links linkcheck_ignore: ['https://online.stat.psu.edu/stat415/book/export/html/834'] bibtex_reference_style: author_year @@ -90,7 +91,6 @@ sphinx: google_analytics_id: G-J0SMYR4SG3 launch_buttons: colab_url : https://colab.research.google.com - intersphinx_mapping: intersphinx_mapping: intermediate: - https://python.quantecon.org/