Update book toml and add GitLab CI support

This commit is contained in:
James Skemp 2021-10-31 13:25:32 -05:00
parent 49e148a697
commit 88c657dd6d
2 changed files with 26 additions and 0 deletions

21
.gitlab-ci.yml Normal file
View File

@ -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

View File

@ -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"