diff --git a/.drone.yml b/.drone.yml index b3245b6..a1a507a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/.drone.yml.sig b/.drone.yml.sig index 21527cb..5f1a2f0 100644 --- a/.drone.yml.sig +++ b/.drone.yml.sig @@ -1 +1 @@ -eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIHBhdGg6IHNyYwoKcGlwZWxpbmU6CiAgYnVpbGQ6CiAgICBpbWFnZTogd2ViaGlwcGllL2h1Z286bGF0ZXN0CiAgICBjb21tYW5kczoKICAgICAgLSBhcGsgLVUgYWRkIGdpdAogICAgICAtIGdpdCBjbG9uZSBodHRwczovL2dpdGh1Yi5jb20vZ28tZ2l0ZWEvdGhlbWUuZ2l0IHRoZW1lcy9naXRlYQogICAgICAtIGh1Z28gLS1jbGVhbkRlc3RpbmF0aW9uRGlyCgogIGNoZWNrczoKICAgIGltYWdlOiB3ZWJoaXBwaWUvbGlua2NoZWNrZXI6bGF0ZXN0CiAgICBjb21tYW5kczoKICAgICAgLSBsaW5rY2hlY2tlciAtdiBodHRwOi8vbG9jYWxob3N0OjgwODAKCiAgZG9ja2VyOgogICAgaW1hZ2U6IHBsdWdpbnMvZG9ja2VyCiAgICByZXBvOiBnaXRlYS9yZWRpcmVjdHMKICAgIHRhZ3M6IFsgJyR7VEFHfScgXQogICAgd2hlbjoKICAgICAgZXZlbnQ6IHRhZwogICAgICBicmFuY2g6IHJlZnMvdGFncy8qCgogIGRvY2tlcjoKICAgIGltYWdlOiBwbHVnaW5zL2RvY2tlcgogICAgcmVwbzogZ2l0ZWEvcmVkaXJlY3RzCiAgICB0YWdzOiBbICdsYXRlc3QnIF0KICAgIHdoZW46CiAgICAgIGV2ZW50OiBwdXNoCiAgICAgIGJyYW5jaDogbWFzdGVyCg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mQ6IFsvdXNyL3NiaW4vY2FkZHksIC1wb3J0LCA4MDgwLCAtcm9vdCwgL2Ryb25lL3NyYy9wdWJsaWNdCg.2nRBUbBzjRoTIjI-iZuCAqnrIGo6mezpWZ8jS24gzl8 \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6e07bb2 --- /dev/null +++ b/Makefile @@ -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 $@ diff --git a/README.md b/README.md index 5a7b111..6a1dde4 100644 --- a/README.md +++ b/README.md @@ -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