-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 1000 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 1000 Bytes
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: preview
preview:
hugo server --minify --theme rhds -D -b http://localhost:1313/experts
# Build static HTML and generate the Pagefind index under public/experts/pagefind/
.PHONY: search-index
search-index:
hugo --gc --minify --theme rhds && npx pagefind --site public/experts
# Local preview with working header search (serves from publishDir so public/experts/pagefind/ is available)
.PHONY: preview-search
preview-search: search-index
hugo server --minify --theme rhds -D -b http://localhost:1313/experts
.PHONY: publish
publish:
hugo --minify --theme rhds
.PHONY: preview.%
preview.%:
gh repo set-default github.com/rh-mobb/documentation
gh pr checkout $*
hugo server --minify --theme rhds -D --baseURL http://localhost:1313/experts
.PHONY: devspaces
devspaces:
export HOST="$(shell jq -r '.CODESPACE_NAME' /workspaces/.codespaces/shared/environment-variables.json)"; \
hugo server --minify --theme rhds -D --baseURL "https://$$HOST-1313.app.github.dev/" --appendPort=false