forked from pulumi/docs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
118 lines (96 loc) · 2.34 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.PHONY: default
default: banner generate build
.PHONY: all
all: banner generate build
.PHONY: banner
banner:
@echo -e "\033[1;37m=========================\033[0m"
@echo -e "\033[1;37mPulumi Website \033[0m"
@echo -e "\033[1;37m=========================\033[0m"
.PHONY: clean
clean:
./scripts/clean.sh
.PHONY: ensure
ensure:
./scripts/ensure.sh
.PHONY: ensure_tools
ensure_tools:
echo "Restoring resourcedocsgen deps..."
cd tools/resourcedocsgen && go mod tidy && go mod download
.PHONY: serve
serve:
@echo -e "\033[0;32mSERVE:\033[0m"
$(MAKE) lint
./scripts/serve.sh
.PHONY: serve_marketing
serve_marketing:
@echo -e "\033[0;32mSERVE MARKETING:\033[0m"
$(MAKE) lint
HUGO_ENVIRONMENT=marketing-dev ./scripts/serve.sh
.PHONY: serve_components
serve_components:
@echo -e "\033[0;32mSERVE COMPONENTS:\033[0m"
yarn --cwd components run start
.PHONY: build_components
build_components:
@echo -e "\033[0;32mBUILD COMPONENTS:\033[0m"
yarn --cwd components run build
.PHONY: build_search_index
build_search_index:
@echo -e "\033[0;32mBUILD SEARCH INDEX:\033[0m"
node ./scripts/build-search-index.js < ./public/docs/search-data/index.json > ./public/docs/search-index.json
rm -rf ./public/docs/search-data
.PHONY: generate
generate:
@echo -e "\033[0;32mGENERATE:\033[0m"
./scripts/run_typedoc.sh
./scripts/generate_python_docs.sh
pulumi gen-markdown ./content/docs/reference/cli
./scripts/mktutorial.sh
.PHONY: build
build:
@echo -e "\033[0;32mBUILD:\033[0m"
$(MAKE) lint
./scripts/build-site.sh
.PHONY: lint
lint:
yarn run lint-markdown
.PHONY: test
test:
$(MAKE) check_links_local
.PHONY: check_links_local
check_links_local:
$(MAKE) banner
$(MAKE) ensure
./scripts/check-links.sh local
.PHONY: check_links
check_links:
$(MAKE) banner
$(MAKE) ensure
./scripts/check-links.sh www
.PHONY: new_learn_module
new_learn_module:
./scripts/new-learn-module.sh
.PHONY: new_learn_topic
new_learn_topic:
./scripts/new-learn-topic.sh
.PHONY: ci_push
ci_push::
$(MAKE) banner
$(MAKE) ensure
$(MAKE) lint
./scripts/ci-push.sh
.PHONY: ci_pull_request
ci_pull_request:
$(MAKE) banner
$(MAKE) ensure
$(MAKE) lint
./scripts/ci-pull-request.sh
.PHONY: ci_pull_request_closed
ci_pull_request_closed:
$(MAKE) banner
./scripts/ci-pull-request-closed.sh
.PHONY: ci_bucket_cleanup
ci_bucket_cleanup:
$(MAKE) banner
./scripts/ci-bucket-cleanup.sh