Skip to content

Commit 33fbbf5

Browse files
authored
ENH: add linkchecker (#115)
* ENH: add linkchecker * FIX: broken links
1 parent 12c8358 commit 33fbbf5

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

.github/workflows/linkcheck.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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.12"]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
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.12'
27+
environment-file: environment.yml
28+
activate-environment: quantecon
29+
- name: Download "build" folder (cache)
30+
uses: dawidd6/action-download-artifact@v7
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@v4
41+
if: failure()
42+
with:
43+
name: linkcheck-reports
44+
path: _build/linkcheck

lectures/kolmogorov_fwd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ $$
9292
where distributions are understood as row vectors.
9393

9494
Here's a visualization for the case $S = \{0, 1, 2\}$, so that $\dD$ is the [standard
95-
simplex](https://en.wikipedia.org/wiki/Simplex#The_standard_simplex) in $\RR^3$.
95+
simplex](https://en.wikipedia.org/wiki/Simplex) in $\RR^3$.
9696

9797
The initial condition is `` (0, 0, 1)`` and the Markov matrix is
9898

lectures/markov_prop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ In addition to connecting probabilities to the Markov matrix,
129129
{eq}`markovpropd` says that the process depends on its history only through
130130
the current state.
131131
132-
We [recall that](https://python.quantecon.org/finite_markov.html#Marginal-Distributions), if $X_t$
132+
We [recall that](https://python.quantecon.org/finite_markov.html#marginal-distributions), if $X_t$
133133
has distribution $\phi$, then $X_{t+1}$ has distribution $\phi P$.
134134
135135
Since $\phi$ is understood as a row vector, the meaning is

0 commit comments

Comments
 (0)