Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 121a508

Browse files
authored
parent d5b8144 (#290)
author Jodie <[email protected]> 1681335695 -0600 committer Jodie <[email protected]> 1681917885 -0600 docs: update hugo theme and associated configs docs: update hugo theme and associated configs docs: add ignore commands to netlify config file chore: remove duplicate ignore from netlify config remove unused preview configuration
1 parent d5b8144 commit 121a508

File tree

284 files changed

+60
-150731
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+60
-150731
lines changed

docs/Makefile

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,51 @@
1-
.PHONY: docs clean hugo-mod docs-local docs-drafts
1+
THEME_MODULE = github.com/nginxinc/nginx-hugo-theme
2+
## Pulls the current theme version from the Netlify settings
3+
THEME_VERSION = $(NGINX_THEME_VERSION)
4+
NETLIFY_DEPLOY_URL = ${DEPLOY_PRIME_URL}
25

3-
docs:
4-
hugo server --disableFastRender
6+
.PHONY: all all-staging all-dev clean hugo-mod build-production build-staging build-dev docs-drafts docs
7+
8+
all: hugo-mod build-production
9+
10+
all-staging: hugo-mod build-staging
11+
12+
all-dev: hugo-mod build-dev
513

14+
# Removes the public directory generated by the `hugo` command
615
clean:
7-
rm -rf ./public
16+
if [[ -d ${PWD}/public ]] ; then rm -rf ${PWD}/public && echo "Removed public directory" ; else echo "Did not find a public directory to remove" ; fi
817

918
hugo-mod:
10-
hugo mod clean
11-
hugo mod get
19+
hugo mod get $(THEME_MODULE)@v$(THEME_VERSION)
1220

13-
docs-local: clean
14-
hugo
21+
# Builds using the Hugo "production" environment
22+
# For deploys to docs.nginx.com only
23+
build-production:
24+
./scripts/copy-docs.sh
25+
hugo --gc -e production
26+
27+
# Builds using the Hugo "staging" environment
28+
# For deploys to docs-staging.nginx.com only
29+
build-staging:
30+
./scripts/copy-docs.sh
31+
hugo --gc -e staging
1532

33+
# Builds using the Hugo "development" environment
34+
# For deploys to docs-dev.nginx.com only
35+
build-dev:
36+
./scripts/copy-docs.sh
37+
hugo --gc -e development
38+
39+
# Runs the Hugo server with content marked as draft
40+
# Serves docs at localhost:1313
1641
docs-drafts:
1742
hugo server -D --disableFastRender
43+
44+
# Runs the Hugo server
45+
# Serves docs at localhost:1313
46+
docs:
47+
hugo server --disableFastRender
48+
49+
deploy-preview: hugo-mod
50+
./scripts/copy-docs.sh
51+
hugo --gc -d public/nginx-service-mesh -b ${NETLIFY_DEPLOY_URL}/nginx-service-mesh

docs/_vendor/gitlab.com/f5/nginx/controller/poc/f5-hugo/archetypes/api.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/_vendor/gitlab.com/f5/nginx/controller/poc/f5-hugo/archetypes/blog.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/_vendor/gitlab.com/f5/nginx/controller/poc/f5-hugo/archetypes/concept.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/_vendor/gitlab.com/f5/nginx/controller/poc/f5-hugo/archetypes/default.md

Lines changed: 0 additions & 79 deletions
This file was deleted.

docs/_vendor/gitlab.com/f5/nginx/controller/poc/f5-hugo/archetypes/openapi.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/_vendor/gitlab.com/f5/nginx/controller/poc/f5-hugo/archetypes/policy.md

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)