Skip to content

Commit d9efc0c

Browse files
authored
MAINT: Maintenance and Updates (#265)
* MAINT: Maintenance and Updates * update python build versions * update deprecated syntax in _config.yml * additional config for updated theme * fix toml files in download nb repo
1 parent 33b8752 commit d9efc0c

File tree

3 files changed

+47
-33
lines changed

3 files changed

+47
-33
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,6 @@ jobs:
109109
git config user.name "QuantEcon Services"
110110
git config user.email "[email protected]"
111111
git add *.ipynb
112+
git add *.toml
112113
git commit -m "auto publishing updates to notebooks"
113114
git push origin main

lectures/_config.yml

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ logo: _static/qe-logo-large.png
44
description: This website presents a set of lectures on quantitative economic modeling, designed and written by Jesse Perla, Thomas J. Sargent and John Stachurski. The language instruction is Julia.
55

66
execute:
7-
execute_notebooks: "force"
7+
execute_notebooks: "cache"
88
timeout: 600
99

1010
bibtex_bibfiles:
@@ -18,51 +18,65 @@ latex:
1818
targetname: quantecon-julia.tex
1919

2020
sphinx:
21-
extra_extensions: [sphinx_multitoc_numbering,sphinxext.rediraffe, sphinx_tojupyter] #,
21+
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter]
2222
config:
23-
nb_render_priority:
24-
html:
25-
- "application/vnd.jupyter.widget-view+json"
26-
- "application/javascript"
27-
- "text/html"
28-
- "text/latex"
29-
- "image/svg+xml"
30-
- "image/png"
31-
- "image/jpeg"
32-
- "text/markdown"
33-
- "text/plain"
34-
jupyter:
35-
- "application/vnd.jupyter.widget-view+json"
36-
- "application/javascript"
37-
- "text/html"
38-
- "text/latex"
39-
- "image/svg+xml"
40-
- "image/png"
41-
- "image/jpeg"
42-
- "text/markdown"
43-
- "text/plain"
23+
nb_mime_priority_overrides: [
24+
# HTML
25+
['html', 'application/vnd.jupyter.widget-view+json', 10],
26+
['html', 'application/javascript', 20],
27+
['html', 'text/html', 30],
28+
['html', 'text/latex', 40],
29+
['html', 'image/svg+xml', 50],
30+
['html', 'image/png', 60],
31+
['html', 'image/jpeg', 70],
32+
['html', 'text/markdown', 80],
33+
['html', 'text/plain', 90],
34+
# Jupyter Notebooks
35+
['jupyter', 'application/vnd.jupyter.widget-view+json', 10],
36+
['jupyter', 'application/javascript', 20],
37+
['jupyter', 'text/html', 30],
38+
['jupyter', 'text/latex', 40],
39+
['jupyter', 'image/svg+xml', 50],
40+
['jupyter', 'image/png', 60],
41+
['jupyter', 'image/jpeg', 70],
42+
['jupyter', 'text/markdown', 80],
43+
['jupyter', 'text/plain', 90],
44+
# LaTeX
45+
['latex', 'text/latex', 10],
46+
['latex', 'application/pdf', 20],
47+
['latex', 'image/png', 30],
48+
['latex', 'image/jpeg', 40],
49+
['latex', 'text/markdown', 50],
50+
['latex', 'text/plain', 60],
51+
# Link Checker
52+
['linkcheck', 'text/plain', 10],
53+
]
4454
highlight_language: julia
45-
html_favicon: _static/lectures-favicon.ico # html_theme: quantecon_book_theme
55+
html_favicon: _static/lectures-favicon.ico
56+
html_theme: quantecon_book_theme
4657
html_static_path: ['_static']
4758
html_theme_options:
4859
header_organisation_url: https://quantecon.org
4960
header_organisation: QuantEcon
50-
repository_url: https://github.com/QuantEcon/lecture-julia.myst
61+
repository_url: https://github.com/quantecon/lecture-julia.myst
5162
repository_branch: main
52-
nb_repository_url: https://github.com/QuantEcon/lecture-julia.notebooks
63+
nb_repository_url: https://github.com/quantecon/lecture-julia.notebooks
5364
nb_branch: main
5465
twitter: quantecon
5566
twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
5667
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
5768
description: This website presents a set of lectures on quantitative economic modeling, designed and written by Jesse Perla, Thomas J. Sargent and John Stachurski. The language instruction is Julia.
5869
keywords: Julia, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski
59-
google_analytics_id: UA-54984338-8
70+
analytics:
71+
google_analytics_id: G-3PCWRLGWND
72+
launch_buttons:
73+
colab_url: https://colab.research.google.com
6074
mathjax3_config:
6175
tex:
6276
macros:
6377
"argmax" : "arg\\,max"
6478
"argmin" : "arg\\,min"
65-
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js
79+
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
6680
rediraffe_redirects:
6781
index_toc.md: intro.md
6882
tojupyter_default_lang: julia

requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
jupyter-book==0.12.3
2-
quantecon-book-theme==0.3.1
3-
sphinx-tojupyter==0.2.1
4-
sphinxext.rediraffe==0.2.7
5-
jupyter-server<2
1+
jupyter-book==0.15.1
2+
quantecon-book-theme==0.5.3
3+
sphinx-tojupyter==0.3.0
4+
sphinxext.rediraffe==0.2.7

0 commit comments

Comments
 (0)