Skip to content

Commit 8092924

Browse files
authored
Enable jupyter-book=0.14 + sphinx book theme (#121)
* Enable jupyter-book=0.14 + sphinx book theme * remove caching due to cache corruption with different environments * enable ref and numref test in inequality * fix cmd error * remove theme options from quantecon-book-theme
1 parent 67c71bb commit 8092924

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
- name: Display Pip Versions
3838
shell: bash -l {0}
3939
run: pip list
40-
- name: Download "build" folder (cache)
41-
uses: dawidd6/action-download-artifact@v2
42-
with:
43-
workflow: cache.yml
44-
branch: main
45-
name: build-cache
46-
path: _build
40+
# - name: Download "build" folder (cache)
41+
# uses: dawidd6/action-download-artifact@v2
42+
# with:
43+
# workflow: cache.yml
44+
# branch: main
45+
# name: build-cache
46+
# path: _build
4747
# Build Assets (Download Notebooks and PDF via LaTeX)
4848
# - name: Build PDF from LaTeX
4949
# shell: bash -l {0}
@@ -63,7 +63,7 @@ jobs:
6363
- name: Build HTML
6464
shell: bash -l {0}
6565
run: |
66-
rm -r _build/.doctrees
66+
# rm -r _build/.doctrees
6767
jb build lectures --path-output ./ -W --keep-going
6868
- name: Upload Execution Reports (HTML)
6969
uses: actions/upload-artifact@v2

environment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dependencies:
66
- anaconda=2022.10
77
- pip
88
- pip:
9-
- jupyter-book==0.13.2
10-
- quantecon-book-theme==0.3.2
11-
- sphinx-tojupyter==0.2.1
9+
- jupyter-book==0.14.0
10+
# - quantecon-book-theme==0.3.2
11+
# - sphinx-tojupyter==0.2.1
1212
- sphinxext-rediraffe==0.2.7
1313
- sphinx-exercise==0.4.1
1414
- sphinx-proof==0.1.3

lectures/_config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ sphinx:
3636
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx_proof] # sphinx_tojupyter
3737
config:
3838
html_favicon: _static/lectures-favicon.ico
39-
html_theme: quantecon_book_theme
39+
html_theme: sphinx_book_theme
4040
html_static_path: ['_static']
4141
html_theme_options:
42-
header_organisation_url: https://quantecon.org
43-
header_organisation: QuantEcon
42+
# header_organisation_url: https://quantecon.org
43+
# header_organisation: QuantEcon
4444
repository_url: https://github.com/QuantEcon/lecture-python-intro
45-
nb_repository_url: https://github.com/QuantEcon/lecture-python-intro.notebooks
46-
twitter: quantecon
47-
twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
48-
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
49-
description: This website presents a set of lectures on python programming for economics, designed and written by Thomas J. Sargent and John Stachurski.
50-
keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski
45+
# nb_repository_url: https://github.com/QuantEcon/lecture-python-intro.notebooks
46+
# twitter: quantecon
47+
# twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
48+
# og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
49+
# description: This website presents a set of lectures on python programming for economics, designed and written by Thomas J. Sargent and John Stachurski.
50+
# keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski
5151
# analytics:
5252
# google_analytics_id: UA-54984338-9
5353
launch_buttons:

lectures/inequality.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ plt.title("Gini coefficients of US income data")
506506
plt.show()
507507
```
508508

509+
**TEST ===>** Here is a {ref}`gini_us` and a {numref}`gini_us`
510+
509511
We see that, by this measure, inequality in wealth and income has risen
510512
substantially since 1980.
511513

0 commit comments

Comments
 (0)