switch to mkdocs

This commit is contained in:
zowoq 2023-04-26 16:19:18 +10:00
parent 9352367df5
commit 6ba43ec90a
12 changed files with 182 additions and 173 deletions

View file

@ -62,7 +62,21 @@
./shell.nix
];
perSystem.treefmt.imports = [ ./treefmt.nix ];
hercules-ci.github-pages.branch = "master";
perSystem = { config, pkgs, ... }: {
treefmt.imports = [ ./treefmt.nix ];
packages.pages = pkgs.runCommand "pages"
{
buildInputs = [ pkgs.python3.pkgs.mkdocs-material ];
} ''
cp -r ${pkgs.lib.cleanSource ./.}/* .
mkdocs build --strict --site-dir $out
'';
hercules-ci.github-pages.settings.contents = config.packages.pages;
};
flake.nixosConfigurations =
let