Scalingo buildpack for mdBook static site generation.
Detects projects with a book.toml at the root, builds the book, and outputs to dist/.
This is a build-only buildpack: it compiles mdBook sources into static HTML in dist/. It must be paired with a serving buildpack.
.buildpacks:
https://github.com/betagouv/mdbook-buildpack.git
https://github.com/betagouv/oauth2-proxy-buildpack.git
Procfile:
web: bin/start_static_oauth2_proxy.sh
.buildpacks:
https://github.com/betagouv/mdbook-buildpack.git
https://github.com/Scalingo/nginx-buildpack.git
nginx.conf:
location / {
root /app/dist;
try_files $uri $uri/ /index.html;
}| Environment variable | Default | Description |
|---|---|---|
MDBOOK_VERSION |
0.5.2 |
mdBook release version to use |
MDBOOK_CHECKSUM |
(built-in) | SHA-256 checksum of the mdBook tarball (must match MDBOOK_VERSION) |
- Detect: looks for
book.tomlin the project root - Compile: downloads the mdBook binary (cached between builds, verified with SHA-256), runs
mdbook build --dest-dir dist