extremely hacky first pass at autogenerated module docs

This commit is contained in:
Daniel Barlow
2023-08-06 22:25:37 +01:00
parent 2414dd4b55
commit f3e32115ee
4 changed files with 139 additions and 7 deletions

3
ci.nix
View File

@@ -26,9 +26,10 @@ let
}).buildEnv;
doc = pkgs.stdenv.mkDerivation {
name = "liminix-doc";
nativeBuildInputs = with pkgs; [ gnumake sphinx ];
nativeBuildInputs = with pkgs; [ gnumake sphinx fennel luaPackages.dkjson ];
src = ./doc;
buildPhase = ''
cat ${(import ./doc/extract-options.nix).doc} | fennel --correlate parse-options.fnl > modules.rst
make html
'';
installPhase = ''