Centralize docs, align changelog and release process

This commit is contained in:
Michael Barz
2020-02-18 22:21:34 +01:00
parent 9c7a884c60
commit 783b27be49
17 changed files with 103 additions and 500 deletions
+18 -2
View File
@@ -3,6 +3,7 @@ NAME := ocis
IMPORT := github.com/owncloud/$(NAME)
BIN := bin
DIST := dist
HUGO := hugo
ifeq ($(OS), Windows_NT)
EXECUTABLE := $(NAME).exe
@@ -130,9 +131,24 @@ release-check:
.PHONY: release-finish
release-finish: release-copy release-check
.PHONY: docs-copy
docs-copy:
mkdir -p $(HUGO); \
mkdir -p $(HUGO)/content/; \
cd $(HUGO); \
git init; \
git remote rm origin; \
git remote add origin https://github.com/owncloud/owncloud.github.io; \
git fetch; \
git checkout origin/source -f; \
rsync --delete -ax ../docs/ content/$(NAME)
.PHONY: docs-build
docs-build:
cd $(HUGO); hugo
.PHONY: docs
docs:
cd docs; hugo
docs: docs-copy docs-build
.PHONY: watch
watch: