Skip to content

Commit 857906d

Browse files
aduh95ovflowd
authored andcommitted
fixup! build, doc: use new api doc tooling
1 parent 026dd7f commit 857906d

3 files changed

Lines changed: 20 additions & 26 deletions

File tree

β€Žtools/doc/package-lock.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žtools/doc/update-dockit.shβ€Ž

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
3+
set -ex
4+
5+
BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd)
6+
7+
[ -z "$NODE" ] && NODE="$BASE_DIR/out/Release/node"
8+
[ -x "$NODE" ] || NODE=$(command -v node)
9+
if ! [ -x "$NODE" ]; then
10+
echo 'node not found' >&2
11+
exit 1
12+
fi
13+
NPM="$BASE_DIR/deps/npm/bin/npm-cli.js"
14+
15+
latest_commit=$("$NODE" "$BASE_DIR/tools/doc/get-latest-commit.mjs")
16+
17+
rm -rf node_modules/ package-lock.json
18+
19+
"$NODE" "$NPM" install "git://github.com/nodejs/doc-kit#$latest_commit"

β€Žtools/doc/update.shβ€Ž

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
Β (0)