Skip to content

Commit e4b1990

Browse files
authored
Merge pull request #1147 from EnergySystemsModellingLab/fix-broken-links
Fix broken link checker workflow
2 parents 9e8474c + 237de2b commit e4b1990

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/check-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
id: lychee
2020
uses: lycheeverse/lychee-action@v2
2121
with:
22-
args: "--verbose --no-progress --accept 200,203,503 --exclude-path ^target './**/*.md' './**/*.html'"
22+
args: "--verbose --no-progress --accept 200,203,503 --exclude-path ^target --exclude-path ^book/404.html$ './**/*.md' './**/*.html'"

.lycheeignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# For some reason these spurious links appear in some cargo doc-generated files
22
^file://.+/MUSE2/book/api/index\.html$
33

4+
# Some of these links give a 404, even though they're generated in the API docs. No idea why.
5+
^https://docs.rs/erased-serde/
6+
47
# Times out on GitHub runner
58
^http://www.adobe.com
69

docs/model/investment.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<!-- markdownlint-disable MD049 -->
44

55
This section details the investment and asset retention decision process, which is applied within
6-
step 2 of the [overall MUSE2 workflow]. This process determines which new assets to build and
7-
which existing assets to retain to meet system needs over time. In the overall workflow, dispatch
8-
optimisation is used to identify *physical needs* by quantifying demand profiles for commodities of
9-
interest.
6+
step 2 of the [overall MUSE2 workflow][framework-overview]. This process determines which new assets
7+
to build and which existing assets to retain to meet system needs over time. In the overall
8+
workflow, dispatch optimisation is used to identify *physical needs* by quantifying demand profiles
9+
for commodities of interest.
1010

1111
## Commodity prices
1212

@@ -23,7 +23,7 @@ the preceding MSY. When the `pricing_strategy` option is set to `scarcity_adjust
2323
shadow prices for each commodity adjusted to remove the impact of binding capacity constraints.
2424

2525
Note: there is an option to iterate over each year so that investment decisions are based on
26-
equilibrium prices in the _current year_, in what's referred to as the "[ironing-out loop]".
26+
equilibrium prices in the _current year_, in what's referred to as the "[ironing-out loop][framework-overview]".
2727
In this case, \\( \lambda\_{c,r,t} \\) will reflect prices from previous iteration of the
2828
ironing-out loop.
2929

@@ -203,6 +203,5 @@ For each asset option:
203203
AFC \* cap_r + \sum_{t} act_t \* AC_t \\)), divided by the annual output
204204
\\( \sum_t act_t \\).
205205

206-
[overall MUSE2 workflow]: ./README.md#framework-overview
206+
[framework-overview]: https://energysystemsmodellinglab.github.io/MUSE2/model/index.html#framework-overview
207207
[Dispatch Optimisation Formulation]: ./dispatch_optimisation.md
208-
[ironing-out loop]: ./README.md#framework-overview

0 commit comments

Comments
 (0)