Skip to content

Commit f23de31

Browse files
committed
Add a nix app for building and serving docs
1 parent 772aa5d commit f23de31

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

flake.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@
177177
type = "app";
178178
program = self.moduleTests.${system}.reportScript.outPath;
179179
};
180+
181+
# Run a docs server
182+
docsServe = {
183+
type = "app";
184+
program =
185+
(
186+
pkgs.writeShellScript "serve-docs" ''
187+
${pkgs.python3}/bin/python -m http.server -d ${self.packages.${system}.docs.html} 8080
188+
''
189+
)
190+
.outPath;
191+
};
180192
};
181193
}));
182194
}

0 commit comments

Comments
 (0)