Skip to content

Commit 9cb300c

Browse files
committed
Merge remote-tracking branch 'official/master' into issue260
2 parents f641c7a + c0daf93 commit 9cb300c

File tree

138 files changed

+8695
-3153
lines changed

Some content is hidden

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

138 files changed

+8695
-3153
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,17 @@ jobs:
3333
run: cargo test --all
3434

3535
- name: Install mdbook
36-
run: cd book && curl -L https://github.com/rust-lang/mdBook/releases/download/v0.3.5/mdbook-v0.3.5-x86_64-unknown-linux-gnu.tar.gz | tar xz
36+
run: |
37+
cd book
38+
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.3.7/mdbook-v0.3.7-x86_64-unknown-linux-gnu.tar.gz | tar xz
39+
# Add the book directory to the $PATH
40+
echo "::add-path::$GITHUB_WORKSPACE/book"
41+
42+
- name: Install mdbook-toc
43+
run: cd book && curl -L https://github.com/badboy/mdbook-toc/releases/download/0.2.4/mdbook-toc-0.2.4-x86_64-unknown-linux-gnu.tar.gz | tar xz
44+
45+
- name: Install mdbook-mermaid
46+
run: cd book && curl -L https://github.com/badboy/mdbook-mermaid/releases/download/0.2.2/mdbook-mermaid-0.2.2-x86_64-unknown-linux-gnu.tar.gz | tar xz
3747

3848
- name: Execute tests for Chalk book
3949
run: cd book && ./mdbook test
@@ -48,7 +58,7 @@ jobs:
4858
run: |
4959
touch target/doc/.nojekyll
5060
curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy
51-
cp -r book/book target/doc/book
61+
cp -r book/book/html target/doc/book
5262
(cd target/doc && /tmp/deploy)
5363
env:
5464
GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
@@ -72,3 +82,26 @@ jobs:
7282
7383
- name: Check formatting of all crates in the workspace
7484
run: cargo fmt --all -- --check
85+
86+
mdbook-linkcheck:
87+
name: Book link check
88+
runs-on: ubuntu-latest
89+
if: github.ref != 'refs/heads/master'
90+
steps:
91+
- name: Checkout the source code
92+
uses: actions/checkout@master
93+
with:
94+
fetch-depth: 1
95+
96+
- name: Install mdbook
97+
run: |
98+
cd book
99+
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.3.7/mdbook-v0.3.7-x86_64-unknown-linux-gnu.tar.gz | tar xz
100+
# Add the book directory to the $PATH
101+
echo "::add-path::$GITHUB_WORKSPACE/book"
102+
103+
- name: Install mdbook-linkcheck
104+
run: cd book && curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.5.0/mdbook-linkcheck-v0.5.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
105+
106+
- name: Build Chalk book
107+
run: cd book && ./mdbook build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ TAGS
99
*~
1010
target
1111
chalk-parse/src/parser.rs
12+
13+
## IDE files
14+
/.idea/

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ of the terminology used in chalk.
9292
### Trait solving in rustc-dev-guide
9393
The rustc-dev-guide describes [new-style trait solving][trait-solving], which is slowly replacing the old trait resolution.
9494

95-
[trait-solving]: https://rustc-dev-guide.rust-lang.org/traits/index.html
95+
[trait-solving]: https://rustc-dev-guide.rust-lang.org/traits/chalk.html

0 commit comments

Comments
 (0)