diff --git a/doc/hooks/index.md b/doc/hooks/index.md index d0b039217a35..4ad60b22d1f3 100644 --- a/doc/hooks/index.md +++ b/doc/hooks/index.md @@ -28,6 +28,7 @@ meson.section.md mpi-check-hook.section.md ninja.section.md nodejs-install-executables.section.md +nodejs-install-manuals.section.md npm-build-hook.section.md npm-config-hook.section.md npm-install-hook.section.md diff --git a/doc/hooks/nodejs-install-manuals.section.md b/doc/hooks/nodejs-install-manuals.section.md new file mode 100644 index 000000000000..454769e32b96 --- /dev/null +++ b/doc/hooks/nodejs-install-manuals.section.md @@ -0,0 +1,12 @@ +# nodejsInstallManuals {#nodejs-install-manuals} + +Detects manuals in Node.js packages, and attempts to install them in standard locations. +This detection is done by inspecting the package.json of the project and finding any entries +with type `man`. + + +There are no ways currently to configure this hook. + +## Examples {#nodejs-install-manuals-example} + +[](#npm-build-hook-example-snippet) diff --git a/doc/hooks/npm-build-hook.section.md b/doc/hooks/npm-build-hook.section.md index 9e09af3589be..a3cda18b4449 100644 --- a/doc/hooks/npm-build-hook.section.md +++ b/doc/hooks/npm-build-hook.section.md @@ -15,6 +15,7 @@ Hook for building packages that use npm. Can be used in multi-language environme fetchNpmDeps, npmHooks, nodejsInstallExecutables, + nodejsInstallManuals, nodejs, }: stdenv.mkDerivation (finalAttrs: { @@ -33,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ nodejs nodejsInstallExecutables + nodejsInstallManuals npmHooks.npmConfigHook npmHooks.npmBuildHook npmHooks.npmInstallHook diff --git a/doc/redirects.json b/doc/redirects.json index d69908cb6bad..e9ea2e18f637 100644 --- a/doc/redirects.json +++ b/doc/redirects.json @@ -218,6 +218,12 @@ "nodejs-install-executables-wrapper-args": [ "index.html#nodejs-install-executables-wrapper-args" ], + "nodejs-install-manuals": [ + "index.html#nodejs-install-manuals" + ], + "nodejs-install-manuals-example": [ + "index.html#nodejs-install-manuals-example" + ], "nostrictaliasing": [ "index.html#nostrictaliasing" ],