forked from chef/chef-web-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 977 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
30
31
32
33
34
35
36
37
# we use pushd/popd here, and /bin/sh of our chefes/buildkite image is not bash
# so we have to override the default shell here
SHELL=bash
assets:
pushd themes/docs-new && make assets && popd
clean:
pushd themes/docs-new && make clean && popd
rm -rf resources/
clean_all:
pushd themes/docs-new && make clean_all && popd
rm -rf resources/
rm -rf results/
serve: assets
hugo server --buildDrafts --noHTTPCache --buildFuture
serve_ignore_vendor: assets
hugo server --buildDrafts --noHTTPCache --buildFuture --ignoreVendorPaths github.com/**
lint: assets
hugo -D
# Generates blank resource pages, one for each yaml file in data/client/resources
# And an index page that lists all the resources.
resource_files:
rm content/resources/*
dataDir=data/infra/resources; \
for f in $$(ls $${dataDir}); \
do echo $${f}; \
file=$${f%.yaml}; \
hugo new -k resource content/resources/$${file}.md ; \
done
hugo new -k all_the_resources content/resources/_index.md ;