doc: add command to continuously rebuild documentation
This commit is contained in:
parent
c9c5f52238
commit
7b5c3ab711
2 changed files with 17 additions and 0 deletions
|
|
@ -461,6 +461,13 @@ nix flake check
|
|||
nix build .#manualHtml
|
||||
```
|
||||
|
||||
To continuously rebuild the documentation of file change, run the following command.
|
||||
To exit, you'll need to do Ctrl-C twice in a row.
|
||||
|
||||
```bash
|
||||
nix run .#manualHtml-watch
|
||||
```
|
||||
|
||||
### Iterative Development Approach {#iterative-development-approach}
|
||||
|
||||
1. **Start with basic functionality** - get core service working
|
||||
|
|
|
|||
10
flake.nix
10
flake.nix
|
|
@ -208,6 +208,16 @@
|
|||
'';
|
||||
});
|
||||
|
||||
packages.manualHtml-watch = pkgs.writeShellApplication {
|
||||
name = "manualHtml-watch";
|
||||
text = ''
|
||||
while sleep 1; do
|
||||
find . -name "*.nix" -o -name "*.md" \
|
||||
| entr -d sh -c '(nix run --offline .#update-redirects && nix build --offline .#manualHtml || :)'
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
||||
lib = (pkgs.callPackage ./lib { }) // {
|
||||
test = pkgs.callPackage ./test/common.nix { };
|
||||
contracts = pkgs.callPackage ./modules/contracts {
|
||||
|
|
|
|||
Loading…
Reference in a new issue