Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rust-101
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orestis.malaspin
rust-101
Commits
5c5ef885
Commit
5c5ef885
authored
1 year ago
by
orestis.malaspin
Browse files
Options
Downloads
Plain Diff
Merge branch 'pdf' into 'main'
Add module to build book pdf. See merge request
!66
parents
873bc8c4
6e910bfe
No related branches found
Branches containing commit
No related tags found
1 merge request
!66
Add module to build book pdf.
Pipeline
#29466
passed
1 year ago
Stage: test
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+6
-1
6 additions, 1 deletion
.gitlab-ci.yml
README.md
+10
-0
10 additions, 0 deletions
README.md
book/book.toml
+5
-0
5 additions, 0 deletions
book/book.toml
with
21 additions
and
1 deletion
.gitlab-ci.yml
+
6
−
1
View file @
5c5ef885
...
...
@@ -12,7 +12,12 @@ before_script:
-
curl -sSL https://github.com/ferrous-systems/mdslides/releases/download/v0.3.0/mdslides-v0.3.0-x86_64-unknown-linux-gnu.tar.xz | tar -xJ "mdslides-v0.3.0-x86_64-unknown-linux-gnu/mdslides" && mv mdslides-v0.3.0-x86_64-unknown-linux-gnu/mdslides $HOME/.cargo/bin/ && rm -r mdslides-v0.3.0-x86_64-unknown-linux-gnu
-
rustup component add rustfmt
-
rustup component add clippy
-
export PATH=$PATH:$HOME/.cargo/bin
-
curl -L https://github.com/HollowMan6/mdbook-pdf/releases/download/v0.1.8/mdbook-pdf-v0.1.8-x86_64-unknown-linux-gnu -o $HOME/.cargo/bin/mdbook-pdf
-
chmod +x $HOME/.cargo/bin/mdbook-pdf
-
mkdir -p $HOME/bin
-
curl -L https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o $HOME/bin/chrome.deb
-
apt-get install -y $HOME/bin/chrome.deb
-
export PATH=$PATH:$HOME/.cargo/bin:$HOME/bin
##
## Install ssh-agent if not already installed, it is required by Docker.
##
...
...
This diff is collapsed.
Click to expand it.
README.md
+
10
−
0
View file @
5c5ef885
...
...
@@ -38,6 +38,7 @@ Pour ce faire il faut installer plusieurs programmes:
*
[
mdbook
](
https://rust-lang.github.io/mdBook/
)
pour le livre et les slides,
*
[
modbook-linkcheck
](
https://github.com/Michael-F-Bryan/mdbook-linkcheck
)
pour la vérification des liens su livre,
*
[
mdslides
](
https://github.com/ferrous-systems/mdslides/
)
, uniquement pour les slides.
*
[
mdbook-pdf
](
https://github.com/HollowMan6/mdbook-pdf
)
, pour générer le cours au format pdf.
### Installation de `mdbook`
...
...
@@ -80,6 +81,15 @@ $ ./build_slides.sh
```
L'index des slides se trouve ensuite dans
`slides/index.html`
.
### Installation de `mdbook-pdf`
Pour installer
`mdbook-pdf`
depuis la dernière version de
<https://crates.io/>
```
bash
cargo
install
mdbook-pdf
```
`mdbook-pdf`
nécessite un navigateur de type chromium (Google Chrome / Chromium / Microsoft Edge) installé.
## Inspiration
L'inspiration de ce cours est tirée de trois cours qui ont l'air très bons:
...
...
This diff is collapsed.
Click to expand it.
book/book.toml
+
5
−
0
View file @
5c5ef885
...
...
@@ -11,6 +11,11 @@ mathjax-support = true
[output.html.playground]
editable
=
true
[output.html.print]
enable
=
true
[output.pdf]
[output.linkcheck]
# Should we check links on the internet? Enabling this option adds a
# non-negligible performance impact
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment