Skip to content

Commit

Permalink
fix: mdBook script
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Jan 4, 2024
1 parent 86be0ea commit ccb3727
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
packages = {
docs = pkgs.writeShellApplication {
name = "docs";
meta.description = ''Serve docs at http://localhost:8000/index.html'';
runtimeInputs = [ pkgs.webfs ];
text = ''webfsd -d -r "$(nix-build -A docs)"'';
meta.description = ''Run mdBook server at http://localhost:3000'';
runtimeInputs = [ pkgs.mdbook ];
text = ''
cd docs
cp ${devshell.modules-docs.markdown} src/modules_schema.md
mdbook serve
'';
};
bench = pkgs.writeShellApplication {
name = "benchmark";
Expand Down

0 comments on commit ccb3727

Please sign in to comment.