mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
docs/mdbook: install directly to $out
This fixes a regression introduced by https://github.com/nix-community/nixvim/pull/3349
This commit is contained in:
parent
4dc8d1e918
commit
e3f4a57fb8
2 changed files with 5 additions and 6 deletions
2
.github/workflows/build_documentation.yml
vendored
2
.github/workflows/build_documentation.yml
vendored
|
@ -110,7 +110,7 @@ jobs:
|
|||
|
||||
# Copy the result to the install dir
|
||||
mkdir -p "$installDir"
|
||||
cp -r result/share/doc/* "$installDir"
|
||||
cp -r result/* "$installDir"
|
||||
}
|
||||
|
||||
# For each version of the docs...
|
||||
|
|
|
@ -349,8 +349,7 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
|
|||
contributing = finalAttrs.passthru.fix-links ../../CONTRIBUTING.md;
|
||||
|
||||
buildPhase = ''
|
||||
dest=$out/share/doc
|
||||
mkdir -p $dest
|
||||
mkdir -p $out
|
||||
|
||||
# Copy (and flatten) src into the build directory
|
||||
cp -r --no-preserve=all $src/* ./
|
||||
|
@ -397,9 +396,9 @@ pkgs.stdenv.mkDerivation (finalAttrs: {
|
|||
--replace-fail "@USER_CONFIGS@" "$(cat ${finalAttrs.passthru.user-configs})"
|
||||
|
||||
mdbook build
|
||||
cp -r ./book/* $dest
|
||||
mkdir -p $dest/search
|
||||
cp -r ${finalAttrs.passthru.search}/* $dest/search
|
||||
cp -r ./book/* $out
|
||||
mkdir -p $out/search
|
||||
cp -r ${finalAttrs.passthru.search}/* $out/search
|
||||
'';
|
||||
|
||||
inherit baseHref;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue