Skip to content

Commit

Permalink
tools: add docserve target
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
aduh95 authored and codebytere committed Jun 18, 2020
1 parent fb81f1a commit eb8db26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb8db26

Please sign in to comment.