-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
24 lines (20 loc) · 1.51 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Minimal makefile to build Antora documentation
BUILDDIR = docs
PLAYBOOK = antora-playbook.yml
LOCAL_PLAYBOOK = antora-playbook-local.yml
ANTORABUNDLE =
# Put it first so that "make" without argument is like "make help".
help: ## Show target options
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
clean: ## removes remote documentation and compiled documentation
rm -rf $(BUILDDIR)/**
imagePush:
@echo "Building Antora Image"
@docker build . -t docker.pkg.github.com/boozallen/sdp-docs/builder
@docker push docker.pkg.github.com/boozallen/sdp-docs/builder
local-preview: clean ## builds the antora documentation
@docker run -v ~/.git-credentials:/root/.git-credentials -v $(shell pwd):/antora:Z --rm -t docker.pkg.github.com/boozallen/sdp-docs/builder generate --stacktrace --generator booz-allen-site-generator --to-dir $(BUILDDIR) $(ANTORABUNDLE) antora-playbook-local-only.yml
preview: clean ## builds the antora documentation
@docker run -v ~/.git-credentials:/root/.git-credentials -v $(shell pwd):/antora:Z --rm -t docker.pkg.github.com/boozallen/sdp-docs/builder generate --stacktrace --generator booz-allen-site-generator --to-dir $(BUILDDIR) $(ANTORABUNDLE) $(LOCAL_PLAYBOOK)
docs: clean ## builds the antora documentation
@docker run -v ~/.git-credentials:/root/.git-credentials -v $(shell pwd):/antora:Z --rm -t docker.pkg.github.com/boozallen/sdp-docs/builder generate --stacktrace --generator booz-allen-site-generator --to-dir $(BUILDDIR) $(ANTORABUNDLE) $(PLAYBOOK)