doc: Document nodejsInstallManuals

This commit is contained in:
Ross Smyth
2026-02-04 18:25:08 -05:00
parent 471dfbe96c
commit 240a7b8804
4 changed files with 21 additions and 0 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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

View File

@@ -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"
],