From 32790691206a23c46991a044d4744bdafa60f1a5 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 3 Mar 2023 16:29:17 +1100 Subject: [PATCH 1/5] Enable jupyter-book=0.14 + sphinx book theme --- environment.yml | 6 +++--- lectures/_config.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/environment.yml b/environment.yml index 5f05f8be9..8241be965 100644 --- a/environment.yml +++ b/environment.yml @@ -6,9 +6,9 @@ dependencies: - anaconda=2022.10 - pip - pip: - - jupyter-book==0.13.2 - - quantecon-book-theme==0.3.2 - - sphinx-tojupyter==0.2.1 + - jupyter-book==0.14.0 + # - quantecon-book-theme==0.3.2 + # - sphinx-tojupyter==0.2.1 - sphinxext-rediraffe==0.2.7 - sphinx-exercise==0.4.1 - sphinx-proof==0.1.3 diff --git a/lectures/_config.yml b/lectures/_config.yml index 5d39845b6..5df5aaf9f 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -36,7 +36,7 @@ sphinx: extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx_proof] # sphinx_tojupyter config: html_favicon: _static/lectures-favicon.ico - html_theme: quantecon_book_theme + html_theme: sphinx_book_theme html_static_path: ['_static'] html_theme_options: header_organisation_url: https://quantecon.org From ad0a88b2a15216b4c17c284614098cfdba5802d5 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 3 Mar 2023 16:31:40 +1100 Subject: [PATCH 2/5] remove caching due to cache corruption with different environments --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e85a2f484..c6257eebb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,13 +37,13 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 - with: - workflow: cache.yml - branch: main - name: build-cache - path: _build + # - name: Download "build" folder (cache) + # uses: dawidd6/action-download-artifact@v2 + # with: + # workflow: cache.yml + # branch: main + # name: build-cache + # path: _build # Build Assets (Download Notebooks and PDF via LaTeX) # - name: Build PDF from LaTeX # shell: bash -l {0} From 5dac62be679516b0e0012dcd20c685c1bf8b25d6 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 3 Mar 2023 16:32:57 +1100 Subject: [PATCH 3/5] enable ref and numref test in inequality --- lectures/inequality.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lectures/inequality.md b/lectures/inequality.md index e66b01542..2517fcdab 100644 --- a/lectures/inequality.md +++ b/lectures/inequality.md @@ -506,6 +506,8 @@ plt.title("Gini coefficients of US income data") plt.show() ``` +**TEST ===>** Here is a {ref}`gini_us` and a {numref}`gini_us` + We see that, by this measure, inequality in wealth and income has risen substantially since 1980. From 0317dcb2589928dfac5e3bace3b222c6392d8efb Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 3 Mar 2023 16:36:50 +1100 Subject: [PATCH 4/5] fix cmd error --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6257eebb..05ff28efd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - rm -r _build/.doctrees + # rm -r _build/.doctrees jb build lectures --path-output ./ -W --keep-going - name: Upload Execution Reports (HTML) uses: actions/upload-artifact@v2 From fbdcba05004d5d9f4acc4dfed279d5df37a866ea Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 3 Mar 2023 17:07:43 +1100 Subject: [PATCH 5/5] remove theme options from quantecon-book-theme --- lectures/_config.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index 5df5aaf9f..b2b926945 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -39,15 +39,15 @@ sphinx: html_theme: sphinx_book_theme html_static_path: ['_static'] html_theme_options: - header_organisation_url: https://quantecon.org - header_organisation: QuantEcon + # header_organisation_url: https://quantecon.org + # header_organisation: QuantEcon repository_url: https://github.com/QuantEcon/lecture-python-intro - nb_repository_url: https://github.com/QuantEcon/lecture-python-intro.notebooks - 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 - description: This website presents a set of lectures on python programming for economics, designed and written by Thomas J. Sargent and John Stachurski. - keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski + # nb_repository_url: https://github.com/QuantEcon/lecture-python-intro.notebooks + # 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 + # description: This website presents a set of lectures on python programming for economics, designed and written by Thomas J. Sargent and John Stachurski. + # keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski # analytics: # google_analytics_id: UA-54984338-9 launch_buttons: