From 40eb095f6d4904899095ee07b44f365686b5cc3b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 26 May 2022 17:52:55 +0200 Subject: [PATCH] rework drone-s3-sync doc files loading --- .batchfile | 3 ++- Makefile | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.batchfile b/.batchfile index 23c8841..686a650 100644 --- a/.batchfile +++ b/.batchfile @@ -2,5 +2,6 @@ https://github.com/thegeeklab/drone-docker;docs;content/plugins/drone-docker https://github.com/thegeeklab/drone-docker-buildx;docs;content/plugins/drone-docker-buildx https://github.com/thegeeklab/drone-github-comment;docs;content/plugins/drone-github-comment https://github.com/thegeeklab/drone-matrix;docs;content/plugins/drone-matrix -https://github.com/thegeeklab/drone-s3-sync;docs;content/plugins/drone-s3-sync https://github.com/thegeeklab/drone-yaml;docs;content/tools/drone-yaml +https://github.com/thegeeklab/drone-s3-sync;docs:content/;content/plugins/drone-s3-sync +https://github.com/thegeeklab/drone-s3-sync;docs:data/;data/properties/drone-s3-sync diff --git a/Makefile b/Makefile index 5ab8a53..3103883 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ # renovate: datasource=github-releases depName=thegeeklab/hugo-geekdoc -THEME_VERSION := v0.30.1 +THEME_VERSION := v0.30.2 THEME := hugo-geekdoc + BASEDIR := . THEMEDIR := $(BASEDIR)/themes +CONTENTDIR := $(BASEDIR)/content +DATADIR := $(BASEDIR)/data .PHONY: all all: doc @@ -12,9 +15,9 @@ doc: doc-assets .PHONY: doc-assets doc-assets: - mkdir -p $(THEMEDIR)/$(THEME)/ ; \ + 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) && \ + rm -rf $(THEMEDIR) $(CONTENTDIR)/**/ $(DATADIR)/*