diff --git a/lectures/_config.yml b/lectures/_config.yml index ddae340..48f7841 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -8,7 +8,7 @@ execute: timeout: 600 # 10 minutes html: - baseurl: https://python-programming.quantecon.org/ + baseurl: https://quantecon.github.io/lecture-python-programming.zh-cn/ latex: latex_documents: @@ -34,6 +34,20 @@ 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: fr + name: Français + url: https://quantecon.github.io/lecture-python-programming.fr + - code: zh-cn + name: 中文 + url: https://quantecon.github.io/lecture-python-programming.zh-cn + current_language: zh-cn authors: - name: Thomas J. Sargent url: http://www.tomsargent.com/ @@ -42,8 +56,9 @@ sphinx: dark_logo: quantecon-logo-transparent.png header_organisation_url: https://quantecon.org header_organisation: QuantEcon - repository_url: https://github.com/QuantEcon/lecture-python-programming - nb_repository_url: https://github.com/QuantEcon/lecture-python-programming.notebooks + repository_url: https://github.com/QuantEcon/lecture-python-programming.zh-cn + # nb_repository_url omitted deliberately: no notebooks repo exists for this + # edition yet, and the theme skips notebook-launch links when it is unset path_to_docs: lectures twitter: quantecon twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png @@ -66,8 +81,8 @@ sphinx: index_toc.md: intro.md tojupyter_static_file_path: ["source/_static", "_static"] tojupyter_target_html: true - tojupyter_urlpath: "https://python-programming.quantecon.org/" - tojupyter_image_urlpath: "https://python-programming.quantecon.org/_static/" + tojupyter_urlpath: "https://quantecon.github.io/lecture-python-programming.zh-cn/" + tojupyter_image_urlpath: "https://quantecon.github.io/lecture-python-programming.zh-cn/_static/" tojupyter_lang_synonyms: ["ipython", "ipython3", "python"] tojupyter_kernels: python3: