Skip to content

Commit 8ac64df

Browse files
lbajolet-hashicorpnywilken
authored andcommitted
makefile: remove old docs targets
Since we moved the docs to integrations, we don't need to build the docs.zip file anymore, and to make it easier for plugin developers we move the logic for building the new .docs directory to the `generate' Makefile target.
1 parent d1f419f commit 8ac64df

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

GNUmakefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ test:
2020
install-packer-sdc: ## Install packer sofware development command
2121
@go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@${HASHICORP_PACKER_PLUGIN_SDK_VERSION}
2222

23-
ci-release-docs: install-packer-sdc
24-
@packer-sdc renderdocs -src docs -partials docs-partials/ -dst docs/
25-
@/bin/sh -c "[ -d docs ] && zip -r docs.zip docs/"
26-
2723
plugin-check: install-packer-sdc build
2824
@packer-sdc plugin-check ${BINARY}
2925

@@ -34,9 +30,7 @@ generate: install-packer-sdc
3430
@go generate ./...
3531
packer-sdc renderdocs -src ./docs -dst ./.docs -partials ./docs-partials
3632
# checkout the .docs folder for a preview of the docs
37-
38-
build-docs: install-packer-sdc
39-
@if [ -d ".docs" ]; then rm -r ".docs"; fi
33+
@rm -rf .docs
4034
@packer-sdc renderdocs -src "docs" -partials docs-partials/ -dst ".docs/"
4135
@./.web-docs/scripts/compile-to-webdocs.sh "." ".docs" ".web-docs" "hashicorp"
4236
@rm -r ".docs"

0 commit comments

Comments
 (0)