mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-22 22:11:50 +03:00
docs: force symlinks for src/reference
This commit is contained in:
parent
32023d41ed
commit
ea02037ba9
@ -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
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user