Merge pull request #11 from go-gitea/makefile-theme

Download & unzip theme from dl.gitea.io
This commit is contained in:
Thomas Boerger 2016-12-08 22:27:50 +01:00 коммит произвёл GitHub
Родитель 0211a448e3 c6b40d48c4
Коммит 4d1a5f6d08
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,8 +1,14 @@
THEME := themes/gitea THEME := themes/gitea
PUBLIC := public
ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
.PHONY: all .PHONY: all
all: build all: build
.PHONY: clean
clean:
rm -rf $(PUBLIC) $(THEME)
.PHONY: server .PHONY: server
server: $(THEME) server: $(THEME)
hugo server hugo server
@ -13,7 +19,7 @@ build: $(THEME)
.PHONY: update .PHONY: update
update: $(THEME) update: $(THEME)
cd $(THEME) && git fetch --all --prune && git rebase origin/master
$(THEME): $(THEME):
git clone https://github.com/go-gitea/theme.git $@ mkdir -p $@
curl -s $(ARCHIVE) | tar xz -C $@

Просмотреть файл

@ -2,8 +2,8 @@ baseurl = "/"
languageCode = "en-us" languageCode = "en-us"
title = "Gitea" title = "Gitea"
theme = "gitea" theme = "gitea"
disableRSS = true disableRSS = false
disableSitemap = true disableSitemap = false
[params] [params]
Description = "Git with a cup of tea" Description = "Git with a cup of tea"