File tree Expand file tree Collapse file tree 5 files changed +31
-29
lines changed Expand file tree Collapse file tree 5 files changed +31
-29
lines changed Original file line number Diff line number Diff line change 2727 packages = with pkgs ; [
2828 just
2929 ] ;
30+ shellHook = ''
31+ echo
32+ echo "🍎🍎 Run 'just <recipe>' to get started"
33+ just
34+ '' ;
3035 } ;
3136 } ;
3237 } ;
Original file line number Diff line number Diff line change 3737 } ;
3838 formatter = pkgs . nixpkgs-fmt ;
3939 checks . linkcheck = inputs' . flake-parts-website . checks . linkcheck ;
40+ packages . flake-parts = inputs' . flake-parts-website . packages . default ;
41+ apps . flake-parts . program = pkgs . writeShellApplication {
42+ name = "docs-flake-parts" ;
43+ meta . description = "Open flake.parts docs, previewing local haskell-flake version" ;
44+ text = ''
45+ DOCSHTML="${ self' . packages . flake-parts } /options/haskell-flake.html"
46+
47+ if [ "$(uname)" == "Darwin" ]; then
48+ open $DOCSHTML
49+ else
50+ if type xdg-open &>/dev/null; then
51+ xdg-open $DOCSHTML
52+ fi
53+ fi
54+ '' ;
55+ } ;
4056 } ;
4157 } ;
4258}
Original file line number Diff line number Diff line change 3030 dir = "doc" ;
3131 overrideInputs = {
3232 "haskell-flake" = ./. ;
33+ # TODO: It is better to add a update-flake-lock.yaml CI action to
34+ # update this just like ./example inputs.
3335 "flake-parts-website" = "github:hercules-ci/flake.parts-website" ;
3436 } ;
3537 } ;
Original file line number Diff line number Diff line change @@ -12,3 +12,11 @@ check:
1212# Auto-format the Nix files in project tree
1313fmt :
1414 treefmt
15+
16+ # Open haskell-flake docs live preview
17+ docs :
18+ cd ./ doc && nix run
19+
20+ # Open flake.parts docs, previewing local haskell-flake version
21+ docs-flake-parts :
22+ cd ./ doc && nix run .#flake-parts
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments