mirror of
https://github.com/nginx/documentation.git
synced 2025-07-25 16:01:24 +00:00
chore: update Makefile and contribution docs for Hugo bump (#718)
* chore: update Makefile to handle hugo bump to latest * chore: update hugo version ref in CONTRIBUTING_DOCS * CI: Update build-push job SHA ref --------- Co-authored-by: Alan Dooley <a.dooley@f5.com>
This commit is contained in:
2
.github/workflows/build-push.yml
vendored
2
.github/workflows/build-push.yml
vendored
@ -58,7 +58,7 @@ jobs:
|
||||
|
||||
call-docs-build-push:
|
||||
needs: prod-check-branch
|
||||
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@cc69def33942d819719164723b35b5163d838276 # v1.0.9
|
||||
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@285440f02d9967b62aeb1b7e0b5c2c70d4f950cf # v1.0.10
|
||||
with:
|
||||
production_url_path: ""
|
||||
preview_url_path: "${{ vars.PREVIEW_URL_PATH }}"
|
||||
|
10
Makefile
10
Makefile
@ -1,16 +1,16 @@
|
||||
HUGO?=hugo
|
||||
HUGO_VERSION?=$(shell hugo version 2>/dev/null | awk '{print $$2}' | cut -d '.' -f 2)
|
||||
HUGO_IMG?=hugomods/hugo:std-go-git-0.134.3
|
||||
HUGO_IMG?=hugomods/hugo:std-go-git-0.147.8
|
||||
|
||||
THEME_MODULE = github.com/nginxinc/nginx-hugo-theme
|
||||
|
||||
ifeq ($(shell [ $(HUGO_VERSION) -gt 133 2>/dev/null ] && echo true || echo false), true)
|
||||
$(info Hugo is available and has a version greater than 133. Proceeding with build.)
|
||||
ifeq ($(shell [ $(HUGO_VERSION) -gt 146 2>/dev/null ] && echo true || echo false), true)
|
||||
$(info Hugo is available and has a version greater than 146. Proceeding with build.)
|
||||
else
|
||||
$(warning Hugo is not available or using a version less than 134. Attempting to use docker. HUGO_VERSION=$(HUGO_VERSION))
|
||||
$(warning Hugo is not available or using a version less than 147. Attempting to use docker. HUGO_VERSION=$(HUGO_VERSION))
|
||||
HUGO=docker run --rm -it -v ${CURDIR}:/src -p 1313:1313 ${HUGO_IMG} /src/hugo-entrypoint.sh
|
||||
ifeq (, $(shell docker version 2> /dev/null))
|
||||
$(error Hugo (>0.134) or Docker are required to build the local previews.)
|
||||
$(error Hugo (>0.147) or Docker are required to build the local previews.)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -17,7 +17,7 @@ Read the [Hugo installation instructions](https://gohugo.io/getting-started/inst
|
||||
If you have [Docker](https://www.docker.com/get-started/) installed, there are fallbacks for all requirements in the [Makefile](Makefile), meaning you don't need to install them.
|
||||
|
||||
- [Installing Hugo](https://gohugo.io/getting-started/installing/)
|
||||
- **NOTE**: We are currently running [Hugo v0.134.2](https://github.com/gohugoio/hugo/releases/tag/v0.134.2) in production.
|
||||
- **NOTE**: We are currently running [Hugo v0.147.8](https://github.com/gohugoio/hugo/releases/tag/v0.147.8) in production.
|
||||
- [Installing markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli?tab=readme-ov-file#installation)
|
||||
- [Installing markdown-link-check](https://github.com/tcort/markdown-link-check?tab=readme-ov-file#installation)
|
||||
|
||||
|
Reference in New Issue
Block a user