mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-26 17:23:01 +02:00
Run exerciser as mdbook renderer.
This commit is contained in:
parent
e204b5060f
commit
b6f5ba1af0
4
.github/workflows/install-mdbook/action.yml
vendored
4
.github/workflows/install-mdbook/action.yml
vendored
@ -18,3 +18,7 @@ runs:
|
|||||||
- name: Install mdbook-i18n-helpers
|
- name: Install mdbook-i18n-helpers
|
||||||
run: cargo install mdbook-i18n-helpers --locked --version 0.1.0
|
run: cargo install mdbook-i18n-helpers --locked --version 0.1.0
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Install exerciser
|
||||||
|
run: cargo install --path mdbook-exerciser --locked
|
||||||
|
shell: bash
|
||||||
|
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -50,13 +50,16 @@ jobs:
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Zip exercise templates
|
||||||
|
run: cd book/exerciser && zip --recurse-paths ../html/exercises.zip exercise-templates/
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v2
|
uses: actions/configure-pages@v2
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: book
|
path: book/html
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
|
@ -30,6 +30,7 @@ The course is built using a few tools:
|
|||||||
- [mdbook](https://github.com/rust-lang/mdBook)
|
- [mdbook](https://github.com/rust-lang/mdBook)
|
||||||
- [mdbook-svgbob](https://github.com/boozook/mdbook-svgbob)
|
- [mdbook-svgbob](https://github.com/boozook/mdbook-svgbob)
|
||||||
- [mdbook-i18n-helpers](TRANSLATIONS.md#i18n-helpers)
|
- [mdbook-i18n-helpers](TRANSLATIONS.md#i18n-helpers)
|
||||||
|
- [exerciser](exerciser/)
|
||||||
|
|
||||||
Install these tools with:
|
Install these tools with:
|
||||||
|
|
||||||
@ -37,6 +38,7 @@ Install these tools with:
|
|||||||
$ cargo install mdbook
|
$ cargo install mdbook
|
||||||
$ cargo install mdbook-svgbob
|
$ cargo install mdbook-svgbob
|
||||||
$ cargo install mdbook-i18n-helpers
|
$ cargo install mdbook-i18n-helpers
|
||||||
|
$ cargo install --path mdbook-exerciser
|
||||||
```
|
```
|
||||||
|
|
||||||
Then run
|
Then run
|
||||||
|
@ -48,3 +48,6 @@ editable = true
|
|||||||
"generics/closures.html" = "traits/closures.html"
|
"generics/closures.html" = "traits/closures.html"
|
||||||
"generics/impl-trait.html" = "traits/impl-trait.html"
|
"generics/impl-trait.html" = "traits/impl-trait.html"
|
||||||
"generics/trait-bounds.html" = "traits/trait-bounds.html"
|
"generics/trait-bounds.html" = "traits/trait-bounds.html"
|
||||||
|
|
||||||
|
[output.exerciser]
|
||||||
|
output-directory = "exercise-templates"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user