From a7a256b6871d5e80fcb3d29f41857e9ae75e78a8 Mon Sep 17 00:00:00 2001 From: kp992 Date: Tue, 15 Oct 2024 18:34:10 +0530 Subject: [PATCH 1/9] test --- .github/workflows/cache.yml | 2 ++ environment.yml | 2 +- lectures/_config.yml | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index f968aa655..4d41759da 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -2,7 +2,9 @@ name: Build Cache [using jupyter-book] on: push: branches: + - cache_test_3 - main + jobs: tests: runs-on: ubuntu-latest diff --git a/environment.yml b/environment.yml index f60099b5e..777c062a3 100644 --- a/environment.yml +++ b/environment.yml @@ -13,7 +13,7 @@ dependencies: - sphinx-tojupyter==0.3.0 - sphinxext-rediraffe==0.2.7 - sphinx-exercise==0.4.1 - - sphinx-proof==0.2.0 + - sphinx-proof==0.1.3 - ghp-import==1.1.0 - sphinxcontrib-youtube==1.1.0 - sphinx-togglebutton==0.3.1 diff --git a/lectures/_config.yml b/lectures/_config.yml index ecd808f0f..84d407d7e 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -45,7 +45,6 @@ sphinx: width: 80% nb_code_prompt_show: "Show {type}" suppress_warnings: [mystnb.unknown_mime_type, myst.domains] - proof_minimal_theme: true # ------------- html_js_files: - https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js From c30984a1523cb6cf9b77655567eeff07d140fcf3 Mon Sep 17 00:00:00 2001 From: kp992 Date: Tue, 15 Oct 2024 19:09:55 +0530 Subject: [PATCH 2/9] test --- .github/workflows/cache.yml | 1 - .github/workflows/ci.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 4d41759da..79770fc3b 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -2,7 +2,6 @@ name: Build Cache [using jupyter-book] on: push: branches: - - cache_test_3 - main jobs: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 638eac2b3..06c0a0b1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: uses: dawidd6/action-download-artifact@v6 with: workflow: cache.yml - branch: main + branch: cache_test_3 name: build-cache path: _build # Build Assets (Download Notebooks and PDF via LaTeX) From aea7e6079b93de1582cd6be02ff5331bb3ecbed8 Mon Sep 17 00:00:00 2001 From: kp992 Date: Tue, 15 Oct 2024 19:37:41 +0530 Subject: [PATCH 3/9] test --- environment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/environment.yml b/environment.yml index 777c062a3..bb177cba8 100644 --- a/environment.yml +++ b/environment.yml @@ -18,6 +18,7 @@ dependencies: - sphinxcontrib-youtube==1.1.0 - sphinx-togglebutton==0.3.1 - sphinx_reredirects==0.1.3 + - nbdime==4.0.1 # Sandpit Requirements # - PuLP # - cvxpy From d2c802be94bc3d565781095a044b34876b6473f4 Mon Sep 17 00:00:00 2001 From: kp992 Date: Tue, 15 Oct 2024 20:21:29 +0530 Subject: [PATCH 4/9] test --- lectures/about.md | 1 + 1 file changed, 1 insertion(+) diff --git a/lectures/about.md b/lectures/about.md index 0b419cc51..0dd81a436 100644 --- a/lectures/about.md +++ b/lectures/about.md @@ -7,6 +7,7 @@ This lecture series introduces quantitative economics using elementary mathematics and statistics plus computer code written in [Python](https://www.python.org/). + The lectures emphasize simulation and visualization through code as a way to convey ideas, rather than focusing on mathematical details. From 75fcf84bb344fe3894412d0a319067b8c1eed902 Mon Sep 17 00:00:00 2001 From: kp992 Date: Wed, 16 Oct 2024 18:45:51 +0530 Subject: [PATCH 5/9] comment latex --- .github/workflows/ci.yml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06c0a0b1c..e4cb7e928 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,25 +44,25 @@ jobs: branch: cache_test_3 name: build-cache path: _build - # Build Assets (Download Notebooks and PDF via LaTeX) - - name: Build PDF from LaTeX - shell: bash -l {0} - run: | - jb build lectures --builder pdflatex --path-output ./ -n --keep-going - mkdir -p _build/html/_pdf - cp -u _build/latex/*.pdf _build/html/_pdf - - name: Upload Execution Reports (LaTeX) - uses: actions/upload-artifact@v4 - if: failure() - with: - name: execution-reports - path: _build/latex/reports - - name: Build Download Notebooks (sphinx-tojupyter) - shell: bash -l {0} - run: | - jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter - mkdir -p _build/html/_notebooks - cp -u _build/jupyter/*.ipynb _build/html/_notebooks + # # Build Assets (Download Notebooks and PDF via LaTeX) + # - name: Build PDF from LaTeX + # shell: bash -l {0} + # run: | + # jb build lectures --builder pdflatex --path-output ./ -n --keep-going + # mkdir -p _build/html/_pdf + # cp -u _build/latex/*.pdf _build/html/_pdf + # - name: Upload Execution Reports (LaTeX) + # uses: actions/upload-artifact@v4 + # if: failure() + # with: + # name: execution-reports + # path: _build/latex/reports + # - name: Build Download Notebooks (sphinx-tojupyter) + # shell: bash -l {0} + # run: | + # jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter + # mkdir -p _build/html/_notebooks + # cp -u _build/jupyter/*.ipynb _build/html/_notebooks # Build HTML (Website) # BUG: rm .doctress to remove `sphinx` rendering issues for ipywidget mimetypes # and clear the sphinx cache for building final HTML documents. From b4d34155038569aa3fd5c1926d4f774a0d367fb9 Mon Sep 17 00:00:00 2001 From: kp992 Date: Wed, 16 Oct 2024 18:52:57 +0530 Subject: [PATCH 6/9] fix --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4cb7e928..74ea49ed3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,6 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - rm -r _build/.doctrees jb build lectures --path-output ./ -nW --keep-going - name: Upload Execution Reports (HTML) uses: actions/upload-artifact@v4 From 7abcc528596f50007168dbf05307f635a47b0c30 Mon Sep 17 00:00:00 2001 From: kp992 Date: Wed, 16 Oct 2024 20:11:19 +0530 Subject: [PATCH 7/9] debug --- .github/workflows/ci.yml | 58 +++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74ea49ed3..86737776e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,22 +15,22 @@ jobs: python-version: "3.11" environment-file: environment.yml activate-environment: quantecon - - name: Graphics Support #TODO: Review if graphviz is needed - run: | - sudo apt-get -qq update && sudo apt-get install -y graphviz - - name: Install latex dependencies - run: | - sudo apt-get -qq update - sudo apt-get install -y \ - texlive-latex-recommended \ - texlive-latex-extra \ - texlive-fonts-recommended \ - texlive-fonts-extra \ - texlive-xetex \ - latexmk \ - xindy \ - dvipng \ - cm-super + # - name: Graphics Support #TODO: Review if graphviz is needed + # run: | + # sudo apt-get -qq update && sudo apt-get install -y graphviz + # - name: Install latex dependencies + # run: | + # sudo apt-get -qq update + # sudo apt-get install -y \ + # texlive-latex-recommended \ + # texlive-latex-extra \ + # texlive-fonts-recommended \ + # texlive-fonts-extra \ + # texlive-xetex \ + # latexmk \ + # xindy \ + # dvipng \ + # cm-super - name: Display Conda Environment Versions shell: bash -l {0} run: conda list @@ -69,20 +69,24 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - jb build lectures --path-output ./ -nW --keep-going + ls + cd _build + ls + cd .. + - name: Upload Execution Reports (HTML) uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports path: _build/html/reports - - name: Preview Deploy to Netlify - uses: nwtgck/actions-netlify@v3.0 - with: - publish-dir: '_build/html/' - production-branch: main - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Preview Deploy from GitHub Actions" - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + # - name: Preview Deploy to Netlify + # uses: nwtgck/actions-netlify@v3.0 + # with: + # publish-dir: '_build/html/' + # production-branch: main + # github-token: ${{ secrets.GITHUB_TOKEN }} + # deploy-message: "Preview Deploy from GitHub Actions" + # env: + # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + # NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From 52019ad82365da4dbedb6a7d6c840337d0507040 Mon Sep 17 00:00:00 2001 From: kp992 Date: Thu, 17 Oct 2024 21:05:27 +0530 Subject: [PATCH 8/9] update env --- environment.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/environment.yml b/environment.yml index bb177cba8..925c6c862 100644 --- a/environment.yml +++ b/environment.yml @@ -7,18 +7,17 @@ dependencies: - anaconda=2024.06 - pip - pip: - - jupyter-book==0.15.1 - - docutils==0.17.1 + - jupyter-book + - docutils - quantecon-book-theme==0.7.2 - - sphinx-tojupyter==0.3.0 - - sphinxext-rediraffe==0.2.7 - - sphinx-exercise==0.4.1 - - sphinx-proof==0.1.3 - - ghp-import==1.1.0 - - sphinxcontrib-youtube==1.1.0 - - sphinx-togglebutton==0.3.1 - - sphinx_reredirects==0.1.3 - - nbdime==4.0.1 + - sphinx-tojupyter + - sphinxext-rediraffe + - sphinx-exercise + - sphinx-proof + - ghp-import + - sphinxcontrib-youtube + - sphinx-togglebutton + - sphinx_reredirects # Sandpit Requirements # - PuLP # - cvxpy From 9c4ba0f18e6de5d5f17a96496b82e38e2efaf765 Mon Sep 17 00:00:00 2001 From: kp992 Date: Thu, 17 Oct 2024 21:07:30 +0530 Subject: [PATCH 9/9] test --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86737776e..ffde84beb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,7 @@ jobs: cd _build ls cd .. + jb build lectures --path-output ./ -nW --keep-going - name: Upload Execution Reports (HTML) uses: actions/upload-artifact@v4