Rust’s mdBook is a static site generator for documentation and book-like websites. Deploying your mdBook site on Runway is as easy as:
runway app create && runway app deploy
Run these commands inside your repository and Runway will build and deploy your website (with Nginx).
To use a specific mdBook version, set the following:
runway app config set BP_RUNWAY_STATIC_MDBOOK_VERSION=0.5.2
[build]
[[build.env]]
name = "BP_RUNWAY_STATIC_MDBOOK_VERSION"
value = "0.5.2"
To configure Nginx, add an nginx.conf file to the root of your repository with your server configuration. To see an example of what is needed, you can check out the web server config recipe.