Skip to content

Commit

Permalink
Merge pull request #166 from taliyahwebb/docs-fix
Browse files Browse the repository at this point in the history
fix(docs): fixes nix build .#docs
  • Loading branch information
dpc committed Aug 7, 2024
2 parents ead2401 + 91f1669 commit 54f3fd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ let

optionsDocMd =
pkgs.runCommand "options-doc.md" { } ''
cat ${optionsDoc.optionsCommonMark} >> $out
mkdir $out -p
cat ${optionsDoc.optionsCommonMark} >> $out/options-doc.md
'';
in
lib.makeScope pkgs.newScope (self:
Expand Down Expand Up @@ -72,7 +73,7 @@ in
# symlink our generated docs into the correct folder before generating
buildPhase = ''
rm -f ./nixos-options.md
ln -s ${optionsDocMd} "./nixos-options.md"
ln -s ${optionsDocMd}/options-doc.md "./nixos-options.md"
# generate the site
mdbook build
'';
Expand Down

0 comments on commit 54f3fd5

Please sign in to comment.