Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cli: generate man-page
  • Loading branch information
avivkeller committed Nov 16, 2024
commit 35caea0a627ba80292dac74c815feed8c0294e10
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ NODE_EXE = node$(EXEEXT)
NODE ?= "$(PWD)/$(NODE_EXE)"
NODE_G_EXE = node_g$(EXEEXT)
NPM ?= ./deps/npm/bin/npm-cli.js
NPX ?= ./deps/npm/bin/npx-cli.js

# Flags for packaging.
BUILD_DOWNLOAD_FLAGS ?= --download=all
Expand Down Expand Up @@ -767,6 +768,9 @@ doc-only: tools/doc/node_modules \
.PHONY: doc
doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation with the new binary.

doc/node.1: doc/api/cli.md
$(NPX) github:nodejs/api-docs-tooling -t man-page -i doc/api/cli.md -o doc/node.1

out/doc:
mkdir -p $@

Expand Down
Loading