diff options
| author | Sergen Karaoglan <38327805+SergenKaraoglan@users.noreply.github.com> | 2023-04-27 18:43:51 +0100 |
|---|---|---|
| committer | Sergen Karaoglan <38327805+SergenKaraoglan@users.noreply.github.com> | 2023-04-28 15:11:48 +0100 |
| commit | d1f55e6b5313ec389f323a149b7cb4628e97a03a (patch) | |
| tree | 387824e1a6bfab204bcc9699d6fb4d8b3ce9382d | |
| parent | 990bbdc2bee264291843497cebe59f307c2ed86f (diff) | |
| download | rust-d1f55e6b5313ec389f323a149b7cb4628e97a03a.tar.gz rust-d1f55e6b5313ec389f323a149b7cb4628e97a03a.zip | |
run linkcheck in Remark CI
fix new lints link install nightly rust-docs run linkcheck without nightly toolchain remove nightly toolchain, add rust-docs component Test Remark Update basics.md Update basics.md Update basics.md update workflow add rust docs toolchain Update remark.yml workflow test manual test update book path add linkcheck book to CI Update lint_passes.md
| -rw-r--r-- | .github/workflows/remark.yml | 6 | ||||
| -rw-r--r-- | book/src/development/lint_passes.md | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/remark.yml b/.github/workflows/remark.yml index 116058b7c75..0bc2f49f5e9 100644 --- a/.github/workflows/remark.yml +++ b/.github/workflows/remark.yml @@ -36,6 +36,12 @@ jobs: - name: Check *.md files run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null + - name: Linkcheck book + run: | + rustup toolchain install nightly --component rust-docs + curl https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh -o linkcheck.sh + sh linkcheck.sh clippy --path ./book + - name: Build mdbook run: mdbook build book diff --git a/book/src/development/lint_passes.md b/book/src/development/lint_passes.md index c41b6ea0de8..621fc20972e 100644 --- a/book/src/development/lint_passes.md +++ b/book/src/development/lint_passes.md @@ -50,7 +50,7 @@ questions already, but the parser is okay with it. This is what we mean when we say `EarlyLintPass` deals with only syntax on the AST level. Alternatively, think of the `foo_functions` lint we mentioned in -[define new lints](define_lints.md#name-the-lint) chapter. +define new lints <!-- FIXME: add link --> chapter. We want the `foo_functions` lint to detect functions with `foo` as their name. Writing a lint that only checks for the name of a function means that we only |
