Skip to content

Commit e49728b

Browse files
mmckyHengchengZhangjstacthomassargent30tom-fredricksonDM
authored
ENH: enable linkchecker (#174)
* ENH: enable linkchecker * Fix typo * misc (#254) * Tom's edit of equalizing diff lecture June 28 * Tom's first edit of day of cons smoothing lecture * Tom's second edit of June 28 of consumption-smoothing lecture * Fix userwarning * Tom's June 29 edits of equalizing difference lecture * Tom's edits of consumption smoothing lecture, June 29 * Updates * Updates * Updates * Updates * Tom's June 30 edit of consum smoothing lecture * MAINT: review workflows and actions (#251) * MAINT: review workflows and actions * Fix Syntax for PDF * Update cache and publish workflows * enable some mathjax macros * FIX: fail the cache on execution issue * FIX: heavy_tails * Add ignored link * Fix broken links * update reference to QuantEcon.py * fix all instances --------- Co-authored-by: hengchengzhang <[email protected]> Co-authored-by: John Stachurski <[email protected]> Co-authored-by: thomassargent30 <[email protected]> Co-authored-by: Thomas Sargent <[email protected]>
1 parent 7777655 commit e49728b

File tree

6 files changed

+51
-49
lines changed

6 files changed

+51
-49
lines changed

.github/workflows/linkcheck.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
# name: Link Checker [Anaconda, Linux]
2-
# on:
3-
# pull_request:
4-
# types: [opened, reopened]
5-
# schedule:
6-
# # UTC 12:00 is early morning in Australia
7-
# - cron: '0 12 * * *'
8-
# jobs:
9-
# link-check-linux:
10-
# name: Link Checking (${{ matrix.python-version }}, ${{ matrix.os }})
11-
# runs-on: ${{ matrix.os }}
12-
# strategy:
13-
# fail-fast: false
14-
# matrix:
15-
# os: ["ubuntu-latest"]
16-
# python-version: ["3.9"]
17-
# steps:
18-
# - name: Checkout
19-
# uses: actions/checkout@v2
20-
# - name: Setup Anaconda
21-
# uses: conda-incubator/setup-miniconda@v2
22-
# with:
23-
# auto-update-conda: true
24-
# auto-activate-base: true
25-
# miniconda-version: 'latest'
26-
# python-version: 3.9
27-
# environment-file: environment.yml
28-
# activate-environment: quantecon
29-
# - name: Download "build" folder (cache)
30-
# uses: dawidd6/action-download-artifact@v2
31-
# with:
32-
# workflow: cache.yml
33-
# branch: main
34-
# name: build-cache
35-
# path: _build
36-
# - name: Link Checker
37-
# shell: bash -l {0}
38-
# run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
39-
# - name: Upload Link Checker Reports
40-
# uses: actions/upload-artifact@v2
41-
# if: failure()
42-
# with:
43-
# name: linkcheck-reports
44-
# path: _build/linkcheck
1+
name: Link Checker [Anaconda, Linux]
2+
on:
3+
pull_request:
4+
types: [opened, reopened]
5+
schedule:
6+
# UTC 12:00 is early morning in Australia
7+
- cron: '0 12 * * *'
8+
jobs:
9+
link-check-linux:
10+
name: Link Checking (${{ matrix.python-version }}, ${{ matrix.os }})
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: ["ubuntu-latest"]
16+
python-version: ["3.10"]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Setup Anaconda
21+
uses: conda-incubator/setup-miniconda@v2
22+
with:
23+
auto-update-conda: true
24+
auto-activate-base: true
25+
miniconda-version: 'latest'
26+
python-version: "3.10"
27+
environment-file: environment.yml
28+
activate-environment: quantecon
29+
- name: Download "build" folder (cache)
30+
uses: dawidd6/action-download-artifact@v2
31+
with:
32+
workflow: cache.yml
33+
branch: main
34+
name: build-cache
35+
path: _build
36+
- name: Link Checker
37+
shell: bash -l {0}
38+
run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
39+
- name: Upload Link Checker Reports
40+
uses: actions/upload-artifact@v2
41+
if: failure()
42+
with:
43+
name: linkcheck-reports
44+
path: _build/linkcheck

lectures/_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ latex:
3737
sphinx:
3838
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx_proof, sphinx_tojupyter]
3939
config:
40+
# false-positive links
41+
linkcheck_ignore: ['https://doi.org/https://doi.org/10.2307/1235116']
4042
# myst-nb config
4143
nb_render_image_options:
4244
width: 80%

lectures/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ In particular, we sincerely thank and give credit to
6060

6161
- [Aakash Gupta](https://github.com/AakashGfude)
6262
- [Shu Hu](https://github.com/shlff)
63-
- [Jiacheng Li](https://[email protected])
63+
- Jiacheng Li
6464
- [Smit Lunagariya](https://github.com/Smit-create)
6565
- [Matthew McKay](https://github.com/mmcky)
6666
- [Maanasee Sharma](https://github.com/maanasee)

lectures/eigen_I.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ The vector fields explain why we observed the trajectories of the vector $v$ mul
12681268

12691269
The pattern demonstrated here is because we have complex eigenvalues and eigenvectors.
12701270

1271-
We can plot the complex plane for one of the matrices using `Arrow3D` class retrieved from [stackoverflow](https://stackoverflow.com/questions/22867620/putting-arrowheads-on-vectors-in-matplotlibs-3d-plot).
1271+
We can plot the complex plane for one of the matrices using `Arrow3D` class retrieved from [stackoverflow](https://stackoverflow.com/questions/22867620/putting-arrowheads-on-vectors-in-a-3d-plot).
12721272

12731273
```{code-cell} ipython3
12741274
---

lectures/markov_chains_I.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ always close to 0.25 (for the `P` matrix above).
462462

463463
### Using QuantEcon's routines
464464

465-
QuantEcon.py has routines for handling Markov chains, including simulation.
465+
[QuantEcon.py](http://quantecon.org/quantecon-py) has routines for handling Markov chains, including simulation.
466466

467467
Here's an illustration using the same $P$ as the preceding example
468468

@@ -749,7 +749,7 @@ Not surprisingly it tends to zero as $\beta \to 0$, and to one as $\alpha \to 0$
749749

750750
### Calculating stationary distributions
751751

752-
A stable algorithm for computing stationary distributions is implemented in QuantEcon.py.
752+
A stable algorithm for computing stationary distributions is implemented in [QuantEcon.py](http://quantecon.org/quantecon-py).
753753

754754
Here's an example
755755

lectures/markov_chains_II.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ The diagram of the Markov chain shows that it is **irreducible**
361361

362362
In fact it has a periodic cycle --- the state cycles between the two states in a regular way.
363363

364-
This is called [periodicity](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/16%3A_Markov_Processes/16.05%3A_Periodicity_of_Discrete-Time_Chains#:~:text=A%20state%20in%20a%20discrete,limiting%20behavior%20of%20the%20chain.).
364+
This is called [periodicity](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/16%3A_Markov_Processes/16.05%3A_Periodicity_of_Discrete-Time_Chains).
365365

366366
It is still irreducible so ergodicity holds.
367367

0 commit comments

Comments
 (0)