Nico Huber has uploaded this change for review. ( https://review.coreboot.org/21153
Change subject: util/hugo: Add `serve` target for hugo's builtin webserver ......................................................................
util/hugo: Add `serve` target for hugo's builtin webserver
Change-Id: Idea9e27330de6407171ebb9984422257dd460c6d Signed-off-by: Nico Huber nico.h@gmx.de --- M util/hugo/Makefile 1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/21153/1
diff --git a/util/hugo/Makefile b/util/hugo/Makefile index d76c00a..4fe09a2 100644 --- a/util/hugo/Makefile +++ b/util/hugo/Makefile @@ -1,5 +1,5 @@ .SILENT: -.PHONY: error public +.PHONY: error serve public
error: echo please state a valid target @@ -9,5 +9,9 @@ mkdir -p themes git clone https://github.com/digitalcraftsman/hugo-material-docs.git themes/hugo-material-docs
+serve: themes/hugo-material-docs + -docker network create --subnet 172.23.0.0/30 hugonet 2>/dev/null + docker run --rm -it -v $$PWD:/src:ro -v $$PWD/../../Documentation:/src/content:ro --network hugonet --ip=172.23.0.2 jguyomard/hugo-builder hugo server --bind=172.23.0.2 -b http://172.23.0.2/Documentation/ + public: themes/hugo-material-docs docker run --rm -v $$PWD:/src:ro -v $$PWD/../../Documentation:/src/content:ro -v /srv/www/vhosts/www.coreboot.org/Documentation:/src/public jguyomard/hugo-builder hugo --forceSyncStatic --cleanDestinationDir