Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(docs): improve Makefile for docs #2327

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ init-node-modules:
generate:
hugo --environment $(SITE_ENV) -d docs --gc

container-generate:
container-build:
docker build \
$(COMMON_DOCKER_BUILD_ARGS) \
-t aws-sdk-go-v2-docs \
-f ./Dockerfile \
.

container-generate: container-build
docker run \
-v .:/aws-sdk-go-v2 \
-t aws-sdk-go-v2-docs \
make setup generate

Expand All @@ -30,17 +33,13 @@ preview:
--environment $(SITE_ENV) \
-d docs

container-preview:
docker build \
$(COMMON_DOCKER_BUILD_ARGS) \
-t aws-sdk-go-v2-docs \
-f ./Dockerfile \
.
container-preview: container-build
docker run \
-v .:/aws-sdk-go-v2 \
-p 127.0.0.1:$(PREVIEW_PORT):$(PREVIEW_PORT) \
--env PREVIEW_HOST=0.0.0.0 \
--env PREVIEW_PORT=$(PREVIEW_PORT) \
-i -t aws-sdk-go-v2-docs \
make setup preview

.PHONY: setup init-node-modules init-submodules generate container-generate validate preview preview container-preview
.PHONY: setup init-node-modules init-submodules generate container-build container-generate validate preview preview container-preview