Skip to content

Commit

Permalink
fix: incorrect nixos module options generation (nix-community#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldoborrero authored Nov 20, 2023
1 parent 2cec1e0 commit fc8662f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mkdocs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,18 @@
buildInput = [nixosMarkdownDocs];
nativeBuildInputs = [mkdocs-custom];

preBuild = ''
# create link to nixos markdown options reference
mkdir -p ${docsPath}
ln -sf ${nixosMarkdownDocs}/* ${docsPath}/
'';

buildPhase = ''
runHook preBuild
mkdocs build
'';

installPhase = ''
# create link to nixos markdown options reference
mkdir -p ${docsPath}
ln -sf ${nixosMarkdownDocs}/* ${docsPath}/
mv site $out
'';

Expand Down

0 comments on commit fc8662f

Please sign in to comment.