Skip to content

Commit 3f6e9f9

Browse files
committed
docs: Improve documentation
Signed-off-by: Federico Barcelona <[email protected]>
1 parent d08ea3b commit 3f6e9f9

19 files changed

+72
-9
lines changed

GNUmakefile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
44
PKG_NAME=sysdig
55
WEBSITE_REPO=github.com/hashicorp/terraform-website
66
VERSION=$(shell [ ! -z `git tag -l --contains HEAD` ] && git tag -l --contains HEAD || git rev-parse --short HEAD)
7+
GOPATH=$(shell go env GOPATH)
78

89
default: build
910

@@ -59,18 +60,28 @@ release: fmtcheck
5960
done \
6061
done
6162

63+
.PHONY: website
6264
website:
6365
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
6466
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
6567
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
68+
(cd $(GOPATH)/src/$(WEBSITE_REPO); \
69+
ln -s $(shell pwd) ext/providers/sysdig; \
70+
ln -s ../../../ext/providers/sysdig/website/sysdig.erb content/source/layouts/sysdig.erb; \
71+
ln -s ../../../../ext/providers/sysdig/website/docs content/source/docs/providers/sysdig; \
72+
)
6673
endif
67-
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
74+
$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
6875

76+
.PHONY: website-test
6977
website-test:
7078
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
7179
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
7280
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
81+
(cd $(GOPATH)/src/$(WEBSITE_REPO); \
82+
ln -s $(shell pwd) ext/providers/sysdig; \
83+
ln -s ../../../ext/providers/sysdig/website/sysdig.erb content/source/layouts/sysdig.erb; \
84+
ln -s ../../../../ext/providers/sysdig/website/docs content/source/docs/providers/sysdig; \
85+
)
7386
endif
7487
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
75-
76-
.PHONY: build sweep test testacc vet fmt fmtcheck errcheck vendor-status test-compile website website-test
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)