Added makefile and documented it #1

Merged
tboerger merged 2 commits from makefile into master 2016-11-10 22:40:11 +00:00
4 changed files with 23 additions and 5 deletions

View File

@ -4,10 +4,9 @@ workspace:
pipeline:
build:
image: webhippie/hugo:latest
pull: true
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

View File

@ -1 +1 @@
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIHBhdGg6IHNyYwoKcGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogd2ViaGlwcGllL2h1Z286bGF0ZXN0CiAgICBjb21tYW5kczoKICAgICAgLSBhcGsgLVUgYWRkIGdpdAogICAgICAtIGdpdCBjbG9uZSBodHRwczovL2dpdGh1Yi5jb20vZ28tZ2l0ZWEvdGhlbWUuZ2l0IHRoZW1lcy9naXRlYQogICAgICAtIGh1Z28gLS1jbGVhbkRlc3RpbmF0aW9uRGlyCgogIGNoZWNrczoKICAgIGltYWdlOiB3ZWJoaXBwaWUvbGlua2NoZWNrZXI6bGF0ZXN0CiAgICBjb21tYW5kczoKICAgICAgLSBsaW5rY2hlY2tlciAtdiBodHRwOi8vbG9jYWxob3N0OjgwODAKCiAgZG9ja2VyOgogICAgaW1hZ2U6IHBsdWdpbnMvZG9ja2VyCiAgICByZXBvOiBnaXRlYS9ibG9nCiAgICB0YWdzOiBbICcke1RBR30nIF0KICAgIHdoZW46CiAgICAgIGV2ZW50OiB0YWcKICAgICAgYnJhbmNoOiByZWZzL3RhZ3MvKgoKICBkb2NrZXI6CiAgICBpbWFnZTogcGx1Z2lucy9kb2NrZXIKICAgIHJlcG86IGdpdGVhL2Jsb2cKICAgIHRhZ3M6IFsgJ2xhdGVzdCcgXQogICAgd2hlbjoKICAgICAgZXZlbnQ6IHB1c2gKICAgICAgYnJhbmNoOiBtYXN0ZXIKCiAgZ2l0dGVyOgogICAgaW1hZ2U6IHBsdWdpbnMvZ2l0dGV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AsIC1yb290LCAvZHJvbmUvc3JjL3B1YmxpY10K.P7wTDoFiHrqNgh3PrtlIVe_mTN7tMYA5ZHfjuzMktcc

19
Makefile Normal file
View 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 $@

View File

@ -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