From 16f10b7daac952d6f98cfd8659faea3d81ab6db4 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 20 Apr 2021 15:40:25 +1000 Subject: [PATCH 1/5] [TEST] test juptyer-book@sphinx-external-toc with migrated _toc.yml --- environment.yml | 2 +- lectures/_toc.yml | 168 +++++++++++++++++++++++----------------------- 2 files changed, 84 insertions(+), 86 deletions(-) diff --git a/environment.yml b/environment.yml index b2a7a09ed..975494fd8 100644 --- a/environment.yml +++ b/environment.yml @@ -6,7 +6,7 @@ dependencies: - anaconda=2020.11 - pip - pip: - - jupyter-book + - git+https://github.com/executablebooks/jupyter-book@sphinx-external-toc - sphinx-multitoc-numbering - git+https://github.com/quantecon/quantecon-book-theme - sphinx-tojupyter diff --git a/lectures/_toc.yml b/lectures/_toc.yml index f597f8bf7..9450e6d4b 100644 --- a/lectures/_toc.yml +++ b/lectures/_toc.yml @@ -1,96 +1,94 @@ -- file: intro +format: jb-book +root: intro +parts: +- caption: Tools and Techniques numbered: true - -- part: Tools and Techniques chapters: - - file: geom_series - - file: multi_hyper - - file: sir_model - - file: linear_algebra - - file: complex_and_trig - - file: lln_clt - - file: heavy_tails - - file: multivariate_normal - - file: time_series_with_matrices - -- part: Introduction to Dynamics + - file: geom_series + - file: multi_hyper + - file: sir_model + - file: linear_algebra + - file: complex_and_trig + - file: lln_clt + - file: heavy_tails + - file: multivariate_normal + - file: time_series_with_matrices +- caption: Introduction to Dynamics + numbered: true chapters: - - file: scalar_dynam - - file: ar1_processes - - file: finite_markov - - file: inventory_dynamics - - file: linear_models - - file: samuelson - - file: kesten_processes - - file: wealth_dynamics - - file: kalman - - file: short_path - - file: cass_koopmans_1 - - file: cass_koopmans_2 - -- part: Search + - file: scalar_dynam + - file: ar1_processes + - file: finite_markov + - file: inventory_dynamics + - file: linear_models + - file: samuelson + - file: kesten_processes + - file: wealth_dynamics + - file: kalman + - file: short_path + - file: cass_koopmans_1 + - file: cass_koopmans_2 +- caption: Search + numbered: true chapters: - - file: mccall_model - - file: mccall_model_with_separation - - file: mccall_fitted_vfi - - file: mccall_correlated - - file: career - - file: jv - -- part: Consumption, Savings and Growth + - file: mccall_model + - file: mccall_model_with_separation + - file: mccall_fitted_vfi + - file: mccall_correlated + - file: career + - file: jv +- caption: Consumption, Savings and Growth + numbered: true chapters: - - file: cake_eating_problem - - file: cake_eating_numerical - - file: optgrowth - - file: optgrowth_fast - - file: coleman_policy_iter - - file: egm_policy_iter - - file: ifp - - file: ifp_advanced - -- part: Information + - file: cake_eating_problem + - file: cake_eating_numerical + - file: optgrowth + - file: optgrowth_fast + - file: coleman_policy_iter + - file: egm_policy_iter + - file: ifp + - file: ifp_advanced +- caption: Information + numbered: true chapters: - - file: odu - - file: likelihood_ratio_process - - file: wald_friedman - - file: exchangeable - - file: likelihood_bayes - - file: navy_captain - -- part: LQ Control + - file: odu + - file: likelihood_ratio_process + - file: wald_friedman + - file: exchangeable + - file: likelihood_bayes + - file: navy_captain +- caption: LQ Control + numbered: true chapters: - - file: lqcontrol - - file: perm_income - - file: perm_income_cons - - file: lq_inventories - -- part: Multiple Agent Models + - file: lqcontrol + - file: perm_income + - file: perm_income_cons + - file: lq_inventories +- caption: Multiple Agent Models + numbered: true chapters: - - file: schelling - - file: lake_model - - file: rational_expectations - - file: re_with_feedback - - file: markov_perf - - file: uncertainty_traps - - file: aiyagari - -- part: Asset Pricing and Finance + - file: schelling + - file: lake_model + - file: rational_expectations + - file: re_with_feedback + - file: markov_perf + - file: uncertainty_traps + - file: aiyagari +- caption: Asset Pricing and Finance + numbered: true chapters: - - file: markov_asset - - file: ge_arrow - - file: harrison_kreps - -- part: Data and Empirics + - file: markov_asset + - file: ge_arrow + - file: harrison_kreps +- caption: Data and Empirics + numbered: true chapters: - - file: pandas_panel - - file: ols - - file: mle - - -# Placeholder for other pages - -- part: Other + - file: pandas_panel + - file: ols + - file: mle +- caption: Other + numbered: true chapters: - - file: troubleshooting - - file: zreferences - - file: status \ No newline at end of file + - file: troubleshooting + - file: zreferences + - file: status \ No newline at end of file From d37e1171c64bc8add6b7aeefa927ef06b0b40faa Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 26 Apr 2021 10:55:20 +1000 Subject: [PATCH 2/5] build pdf file using jupyterbook-latex --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4cc2c646..6e086c97f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,4 +46,24 @@ jobs: deploy-message: "Preview Deploy from GitHub Actions" env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} \ No newline at end of file + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + - 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 + - name: Build PDF from LaTeX + shell: bash -l {0} + run: | + jb build lectures --builder pdflatex --path-output ./ -n --keep-going + - name: Save Build as Artifact + uses: actions/upload-artifact@v1 + with: + name: _build + path: _build \ No newline at end of file From 185fc41d3d13c81d739958cea7ec889324709da2 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 26 Apr 2021 21:09:58 +1000 Subject: [PATCH 3/5] use quantecon-book-theme from pip --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 975494fd8..260352d14 100644 --- a/environment.yml +++ b/environment.yml @@ -8,7 +8,7 @@ dependencies: - pip: - git+https://github.com/executablebooks/jupyter-book@sphinx-external-toc - sphinx-multitoc-numbering - - git+https://github.com/quantecon/quantecon-book-theme + - quantecon-book-theme - sphinx-tojupyter - sphinxext-rediraffe - sphinx-exercise From ec62ff3cc243fc3b8e167b087d57c29c6f6fabb3 Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 5 May 2021 14:51:51 +1000 Subject: [PATCH 4/5] update in prepration for new release of jupyter-book --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 260352d14..38cdc94bd 100644 --- a/environment.yml +++ b/environment.yml @@ -6,7 +6,7 @@ dependencies: - anaconda=2020.11 - pip - pip: - - git+https://github.com/executablebooks/jupyter-book@sphinx-external-toc + - jupyter-book - sphinx-multitoc-numbering - quantecon-book-theme - sphinx-tojupyter From 80d75af403895f4d9bf27bee7073d8ac3884c80b Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 7 Jun 2021 15:06:17 +1000 Subject: [PATCH 5/5] sanitize automatic merge issue --- .github/workflows/ci.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 341472d4c..32b1c7ab6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,23 +72,3 @@ jobs: env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - - 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 - - name: Build PDF from LaTeX - shell: bash -l {0} - run: | - jb build lectures --builder pdflatex --path-output ./ -n --keep-going - - name: Save Build as Artifact - uses: actions/upload-artifact@v1 - with: - name: _build - path: _build \ No newline at end of file