forked from mattermost/mattermost-developer-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 848 Bytes
/
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
.PHONY: dist plugin-data backend-plugin-data frontend-plugin-data
dist: plugin-data
rm -rf ./dist
cd site && hugo --destination ../dist/html
plugin-data: backend-plugin-data frontend-plugin-data devtalks-data
backend-plugin-data:
go get -u -v github.com/mattermost/mattermost-server/plugin
mkdir -p site/data
go run scripts/plugin-godocs.go > site/data/PluginGoDocs.json
go run scripts/plugin-manifest-docs.go > site/data/PluginManifestDocs.json
frontend-plugin-data:
rm -rf scripts/mattermost-webapp
cd scripts && git clone https://github.com/mattermost/mattermost-webapp.git
cd scripts && npm install
mkdir -p site/data
node scripts/plugin-jsdocs.js > site/data/PluginJSDocs.json
devtalks-data:
mkdir -p site/data
ifdef YOUTUBE_API_KEY
go run scripts/devtalks.go > site/data/DevTalks.json
endif
dev:
cd site && hugo server -D