-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.29 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
bundle:
npm install
clean_all:
rm -rf node_modules
rm -rf resources/
rm -rf public/
hugo mod clean
serve: bundle
hugo server --buildDrafts --noHTTPCache --buildFuture
metrics: bundle
hugo --gc --minify --enableGitInfo --templateMetrics --templateMetricsHints
nodrafts: bundle
hugo server --noHTTPCache --buildFuture
production: bundle
hugo server --noHTTPCache --environment production
# Override the theme in the _vendor directory and build using locally sourced theme defined in hugo.work file.
# See https://gohugo.io/hugo-modules/use-modules/#module-workspaces
test_theme: bundle
HUGO_MODULE_WORKSPACE=hugo.work hugo server --buildDrafts --noHTTPCache --buildFuture --ignoreVendorPaths "github.com/chef/chef-docs-theme"
test_branch_deploy: bundle
hugo server --noHTTPCache --baseURL http://localhost:1313/client/version/
serve_ignore_vendor: bundle
hugo server --buildDrafts --noHTTPCache --buildFuture --ignoreVendorPaths github.com/**
lint: bundle
hugo -D
update_theme:
hugo mod get -u github.com/chef/chef-docs-theme
rm go.sum
hugo mod tidy
hugo mod clean
hugo mod vendor
hugo mod npm pack
## See:
## - https://cspell.org/docs/getting-started/
## - https://cspell.org/configuration/
## - and cspell.yaml file.
spellcheck:
cspell --no-progress "**/*.{md, html, js, yml, yaml, toml, json}"