summaryrefslogtreecommitdiff
path: root/util/hugo/Makefile
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2017-05-24 22:58:01 +0200
committerPatrick Georgi <pgeorgi@google.com>2017-05-25 23:04:36 +0200
commit04edaefad7ed4f9dce9281a25480c1c6eb9e303d (patch)
treef5d167a4e6fbec4b0d6cb25619371a31069d0b54 /util/hugo/Makefile
parent9ec25f7678f7f3fc1ce35f833d1168e605ad0f94 (diff)
util/hugo: Add framework to build www.coreboot.org/Documentation
www.coreboot.org/Documentation is now built with hugo (www.gohugo.io) based on files in this repo's /Documentation directory. Also clarify that new additions to Documentation are under CC-BY 4.0 terms. Change-Id: I000e15b29a182bb88b40de3d0178bf8cc54ba8af Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: https://review.coreboot.org/19881 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'util/hugo/Makefile')
-rw-r--r--util/hugo/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/util/hugo/Makefile b/util/hugo/Makefile
new file mode 100644
index 0000000000..d49c57d7e9
--- /dev/null
+++ b/util/hugo/Makefile
@@ -0,0 +1,13 @@
+.SILENT:
+.PHONY: error public
+
+error:
+ echo please state a valid target
+ exit 1
+
+themes/hugo-material-docs:
+ mkdir -p themes
+ git clone https://github.com/digitalcraftsman/hugo-material-docs.git themes/hugo-material-docs
+
+public: themes/hugo-material-docs
+ docker run --rm -it -v $$PWD:/src -v $$PWD/../../Documentation:/src/content -v /srv/www/vhosts/www.coreboot.org/Documentation:/src/public jguyomard/hugo-builder hugo --forceSyncStatic --cleanDestinationDir