[coreboot-gerrit] Change in coreboot[master]: util/hugo: Add `serve` target for hugo's builtin webserver
Nico Huber (Code Review)
gerrit at coreboot.org
Tue Aug 22 19:57:46 CEST 2017
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 at 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
--
To view, visit https://review.coreboot.org/21153
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idea9e27330de6407171ebb9984422257dd460c6d
Gerrit-Change-Number: 21153
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170822/b0d3197e/attachment.html>
More information about the coreboot-gerrit
mailing list