Commit Graph

25 Commits

Author SHA1 Message Date
Eric Huss 5df71be99d Update mdbook to 0.4.48
This updates to the latest version of mdbook which has had a variety
of fixes of new features since the last update.

Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0448
2025-04-28 11:41:17 -07:00
Jakub Beránek 531e5f9d35
Set linkcheck in `ci.yml` 2025-03-19 17:25:07 +08:00
Martin Liska 59f65a3c24 Bump mdbook-linkcheck2 dependency version 2025-02-16 13:21:34 +01:00
Noah Lev 6ae7ec5386
Merge pull request #2246 from marxin/CI-more-ofter
Run CI multiple times a day
2025-02-15 17:06:46 -05:00
Martin Liska 2ceea672a0 Fix CI schedule 2025-02-15 23:03:42 +01:00
Martin Liska e7e6e97524 Start using latest release where -f checks all local links 2025-02-14 07:26:43 +01:00
Martin Liska 5a9d7654d2 Run CI multiple times a day 2025-02-12 07:46:09 +01:00
Martin Liska adb70de1c4 CI: use key-restore for cache GH action
It seems one can't overwrite a cache entry:
```
Failed to save: Unable to reserve cache with key linkcheck--0.8.1, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/master, Key: linkcheck--0.8.1, Version: 33f8fd511bed9c91c40778bc5c27cb58425caa894ab50f9c5705d83cb78660e0
Warning: Cache save failed.
```

A proper solution is to use `restore-keys`:
https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
2025-01-25 18:22:00 +01:00
Noah Lev bb0051a006 ci: Remove incorrect use of `continue-on-error`
This will cause the CI build to be marked successful even if the build
failed. Instead, use `if: '!cancelled()'` to always save the cache
(except when the job is cancelled), even if the linkcheck failed.

See https://stackoverflow.com/a/58859404 for more.
2025-01-09 13:37:03 -08:00
Martin Liska 10c76e1bfc Update key 2025-01-08 17:07:08 +01:00
Martin Liska 57d1e6b068 Save linkcheck cache always 2025-01-08 17:05:11 +01:00
Noah Lev d85deb6064 Opt into, rather than out of, linkcheck (#2180)
This makes it less of a hassle to render the book locally.
2024-12-30 17:22:22 +08:00
Martin Liška 0d9aca4ccd Start using mdbook-linkcheck2 (#2103) 2024-12-28 15:00:32 -08:00
Nilstrieb 023c0f2592 Delete length check (#1952)
It's super annoying to be forced to use this bad convention, and
apparently everyone agrees. The only reason no improvements have been
done is because those were blocked on writing a better checker.

I strongly believe that no checker is better than a bad checker, so
let's just delete it in the meantime. I kindly asked anyone who sees
this to complain about overly long sentences in review in the future, I
think we can make this turn out fine.
2024-03-30 17:46:30 +01:00
Yuki Okushi 4cd90263f0 Upgrade actions to use Node.js v20 (#1863) 2024-01-28 19:45:18 -03:00
jyn c6cd62cf77 Various improvements to `check_line_lengths.sh` (#1667) 2023-04-09 12:08:46 +09:00
Noah Lev 491365bd3e Bump dependencies to fix CI (#1610) 2023-02-18 09:37:19 +09:00
Yuki Okushi e37b9440ed Use ephemeral PAT for linkcheck
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-01-28 20:39:19 +02:00
Yuki Okushi d9b0233bb8 Update mdbook and its extensions versions
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-09-22 10:48:08 +02:00
Yuki Okushi 2f3e76a49c Remove unmaintained action
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-09-22 10:48:08 +02:00
Yuki Okushi d7d01ece44 Update some actions versions
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-09-22 10:48:08 +02:00
Niko Matsakis f3cac7c8fc add mdbook-mermaid 2022-07-17 23:34:12 +02:00
Tshepang Lekhonkhobe dfdff33685 update mdbook version to latest
v0.4.7 didn't have the feature to allow this

See https://github.com/rust-lang/rustc-dev-guide/pull/1180#issuecomment-899128718
2021-08-15 20:47:42 -05:00
Yuki Okushi 5385f4f067 Trigger GHA only on the original repo 2021-04-27 13:15:39 -04:00
Yuki Okushi 6dab96d7ea Switch from Travis to GHA (#1073) 2021-03-10 11:51:56 -05:00