diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2017-11-26 16:44:32 -0500 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-11-26 23:44:32 +0200 |
commit | fb5c6b644460f94acb8976ad35165230b9d47fb2 (patch) | |
tree | 3811cb3807a9f666e77743cc0fc8bcea4276f421 /docs/Makefile | |
parent | f148a4a1ed55c75d391930865185fb7bfbee03ba (diff) | |
download | gitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.tar.gz gitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.zip |
Import docs into main repository (#2874)
* import docs into main repository
Signed-off-by: Matti Ranta <matti@mdranta.net>
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000000..e5f8d9c6e0 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,29 @@ +THEME := themes/gitea +PUBLIC := public +ARCHIVE := https://dl.gitea.io/theme/master.tar.gz + +.PHONY: all +all: build + +.PHONY: clean +clean: + rm -rf $(PUBLIC) $(THEME) + +.PHONY: trans-copy +trans-copy: + @bash scripts/trans-copy + +.PHONY: server +server: $(THEME) + hugo server + +.PHONY: build +build: $(THEME) + hugo --cleanDestinationDir + +.PHONY: update +update: $(THEME) + +$(THEME): + mkdir -p $@ + curl -s $(ARCHIVE) | tar xz -C $@ |