mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
tools: add docserve target
Spaws a webserver serving the docs. Helpful to circumvent the OS permission limitations or to access the docs form a different device on the local network. PR-URL: https://github.com/nodejs/node/pull/33221 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
c0534f7b8d
commit
74fc5e9d82
1 file changed
+5
@@ -772,6 +772,11 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js
|
||||
docopen: $(apidocs_html)
|
||||
@$(PYTHON) -mwebbrowser file://$(PWD)/out/doc/api/all.html
|
||||
|
||||
.PHONY: docserve
|
||||
docserve: $(apidocs_html)
|
||||
@$(PYTHON) -mwebbrowser http://localhost:8000/all.html
|
||||
@$(PYTHON) -m http.server -d $(PWD)/out/doc/api
|
||||
|
||||
.PHONY: docclean
|
||||
docclean:
|
||||
$(RM) -r out/doc
|
||||
|
||||
Reference in new issue
Block a user