diff --git a/.drone.yml b/.drone.yml index 09a04bd..9ab325d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,11 +10,10 @@ concurrency: limit: 1 steps: -- name: assets +- name: generate image: thegeeklab/alpine-tools commands: - - mkdir -p themes/hugo-geekblog/ - - curl -L https://github.com/thegeeklab/hugo-geekblog/releases/latest/download/hugo-geekblog.tar.gz | tar -xz -C themes/hugo-geekblog/ --strip-components=1 + - make doc - name: markdownlint image: thegeeklab/markdownlint-cli @@ -110,6 +109,6 @@ depends_on: --- kind: signature -hmac: 34c81c071b579d8f60d8c301eb1251d0430031ac4af95536447ed61db62f686d +hmac: ccf04025bf1fdb04c2bafca6993b6a09309f7b37b450ceaf5ab801351a066b80 ... diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..0df6830 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,8 @@ +*.html +.drone.yml +search*.js +_normalize.css +.lighthouseci/ +themes/ +static/js/ +src/favicon/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d519948 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# renovate: datasource=github-releases depName=thegeeklab/hugo-geekblog +THEME_VERSION := v0.5.3 +THEME := hugo-geekblog +BASEDIR := . +THEMEDIR := $(BASEDIR)/themes + +.PHONY: all +all: doc + +.PHONY: doc +doc: doc-assets + +.PHONY: doc-assets +doc-assets: + mkdir -p $(THEMEDIR)/$(THEME)/ ; \ + curl -sSL "https://github.com/thegeeklab/$(THEME)/releases/download/${THEME_VERSION}/$(THEME).tar.gz" | tar -xz -C $(THEMEDIR)/$(THEME)/ --strip-components=1 + +.PHONY: clean +clean: + rm -rf $(THEMEDIR) && \ diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..91ced0d --- /dev/null +++ b/renovate.json @@ -0,0 +1,14 @@ +{ + "extends": ["config:base"], + "regexManagers": [ + { + "fileMatch": ["^Makefile$"], + "matchStrings": [ + "# renovate: datasource=(?\\S+) depName=(?\\S+)( versioning=(?.*?))?\\n.*?_VERSION := (?.*)\\s" + ] + } + ], + "droneci": { + "enabled": false + } +}