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 0536420
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 @@ -4,6 +4,8 @@ nixfiles
My [NixOS][] configuration and assorted other crap, powered by [flakes][].
Clone to `/etc/nixos`.

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

CI checks ensure that code is formatted and passes linting. Run those locally
with:

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 0536420

Please sign in to comment.