Skip to content

Commit f495ab3

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 09277fa commit f495ab3

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
@@ -768,6 +768,11 @@ out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.js
768768
docopen: $(apidocs_html)
769769
@$(PYTHON) -mwebbrowser file://$(PWD)/out/doc/api/all.html
770770

771+
.PHONY: docserve
772+
docserve: $(apidocs_html)
773+
@$(PYTHON) -mwebbrowser http://localhost:8000/all.html
774+
@$(PYTHON) -m http.server -d $(PWD)/out/doc/api
775+
771776
.PHONY: docclean
772777
docclean:
773778
$(RM) -r out/doc

0 commit comments

Comments
 (0)