File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,22 @@ man/man7/%.7: docs/content/using-npm/%.md docs/bin/docs-build.js
73
73
docs/content/using-npm/config.md : docs/bin/config-doc.js lib/utils/config/* .js
74
74
node docs/bin/config-doc.js
75
75
76
- docs/content/commands/npm-% .md : docs/bin/config-doc-command.js lib/commands/% .js lib/utils/config/* .js lib/utils/cmd-list.js
76
+ mddocs : docs/bin/config-doc-command.js lib/utils/config/* .js lib/utils/cmd-list.js
77
+ @for file in $(shell find docs/content/commands -name 'npm-* .md') ; do \
78
+ cmdname=$$(basename $$file .md) ; \
79
+ cmdname=$$ {cmdname## npm-} ;\
80
+ echo node docs/bin/config-doc-command.js $$ {file} lib/commands/$$ {cmdname}.js ; \
81
+ node docs/bin/config-doc-command.js $$ {file} lib/commands/$$ {cmdname}.js ; \
82
+ done
83
+
84
+ docs/content/commands/npm-% .md : lib/commands/% .js
77
85
node docs/bin/config-doc-command.js $@ $<
78
86
79
87
freshdocs :
80
88
touch lib/utils/config/definitions.js
81
89
touch docs/bin/* .js
82
90
make docs
91
+ make mddocs
83
92
84
93
test-all : deps
85
94
node bin/npm-cli.js run test-all
@@ -108,4 +117,4 @@ publish: gitclean ls-ok link test-all docs prune
108
117
release : gitclean ls-ok docs prune
109
118
@bash scripts/release.sh
110
119
111
- .PHONY : all latest install dev link docs clean uninstall test-all man docsclean release ls-ok deps prune freshdocs
120
+ .PHONY : all latest install dev link docs mddocs clean uninstall test-all man docsclean release ls-ok deps prune freshdocs
You can’t perform that action at this time.
0 commit comments