diff --git a/.github/workflows/repository-documentation-deploy.yml b/.github/workflows/repository-documentation-deploy.yml index 630b49fdcd8a..a891aaac863a 100644 --- a/.github/workflows/repository-documentation-deploy.yml +++ b/.github/workflows/repository-documentation-deploy.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0 with: - hugo-version: '0.115.0' + hugo-version: '0.136.5' extended: true - name: Build diff --git a/.github/workflows/repository-documentation-test.yml b/.github/workflows/repository-documentation-test.yml index ea15e4aa3188..f6359d3b9071 100644 --- a/.github/workflows/repository-documentation-test.yml +++ b/.github/workflows/repository-documentation-test.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0 with: - hugo-version: '0.115.0' + hugo-version: '0.136.5' extended: true - name: Build diff --git a/docs/README.md b/docs/README.md index cbeb9275d177..a73f37b50479 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,7 +2,10 @@ The docsite is generated using [Hugo](https://gohugo.io/) and hosted using Githu To view locally: -1. [Install Hugo](https://gohugo.io/installation/) +1. Install Hugo v0.136.5 + ```bash + CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@v0.136.5 + ``` 2. Run `hugo server` inside the `docs` directory 3. Visit http://localhost:1313/magic-modules/ to view the docs diff --git a/docs/go.mod b/docs/go.mod index 77f2a53a2c6f..accdfed45c78 100644 --- a/docs/go.mod +++ b/docs/go.mod @@ -1,3 +1,7 @@ module github.com/GoogleCloudPlatform/magic-modules/docs go 1.23 + +require ( + github.com/alex-shpak/hugo-book v0.0.0-20240518104843-e104a11f42fb +) diff --git a/docs/go.sum b/docs/go.sum index e69de29bb2d1..ccafd3dad696 100644 --- a/docs/go.sum +++ b/docs/go.sum @@ -0,0 +1,2 @@ +github.com/alex-shpak/hugo-book v0.0.0-20240518104843-e104a11f42fb h1:cP93DhBd5vM1Mt2qOFzhOUvyribG6yuKz6G4nmgyQrw= +github.com/alex-shpak/hugo-book v0.0.0-20240518104843-e104a11f42fb/go.mod h1:L4NMyzbn15fpLIpmmtDg9ZFFyTZzw87/lk7M2bMQ7ds=