Skip to content

Commit 78bb7ed

Browse files
authored
MAINT: update config (#130)
* MAIN: update config * fix google analytics * re-enable cache * add mime type html to latex
1 parent b899920 commit 78bb7ed

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
- name: Display Pip Versions
3535
shell: bash -l {0}
3636
run: pip list
37-
# - name: Download "build" folder (cache)
38-
# uses: dawidd6/action-download-artifact@v2
39-
# with:
40-
# workflow: cache.yml
41-
# branch: main
42-
# name: build-cache
43-
# path: _build
37+
- name: Download "build" folder (cache)
38+
uses: dawidd6/action-download-artifact@v2
39+
with:
40+
workflow: cache.yml
41+
branch: main
42+
name: build-cache
43+
path: _build
4444
# Build Assets (Download Notebooks and PDF via LaTeX)
4545
- name: Build PDF from LaTeX
4646
shell: bash -l {0}

lectures/_config.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ title: Advanced Quantitative Economics with Python
22
author: Thomas J. Sargent & John Stachurski
33
logo: _static/qe-logo-large.png
44
description: This website presents a set of lectures on advanced quantitative economic modeling, designed and written by Thomas J. Sargent and John Stachurski.
5+
analytics:
6+
google_analytics_id: UA-54984338-11
57

68
parse:
79
myst_enable_extensions:
@@ -34,6 +36,7 @@ sphinx:
3436
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinx_exercise, sphinx_togglebutton]
3537
config:
3638
nb_mime_priority_overrides: [
39+
# HTML
3740
['html', 'application/vnd.jupyter.widget-view+json', 10],
3841
['html', 'application/javascript', 20],
3942
['html', 'text/html', 30],
@@ -43,6 +46,7 @@ sphinx:
4346
['html', 'image/jpeg', 70],
4447
['html', 'text/markdown', 80],
4548
['html', 'text/plain', 90],
49+
# Jupyter Notebooks
4650
['jupyter', 'application/vnd.jupyter.widget-view+json', 10],
4751
['jupyter', 'application/javascript', 20],
4852
['jupyter', 'text/html', 30],
@@ -52,6 +56,15 @@ sphinx:
5256
['jupyter', 'image/jpeg', 70],
5357
['jupyter', 'text/markdown', 80],
5458
['jupyter', 'text/plain', 90],
59+
# LaTeX
60+
['latex', 'text/latex', 10],
61+
['latex', 'application/pdf', 20],
62+
['latex', 'image/png', 30],
63+
['latex', 'image/jpeg', 40],
64+
['latex', 'text/markdown', 50],
65+
['latex', 'text/plain', 60],
66+
['latex', 'text/html', 70],
67+
# Link Checker
5568
['linkcheck', 'text/plain', 10],
5669
]
5770
html_favicon: _static/lectures-favicon.ico
@@ -67,7 +80,6 @@ sphinx:
6780
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
6881
description: This website presents a set of lectures on advanced quantitative economic modeling, designed and written by Thomas J. Sargent and John Stachurski.
6982
keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski
70-
google_analytics_id: UA-54984338-11
7183
launch_buttons:
7284
colab_url : https://colab.research.google.com
7385
mathjax3_config:

0 commit comments

Comments
 (0)