Skip to content

Commit f7b2f8f

Browse files
authored
Update _config.yml for quantecon-book-theme upgrade (#678)
* Update _config.yml for quantecon-book-theme upgrade - Add path_to_docs option for proper repository links - Add nb_merge_streams for merged stdout/stderr output - Add nb_mime_priority_overrides for proper notebook widget rendering - Add exercise_style setting for sphinx-exercise - Reorganize comments for sphinx-proof and sphinx-exercise sections * Update quantecon-book-theme to 0.15.1 - Includes fix for path_to_docs stripping in notebook launch URLs - Colab/JupyterHub/Binder buttons now generate correct URLs for flat notebook repos * Remove exercise_style config (not supported by sphinx-exercise 1.0.1)
1 parent 36b3a1b commit f7b2f8f

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- pip
88
- pip:
99
- jupyter-book==1.0.4post1
10-
- quantecon-book-theme==0.15.0
10+
- quantecon-book-theme==0.15.1
1111
- sphinx-tojupyter==0.3.1
1212
- sphinxext-rediraffe==0.3.0
1313
- sphinx-exercise==1.0.1

lectures/_config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,40 @@ sphinx:
4444
nb_render_image_options:
4545
width: 80%
4646
nb_code_prompt_show: "Show {type}"
47+
nb_merge_streams: true
48+
nb_mime_priority_overrides: [
49+
# HTML
50+
['html', 'application/vnd.jupyter.widget-view+json', 10],
51+
['html', 'application/javascript', 20],
52+
['html', 'text/html', 30],
53+
['html', 'text/latex', 40],
54+
['html', 'image/svg+xml', 50],
55+
['html', 'image/png', 60],
56+
['html', 'image/jpeg', 70],
57+
['html', 'text/markdown', 80],
58+
['html', 'text/plain', 90],
59+
# Jupyter Notebooks
60+
['jupyter', 'application/vnd.jupyter.widget-view+json', 10],
61+
['jupyter', 'application/javascript', 20],
62+
['jupyter', 'text/html', 30],
63+
['jupyter', 'text/latex', 40],
64+
['jupyter', 'image/svg+xml', 50],
65+
['jupyter', 'image/png', 60],
66+
['jupyter', 'image/jpeg', 70],
67+
['jupyter', 'text/markdown', 80],
68+
['jupyter', 'text/plain', 90],
69+
# LaTeX
70+
['latex', 'text/latex', 10],
71+
['latex', 'application/pdf', 20],
72+
['latex', 'image/png', 30],
73+
['latex', 'image/jpeg', 40],
74+
['latex', 'text/markdown', 50],
75+
['latex', 'text/plain', 60],
76+
# Link Checker
77+
['linkcheck', 'text/plain', 10],
78+
]
4779
suppress_warnings: [mystnb.unknown_mime_type, myst.domains]
80+
# sphinx-proof
4881
proof_minimal_theme: true
4982
# -------------
5083
html_js_files:
@@ -63,6 +96,7 @@ sphinx:
6396
header_organisation: QuantEcon
6497
repository_url: https://github.com/QuantEcon/lecture-python-intro
6598
nb_repository_url: https://github.com/QuantEcon/lecture-python-intro.notebooks
99+
path_to_docs: lectures
66100
twitter: quantecon
67101
twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
68102
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png

0 commit comments

Comments
 (0)