Skip to content

Commit 8187abd

Browse files
committed
Merge branch 'main' into ironing_out_off
2 parents ab0107a + 3484b05 commit 8187abd

30 files changed

Lines changed: 1506 additions & 903 deletions

.github/actions/generate-docs/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Generate documentation
22
description: Generate all documentation
3+
inputs:
4+
build:
5+
description: Just subcommand for `build-docs` to run
6+
default: all
37

48
runs:
59
using: composite
@@ -18,4 +22,4 @@ runs:
1822
enable-cache: true
1923
- name: Build documentation
2024
shell: bash
21-
run: just build-docs
25+
run: just build-docs::${{ inputs.build }}

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ updates:
99
directory: "/"
1010
schedule:
1111
interval: "weekly"
12+
groups:
13+
rust:
14+
patterns: ["*"]
1215
- package-ecosystem: "github-actions"
1316
directory: "/"
1417
schedule:
1518
interval: "weekly"
19+
groups:
20+
github-actions:
21+
patterns: ["*"]

.github/workflows/deploy-docs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v6
26+
with:
27+
fetch-tags: true
28+
fetch-depth: 0
29+
- name: Set user name and email for git
30+
run: |
31+
# Needed so we can apply patches
32+
git config --global user.name "GitHub Actions"
33+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2634
- uses: ./.github/actions/generate-docs
35+
with:
36+
build: all_with_old
2737
- name: Setup pages
2838
uses: actions/configure-pages@v5
2939
- name: Upload artifact

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ jobs:
1616
- uses: actions/checkout@v6
1717
with:
1818
persist-credentials: false
19-
- uses: actions/setup-python@v5
19+
- uses: actions/setup-python@v6
20+
- uses: actions-rust-lang/setup-rust-toolchain@v1
2021
- uses: browniebroke/pre-commit-autoupdate-action@main
21-
- uses: peter-evans/create-pull-request@v7
22+
- uses: peter-evans/create-pull-request@v8
2223
with:
2324
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
2425
branch: update/pre-commit-hooks

.lycheeignore

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

45
# Some of these links give a 404, even though they're generated in the API docs. No idea why.
56
^https://docs.rs/erased-serde/

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
files: /settings\.toml$
3232
types_or: [toml]
3333
- repo: https://github.com/igorshubovych/markdownlint-cli
34-
rev: v0.47.0
34+
rev: v0.48.0
3535
hooks:
3636
- id: markdownlint-fix
3737
- repo: https://github.com/pre-commit/mirrors-prettier
@@ -53,7 +53,7 @@ repos:
5353
- id: clippy
5454
args: ["--all-targets", "--", "-D", "warnings"]
5555
- repo: https://github.com/astral-sh/ruff-pre-commit
56-
rev: v0.15.4
56+
rev: v0.15.6
5757
hooks:
5858
- id: ruff-check
5959
types_or: [python]
@@ -65,12 +65,12 @@ repos:
6565
hooks:
6666
- id: nbstripout
6767
- repo: https://github.com/codespell-project/codespell
68-
rev: v2.4.1
68+
rev: v2.4.2
6969
hooks:
7070
- id: codespell
7171
args: [--ignore-words, .codespell_ignore.txt]
7272
exclude: \.svg$
73-
- repo: https://github.com/citation-file-format/cffconvert
74-
rev: b6045d78aac9e02b039703b030588d54d53262ac
73+
- repo: https://github.com/EnergySystemsModellingLab/cffconvert
74+
rev: 2.1.0
7575
hooks:
7676
- id: validate-cff

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ float-cmp = "0.10.0"
1919
itertools = "0.14.0"
2020
serde = {version = "1.0.228", features = ["derive", "rc"]}
2121
serde_string_enum = "0.2.1"
22-
tempfile = "3.26.0"
23-
toml = "1.0.3"
22+
tempfile = "3.27.0"
23+
toml = "1.0.6"
2424
unicase = "2.9.0"
2525
fern = {version = "0.7.1", features = ["chrono", "colored"]}
2626
chrono = "0.4"
@@ -37,10 +37,10 @@ strum = {version = "0.28.0", features = ["derive"]}
3737
documented = "0.9.2"
3838
dirs = "6.0.0"
3939
edit = "0.1.5"
40-
erased-serde = "0.4.9"
40+
erased-serde = "0.4.10"
4141

4242
[dev-dependencies]
43-
assert_cmd = "2.1.2"
43+
assert_cmd = "2.2.0"
4444
map-macro = "0.3.0"
4545
rstest = {version = "0.26.1", default-features = false, features = ["crate-name"]}
4646
yaml-rust2 = {version = "0.11.0", default-features = false}

build-docs.just

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Make rustdoc warnings fatal
22
export RUSTDOCFLAGS := "-D warnings"
33

4-
# Build all documentation
5-
all: cli-help file-format examples book api
4+
# Build all documentation, except old docs
5+
all: cli-help file-format examples versions book api
6+
7+
# Build all documentation, including old docs
8+
all_with_old: all old
69

710
# Build book
811
book:
@@ -33,3 +36,15 @@ file-format *ARGS:
3336
examples:
3437
@echo Building docs for examples
3538
@uv run docs/generate_example_docs.py
39+
40+
# Build TOC for old versions
41+
versions:
42+
@echo Building TOC for old versions of documentation
43+
@uv run docs/generate_versions_docs.py
44+
45+
# Build documentation for previous releases
46+
old:
47+
@# Clean output dir
48+
@rm -rf book/release
49+
50+
@uv run docs/build_old_docs.py

0 commit comments

Comments
 (0)