Skip to content

Commit 6dab63f

Browse files
aduh95codebytere
authored andcommitted
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: #33221 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 26269be commit 6dab63f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,11 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js
772772
docopen: $(apidocs_html)
773773
@$(PYTHON) -mwebbrowser file://$(PWD)/out/doc/api/all.html
774774

775+
.PHONY: docserve
776+
docserve: $(apidocs_html)
777+
@$(PYTHON) -mwebbrowser http://localhost:8000/all.html
778+
@$(PYTHON) -m http.server -d $(PWD)/out/doc/api
779+
775780
.PHONY: docclean
776781
docclean:
777782
$(RM) -r out/doc

0 commit comments

Comments
 (0)