set up mdbook

This adds some new tools in CI for lint the book and also sets up
automated deployment to GitLab Pages. Also adds a readme that suggests
reading the book, since that's where all the information will be.
This commit is contained in:
Charles Hall 2024-06-09 12:52:45 -07:00
parent e318dfcb3d
commit 9a5e552ca0
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
10 changed files with 68 additions and 0 deletions

View file

@ -1,6 +1,7 @@
stages:
- ci
- artifacts
- deploy
variables:
# Makes some things print in color
@ -48,3 +49,14 @@ artifacts:
image: nixos/nix:2.18.2
script:
- ./bin/nix-build-and-cache packages
pages:
stage: deploy
image: nixos/nix:2.18.2
script:
- direnv exec . mdbook build
artifacts:
paths:
- public
only:
- main