Skip to content

Commit c4022c0

Browse files
authored
Updated hugo version and recommended pinned installation (#12205)
1 parent 44d624c commit c4022c0

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

.github/workflows/repository-documentation-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Hugo
2222
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
2323
with:
24-
hugo-version: '0.115.0'
24+
hugo-version: '0.136.5'
2525
extended: true
2626

2727
- name: Build

.github/workflows/repository-documentation-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Hugo
2020
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
2121
with:
22-
hugo-version: '0.115.0'
22+
hugo-version: '0.136.5'
2323
extended: true
2424

2525
- name: Build

docs/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ The docsite is generated using [Hugo](https://gohugo.io/) and hosted using Githu
22

33
To view locally:
44

5-
1. [Install Hugo](https://gohugo.io/installation/)
5+
1. Install Hugo v0.136.5
6+
```bash
7+
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/[email protected]
8+
```
69
2. Run `hugo server` inside the `docs` directory
710
3. Visit http://localhost:1313/magic-modules/ to view the docs
811

docs/go.mod

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module github.com/GoogleCloudPlatform/magic-modules/docs
22

33
go 1.23
4+
5+
require (
6+
github.com/alex-shpak/hugo-book v0.0.0-20240518104843-e104a11f42fb
7+
)

docs/go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/alex-shpak/hugo-book v0.0.0-20240518104843-e104a11f42fb h1:cP93DhBd5vM1Mt2qOFzhOUvyribG6yuKz6G4nmgyQrw=
2+
github.com/alex-shpak/hugo-book v0.0.0-20240518104843-e104a11f42fb/go.mod h1:L4NMyzbn15fpLIpmmtDg9ZFFyTZzw87/lk7M2bMQ7ds=

0 commit comments

Comments
 (0)