Skip to content

Commit 83e42a2

Browse files
committed
Auto merge of rust-lang#10630 - flip1995:book-link-fix, r=xFrednet
Fix links in Clippy book Links to README.md files must actually be links to index.md files, because of the inner workings of `mdbook`. Also use the latest mdbook version in CI. --- Blocks rust-lang#110003 (comment) changelog: none
2 parents 3b5b2ed + 0266a9e commit 83e42a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/remark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install mdbook
3030
run: |
3131
mkdir mdbook
32-
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.18/mdbook-v0.4.18-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
32+
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.28/mdbook-v0.4.28-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
3333
echo `pwd`/mdbook >> $GITHUB_PATH
3434
3535
# Run

book/src/development/basics.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This document explains the basics for hacking on Clippy. Besides others, this
44
includes how to build and test Clippy. For a more in depth description on the
55
codebase take a look at [Adding Lints] or [Common Tools].
66

7-
[Adding Lints]: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/adding_lints.md
8-
[Common Tools]: https://github.com/rust-lang/rust-clippy/blob/master/book/src/development/common_tools_writing_lints.md
7+
[Adding Lints]: adding_lints.md
8+
[Common Tools]: common_tools_writing_lints.md
99

1010
- [Basics for hacking on Clippy](#basics-for-hacking-on-clippy)
1111
- [Get the Code](#get-the-code)

book/src/usage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ clippy-driver --edition 2018 -Cpanic=abort foo.rs
148148
> that are not optimized as expected, for example.
149149
150150
[Installation]: installation.md
151-
[CI]: continuous_integration/README.md
151+
[CI]: continuous_integration/index.md

0 commit comments

Comments
 (0)