docs: force symlinks for src/reference

This commit is contained in:
phaer 2024-06-14 13:40:08 +02:00
parent 32023d41ed
commit ea02037ba9

View File

@ -106,7 +106,7 @@
];
} ''
cp -rL --no-preserve=mode ${dream2nixRoot}/docs/* .
ln -s ${referenceDocs} ./src/reference
ln -sfT ${referenceDocs} ./src/reference
mkdocs build
'';
in {
@ -148,7 +148,7 @@
if [ ! -d src/reference ]; then
echo "linking .#reference to src/reference, you need to update this manually\
and remove it before a production build"
ln -s $(nix build ..#reference --no-link --print-out-paths) src/reference
ln -sfT $(nix build ..#reference --no-link --print-out-paths) src/reference
fi
'';
};