Added makefile and documented it

This commit is contained in:
Thomas Boerger 2016-11-10 12:00:55 +01:00
Родитель bd71299c41
Коммит 2ace6a5d1b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 5A388F55283960B6
4 изменённых файлов: 22 добавлений и 5 удалений

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

@ -5,9 +5,7 @@ pipeline:
build:
image: webhippie/hugo:latest
commands:
- apk -U add git
- git clone https://github.com/go-gitea/theme.git themes/gitea
- hugo --cleanDestinationDir
- make build
checks:
image: webhippie/linkchecker:latest

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

@ -1 +1 @@
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIHBhdGg6IHNyYwoKcGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogd2ViaGlwcGllL2h1Z286bGF0ZXN0CiAgICBjb21tYW5kczoKICAgICAgLSBhcGsgLVUgYWRkIGdpdAogICAgICAtIGdpdCBjbG9uZSBodHRwczovL2dpdGh1Yi5jb20vZ28tZ2l0ZWEvdGhlbWUuZ2l0IHRoZW1lcy9naXRlYQogICAgICAtIGh1Z28gLS1jbGVhbkRlc3RpbmF0aW9uRGlyCgogIGNoZWNrczoKICAgIGltYWdlOiB3ZWJoaXBwaWUvbGlua2NoZWNrZXI6bGF0ZXN0CiAgICBjb21tYW5kczoKICAgICAgLSBsaW5rY2hlY2tlciAtdiBodHRwOi8vbG9jYWxob3N0OjgwODAKCiAgZG9ja2VyOgogICAgaW1hZ2U6IHBsdWdpbnMvZG9ja2VyCiAgICByZXBvOiBnaXRlYS9yZWRpcmVjdHMKICAgIHRhZ3M6IFsgJyR7VEFHfScgXQogICAgd2hlbjoKICAgICAgZXZlbnQ6IHRhZwogICAgICBicmFuY2g6IHJlZnMvdGFncy8qCgogIGRvY2tlcjoKICAgIGltYWdlOiBwbHVnaW5zL2RvY2tlcgogICAgcmVwbzogZ2l0ZWEvcmVkaXJlY3RzCiAgICB0YWdzOiBbICdsYXRlc3QnIF0KICAgIHdoZW46CiAgICAgIGV2ZW50OiB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eTpsYXRlc3QKICAgIGNvbW1hbmQ6IFsvdXNyL3NiaW4vY2FkZHksIC1wb3J0LCA4MDgwLCAtcm9vdCwgL2Ryb25lL3NyYy9wdWJsaWNdCg.2nRBUbBzjRoTIjI-iZuCAqnrIGo6mezpWZ8jS24gzl8

19
Makefile Normal file
Просмотреть файл

@ -0,0 +1,19 @@
THEME := themes/gitea
.PHONY: all
all: build
.PHONY: server
server: $(THEME)
hugo server
.PHONY: build
build: $(THEME)
hugo --cleanDestinationDir
.PHONY: update
update: $(THEME)
cd $(THEME) && git fetch --all --prune && git rebase origin/master
$(THEME):
git clone https://github.com/go-gitea/theme.git $@

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

@ -28,7 +28,7 @@ To generate the website and serve it on [localhost:1313](http://localhost:1313)
just execute this command and stop it with `Ctrl+C`:
```
hugo server
make server
```
When you are done with your changes just create a pull request, after merging