Skip to content

Commit 1f9eaba

Browse files
nlflukekarrys
authored andcommitted
chore: make sure to build markdown docs for all commands as part of the docs target
1 parent ec065b2 commit 1f9eaba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ misc_mandocs = $(shell find docs/content/using-npm -name '*.md' \
2424

2525
mandocs = $(cli_mandocs) $(files_mandocs) $(misc_mandocs)
2626

27+
markdown_docs = $(shell for file in $(find lib/commands -name '*.js'); do echo docs/content/commands/npm-$(basename $file .js).md; done)
28+
2729
all: docs
2830

29-
docs: mandocs htmldocs
31+
docs: mandocs htmldocs $(markdown_docs)
3032

3133
# don't regenerate the snapshot if we're generating
3234
# snapshots, since presumably we just did that.

0 commit comments

Comments
 (0)