mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
doc: fix nixpkgs-manual not being built under index.html
(#400816)
This fixes the anchor links referencing `index.html` while being in `manual.html`.
This commit is contained in:
parent
3d8f50beb9
commit
b5bd640a92
1 changed files with 3 additions and 4 deletions
|
@ -16,7 +16,6 @@
|
||||||
roboto,
|
roboto,
|
||||||
treefmt,
|
treefmt,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation (
|
stdenvNoCC.mkDerivation (
|
||||||
finalAttrs:
|
finalAttrs:
|
||||||
let
|
let
|
||||||
|
@ -100,14 +99,14 @@ stdenvNoCC.mkDerivation (
|
||||||
dest="$out/share/doc/nixpkgs"
|
dest="$out/share/doc/nixpkgs"
|
||||||
mkdir -p "$(dirname "$dest")"
|
mkdir -p "$(dirname "$dest")"
|
||||||
mv out "$dest"
|
mv out "$dest"
|
||||||
mv "$dest/index.html" "$dest/manual.html"
|
cp "$dest/index.html" "$dest/manual.html"
|
||||||
|
|
||||||
cp ${roboto.src}/web/Roboto\[ital\,wdth\,wght\].ttf "$dest/Roboto.ttf"
|
cp ${roboto.src}/web/Roboto\[ital\,wdth\,wght\].ttf "$dest/Roboto.ttf"
|
||||||
|
|
||||||
cp ${epub} "$dest/nixpkgs-manual.epub"
|
cp ${epub} "$dest/nixpkgs-manual.epub"
|
||||||
|
|
||||||
mkdir -p $out/nix-support/
|
mkdir -p $out/nix-support/
|
||||||
echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
|
echo "doc manual $dest index.html" >> $out/nix-support/hydra-build-products
|
||||||
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
|
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
@ -126,7 +125,7 @@ stdenvNoCC.mkDerivation (
|
||||||
let
|
let
|
||||||
devmode' = devmode.override {
|
devmode' = devmode.override {
|
||||||
buildArgs = toString ../.;
|
buildArgs = toString ../.;
|
||||||
open = "/share/doc/nixpkgs/manual.html";
|
open = "/share/doc/nixpkgs/index.html";
|
||||||
};
|
};
|
||||||
nixos-render-docs-redirects' = writeShellScriptBin "redirects" "${lib.getExe nixos-render-docs-redirects} --file ${toString ../redirects.json} $@";
|
nixos-render-docs-redirects' = writeShellScriptBin "redirects" "${lib.getExe nixos-render-docs-redirects} --file ${toString ../redirects.json} $@";
|
||||||
in
|
in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue