Skip to content

Commit

Permalink
Add a link to the documentation from the README
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Oct 16, 2023
1 parent 68793f8 commit 807aa37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ nix run .#fmt
nix run .#lint
```

See [the documentation](https://nixfiles.docs.barrucadu.co.uk).

[NixOS]: https://nixos.org
[flakes]: https://nixos.wiki/wiki/Flakes

Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
};
in
mkApp "documentation" ''
PATH=${with pkgs; lib.makeBinPath [ coreutils mdbook mdbook-admonish python3 ]}
PATH=${with pkgs; lib.makeBinPath [ coreutils gnused mdbook mdbook-admonish python3 ]}
export NIXOS_OPTIONS_JSON="${optionsDoc.optionsJSON}/share/doc/nixos/options.json"
${pkgs.lib.fileContents ./scripts/documentation.sh}
Expand Down
2 changes: 1 addition & 1 deletion scripts/documentation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pushd docs
mdbook-admonish install
popd

cp README.markdown docs/src/README.md
sed 's#See \[the documentation\].*##' < README.markdown > docs/src/README.md

python3 - <<'EOF' > docs/src/hosts.md
import os
Expand Down

0 comments on commit 807aa37

Please sign in to comment.