Update book toml and add GitLab CI support
This commit is contained in:
parent
49e148a697
commit
88c657dd6d
|
@ -0,0 +1,21 @@
|
|||
stages:
|
||||
- deploy
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
image: rust:latest
|
||||
variables:
|
||||
CARGO_HOME: $CI_PROJECT_DIR/cargo
|
||||
before_script:
|
||||
- export PATH="$PATH:$CARGO_HOME/bin"
|
||||
- mdbook --version || cargo install --debug mdbook
|
||||
script:
|
||||
- mdbook build -d public
|
||||
only:
|
||||
- main
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
cache:
|
||||
paths:
|
||||
- $CARGO_HOME/bin
|
|
@ -4,3 +4,8 @@ language = "en"
|
|||
multilingual = false
|
||||
src = "src"
|
||||
title = "Raspberry Pi Notes"
|
||||
|
||||
[output.html]
|
||||
git-repository-url = "https://gitlab.com/strivinglife/book-raspberry-pi"
|
||||
edit-url-template = "https://gitlab.com/strivinglife/book-raspberry-pi/-/edit/main/{path}"
|
||||
git-repository-icon = "fa-gitlab"
|
||||
|
|
Loading…
Reference in New Issue