Commit Graph

38 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
Tshepang Mbambo ac84606523 toolchain version does not need to be specified
- Rust backcompat removes the need to specify the version here
- Using these commands can result in a needless toolchain getting
  downloaded, like in the case where user only has Nightly installed
2025-04-19 13:34:13 +02:00
Jakub Beránek 531e5f9d35
Set linkcheck in `ci.yml` 2025-03-19 17:25:07 +08:00
Jakub Beránek 52f86c7219 Fix posting message to Zulip 2025-02-25 18:56:14 +01: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
Jakub Beránek 6a5c177e46 Make the rustc-pull workflow run less often 2025-02-03 23:41:48 +01:00
Jakub Beránek f5d66eb2df Checkout repository sources in rustc-pull CI action
This is needed for the `gh` command to work.
2025-02-01 15:50:00 +01:00
Jakub Beránek 4755a326eb Pass `GITHUB_TOKEN` to Zulip CI step 2025-01-31 17:01:38 +01:00
Jakub Beránek c45e1e9a0e Run rustc-pull CI every day, don't notify when there is nothing to update 2025-01-30 20:00:39 +01:00
Jakub Beránek a0f5d80dfe
Fix rustc-pull CI's bash commands 2025-01-27 23:34:43 +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
Jakub Beránek f9cb2ec0e7 Send a message to Zulip when a sync finishes 2025-01-20 18:15:59 +01:00
许杰友 Jieyou Xu (Joe) a1e4273fd6
Merge pull request #2202 from Kobzol/pull-ci 2025-01-15 14:06:04 +08:00
Jakub Beránek 4c02798cb4 Add CI workflow for performing rustc-pull 2025-01-11 17:50:07 +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 a9d9d8d135 chore: Update `actions/github-script` to v6
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-12-08 18:59:18 -08: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
Noah Lev 8f61c9e7e9 Ensure date-check cron job is using latest stable Rust
This should prevent future failures like this one [1].

[1]: https://github.com/rust-lang/rustc-dev-guide/runs/4067460927?check_suite_focus=true
2021-11-04 09:33:03 -07: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
Camelid fe8a704c7e Implement date-checker
This tool looks for HTML comments like `<!-- date: 2021-01 -->` in each
Markdown source file and compiles a list of dates that are older than
six months. It then opens an issue with that list, with checkboxes for
each file and date. Note that it will only open an issue if there was at
least one date older than six months; it does nothing if the list is
empty.

This tool is automatically run monthly in a GitHub Actions workflow.
I have tested the tool on a private repo and confirmed that it works.
2021-02-03 19:29:07 -05:00