Skip to content
Permalink
Browse files
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 <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
aduh95 authored and codebytere committed Jun 18, 2020
1 parent 26269be commit 6dab63f36db7b589dd85e309a39d2e4cd226d484
Showing with 5 additions and 0 deletions.
  1. +5 −0 Makefile
@@ -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

0 comments on commit 6dab63f

Please sign in to comment.