Skip to content

Commit ef751e6

Browse files
authored
Merge upstream changes (#205)
* Merge upstream changes * Fix spelling errors * Fix "broken" "references" * Disable link checker for now * Disable ref checker too * Bump mdbook-quiz and mdbook-aquascope versions
1 parent df8e2e4 commit ef751e6

File tree

387 files changed

+7160
-2840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+7160
-2840
lines changed
File renamed without changes.

.github/workflows/main.yml

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
env:
1010
RUST_LIB_BACKTRACE: 1
1111
RAYON_NUM_THREADS: 1
12-
MDBOOK_QUIZ_VERSION: 0.3.3
13-
AQUASCOPE_VERSION: 0.3.1
12+
MDBOOK_QUIZ_VERSION: 0.3.6
13+
AQUASCOPE_VERSION: 0.3.2
1414
AQUASCOPE_TOOLCHAIN: nightly-2023-08-25
1515

1616
jobs:
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: actions/setup-node@v3
2424
with:
25-
node-version: 16
25+
node-version: 20
2626

2727
- uses: pnpm/action-setup@v2
2828
with:
@@ -34,8 +34,8 @@ jobs:
3434
- name: Install Rust
3535
run: |
3636
rustup set profile minimal
37-
rustup toolchain install 1.70 -c rust-docs
38-
rustup default 1.70
37+
rustup toolchain install 1.79 -c rust-docs
38+
rustup default 1.79
3939
4040
- name: Install Depot
4141
run: curl https://raw.githubusercontent.com/cognitive-engineering-lab/depot/main/scripts/install.sh | sh
@@ -66,7 +66,53 @@ jobs:
6666
run: |
6767
cd js-extensions
6868
pnpm init-repo
69+
70+
- name: Run `tools` package tests
71+
run: |
72+
cargo test
73+
74+
- name: Run `mdbook-trpl-note` package tests
75+
working-directory: packages/mdbook-trpl-note
76+
run: |
77+
cargo test
6978
79+
- name: Run `mdbook-trpl-listing` package tests
80+
working-directory: packages/mdbook-trpl-listing
81+
run: |
82+
cargo test
83+
84+
- name: Install mdbook-trpl-note
85+
run: cargo install --path packages/mdbook-trpl-note
86+
- name: Install mdbook-trpl-listing
87+
run: cargo install --path packages/mdbook-trpl-listing
88+
- name: Install aspell
89+
run: sudo apt-get install aspell
90+
- name: Install shellcheck
91+
run: sudo apt-get install shellcheck
92+
- name: Report versions
93+
run: |
94+
rustup --version
95+
rustc -Vv
96+
mdbook --version
97+
aspell --version
98+
shellcheck --version
99+
- name: Shellcheck
100+
run: find ci tools -name '*.sh' | xargs shellcheck
101+
- name: Spellcheck
102+
run: bash ci/spellcheck.sh list
103+
- name: Lint for local file paths
104+
run: |
105+
mdbook build
106+
cargo run --bin lfp src
107+
# - name: Validate references
108+
# run: bash ci/validate.sh
109+
# - name: Check for broken links
110+
# run: |
111+
# curl -sSLo linkcheck.sh \
112+
# https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
113+
# # Cannot use --all here because of the generated redirect pages aren't available.
114+
# sh linkcheck.sh book
115+
70116
- name: Run mdbook tests
71117
run: mdbook test
72118

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ tmp
77

88
/src/quiz
99
/src/aquascope
10-
.aquascope-cache
10+
.aquascope-cache
11+
.nova

ADMIN_TASKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extracted into a file. To do that:
6868
- If you only want to show part of the code in the file, use anchor comments
6969
(`// ANCHOR: some_tag` and `// ANCHOR_END: some_tag`) to mark the parts of
7070
the file you want to show.
71-
- For Rust code, use the `{{#rustdoc_include [fileame:some_tag]}}` directive
71+
- For Rust code, use the `{{#rustdoc_include [filename:some_tag]}}` directive
7272
within the code blocks in the text. The `rustdoc_include` directive gives the
7373
code that doesn't get displayed to `rustdoc` for `mdbook test` purposes.
7474
- For anything else, use the `{{#include [filename:some_tag]}}` directive.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ a new language! We're waiting on [mdbook support] for multiple languages
7070
before we merge any in, but feel free to start!
7171

7272
[Translations]: https://github.com/rust-lang/book/issues?q=is%3Aopen+is%3Aissue+label%3ATranslations
73-
[mdbook support]: https://github.com/rust-lang-nursery/mdBook/issues/5
73+
[mdbook support]: https://github.com/rust-lang/mdBook/issues/5

0 commit comments

Comments
 (0)