{ lib, stdenv, nix-gitignore, mdbook, python3, writeScript , deploymentOptionsMd ? null , metaOptionsMd ? null , colmena ? null # Full version , version ? if colmena != null then colmena.version else "unstable" # Whether this build is unstable , unstable ? version == "unstable" || lib.hasInfix "-" version }: let apiVersion = builtins.concatStringsSep "." (lib.take 2 (lib.splitString "." version)); redirectTemplate = lib.escapeShellArg ''