Skip to content

Commit

Permalink
util: Update Hugo and Go (TheThingsIndustries#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking authored Apr 6, 2022
1 parent 325271e commit f8ebb58
Show file tree
Hide file tree
Showing 6 changed files with 970 additions and 578 deletions.
122 changes: 61 additions & 61 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,64 @@ jobs:
name: Build docs
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Editor config
uses: snow-actions/[email protected]
continue-on-error: true
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '~1.17'
- name: Get Go module cache directory path
id: go-module-cache-dir-path
run: echo "::set-output name=dir::$(go env GOMODCACHE)"
- name: Initialize Go module cache
uses: actions/cache@v2
with:
path: ${{ steps.go-module-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download Go dependencies
run: make go.deps
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '~16'
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(npx yarn cache dir)"
- name: Initialize Yarn module cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Download Yarn dependencies
run: make js.deps
- name: Initialize Hugo binary cache
id: cache-hugo
uses: actions/cache@v2
with:
path: hugo.linux
key: ${{ runner.os }}-hugo-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugo-
- name: Build Hugo binary
if: steps.cache-hugo.outputs.cache-hit != 'true'
run: make hugo.linux
- name: Build docs
run: make build.public
env:
HUGO: ./hugo.linux
HUGO_BASE_URL: https://www.thethingsindustries.com/docs
HUGO_GOOGLEANALYTICS: ${{ secrets.HUGO_GOOGLEANALYTICS }}
HUGO_PARAMS_FEEDBACK_CAMPAIGN: ${{ secrets.HUGO_PARAMS_FEEDBACK_CAMPAIGN }}
HUGO_PARAMS_FEEDBACK_ENABLED: true
HUGO_PARAMS_INTERCOM_APPID: ${{ secrets.HUGO_PARAMS_INTERCOM_APPID }}
HUGO_PARAMS_INTERCOM_ENABLED: true
HUGO_PARAMS_SEARCH_APIKEY: ${{ secrets.HUGO_PARAMS_SEARCH_APIKEY }}
HUGO_PARAMS_SEARCH_ENABLED: true
HUGO_PARAMS_SEARCH_INDEX: thethingsstack
- name: Check out code
uses: actions/checkout@v2
- name: Editor config
uses: snow-actions/[email protected]
continue-on-error: true
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "~1.18"
- name: Get Go module cache directory path
id: go-module-cache-dir-path
run: echo "::set-output name=dir::$(go env GOMODCACHE)"
- name: Initialize Go module cache
uses: actions/cache@v2
with:
path: ${{ steps.go-module-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download Go dependencies
run: make go.deps
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "~16"
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(npx yarn cache dir)"
- name: Initialize Yarn module cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Download Yarn dependencies
run: make js.deps
- name: Initialize Hugo binary cache
id: cache-hugo
uses: actions/cache@v2
with:
path: hugo.linux
key: ${{ runner.os }}-hugo-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugo-
- name: Build Hugo binary
if: steps.cache-hugo.outputs.cache-hit != 'true'
run: make hugo.linux
- name: Build docs
run: make build.public
env:
HUGO: ./hugo.linux
HUGO_BASE_URL: https://www.thethingsindustries.com/docs
HUGO_GOOGLEANALYTICS: ${{ secrets.HUGO_GOOGLEANALYTICS }}
HUGO_PARAMS_FEEDBACK_CAMPAIGN: ${{ secrets.HUGO_PARAMS_FEEDBACK_CAMPAIGN }}
HUGO_PARAMS_FEEDBACK_ENABLED: true
HUGO_PARAMS_INTERCOM_APPID: ${{ secrets.HUGO_PARAMS_INTERCOM_APPID }}
HUGO_PARAMS_INTERCOM_ENABLED: true
HUGO_PARAMS_SEARCH_APIKEY: ${{ secrets.HUGO_PARAMS_SEARCH_APIKEY }}
HUGO_PARAMS_SEARCH_ENABLED: true
HUGO_PARAMS_SEARCH_INDEX: thethingsstack
132 changes: 66 additions & 66 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,69 +10,69 @@ jobs:
name: Release docs
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '~1.17'
- name: Get Go module cache directory path
id: go-module-cache-dir-path
run: echo "::set-output name=dir::$(go env GOMODCACHE)"
- name: Initialize Go module cache
uses: actions/cache@v2
with:
path: ${{ steps.go-module-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download Go dependencies
run: make go.deps
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '~16'
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(npx yarn cache dir)"
- name: Initialize Yarn module cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Download Yarn dependencies
run: make js.deps
- name: Initialize Hugo binary cache
id: cache-hugo
uses: actions/cache@v2
with:
path: hugo.linux
key: ${{ runner.os }}-hugo-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugo-
- name: Build Hugo binary
if: steps.cache-hugo.outputs.cache-hit != 'true'
run: make hugo.linux
- name: Build docs
run: make build.public
env:
HUGO: ./hugo.linux
HUGO_BASE_URL: https://www.thethingsindustries.com/docs
HUGO_GOOGLEANALYTICS: ${{ secrets.HUGO_GOOGLEANALYTICS }}
HUGO_PARAMS_FEEDBACK_CAMPAIGN: ${{ secrets.HUGO_PARAMS_FEEDBACK_CAMPAIGN }}
HUGO_PARAMS_FEEDBACK_ENABLED: true
HUGO_PARAMS_INTERCOM_APPID: ${{ secrets.HUGO_PARAMS_INTERCOM_APPID }}
HUGO_PARAMS_INTERCOM_ENABLED: true
HUGO_PARAMS_SEARCH_APIKEY: ${{ secrets.HUGO_PARAMS_SEARCH_APIKEY }}
HUGO_PARAMS_SEARCH_ENABLED: true
HUGO_PARAMS_SEARCH_INDEX: thethingsstack
- name: Deploy documentation to Github pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: public
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "~1.18"
- name: Get Go module cache directory path
id: go-module-cache-dir-path
run: echo "::set-output name=dir::$(go env GOMODCACHE)"
- name: Initialize Go module cache
uses: actions/cache@v2
with:
path: ${{ steps.go-module-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download Go dependencies
run: make go.deps
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "~16"
- name: Get Yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(npx yarn cache dir)"
- name: Initialize Yarn module cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Download Yarn dependencies
run: make js.deps
- name: Initialize Hugo binary cache
id: cache-hugo
uses: actions/cache@v2
with:
path: hugo.linux
key: ${{ runner.os }}-hugo-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugo-
- name: Build Hugo binary
if: steps.cache-hugo.outputs.cache-hit != 'true'
run: make hugo.linux
- name: Build docs
run: make build.public
env:
HUGO: ./hugo.linux
HUGO_BASE_URL: https://www.thethingsindustries.com/docs
HUGO_GOOGLEANALYTICS: ${{ secrets.HUGO_GOOGLEANALYTICS }}
HUGO_PARAMS_FEEDBACK_CAMPAIGN: ${{ secrets.HUGO_PARAMS_FEEDBACK_CAMPAIGN }}
HUGO_PARAMS_FEEDBACK_ENABLED: true
HUGO_PARAMS_INTERCOM_APPID: ${{ secrets.HUGO_PARAMS_INTERCOM_APPID }}
HUGO_PARAMS_INTERCOM_ENABLED: true
HUGO_PARAMS_SEARCH_APIKEY: ${{ secrets.HUGO_PARAMS_SEARCH_APIKEY }}
HUGO_PARAMS_SEARCH_ENABLED: true
HUGO_PARAMS_SEARCH_INDEX: thethingsstack
- name: Deploy documentation to Github pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: public
Empty file added doc/.hugo_build.lock
Empty file.
102 changes: 98 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,103 @@
module go.thethings.network/lorawan-stack-docs/v3

go 1.14
go 1.18

require github.com/gohugoio/hugo v0.96.0

require (
github.com/TheThingsIndustries/magepkg v0.0.0-20190214092847-6c0299b7c3ed // indirect
github.com/gobuffalo/envy v1.9.0 // indirect
github.com/gohugoio/hugo v0.70.0
cloud.google.com/go v0.100.2 // indirect
cloud.google.com/go/compute v1.3.0 // indirect
cloud.google.com/go/iam v0.2.0 // indirect
cloud.google.com/go/storage v1.14.0 // indirect
github.com/Azure/azure-pipeline-go v0.2.2 // indirect
github.com/Azure/azure-storage-blob-go v0.9.0 // indirect
github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/aws/aws-sdk-go v1.43.5 // indirect
github.com/bep/debounce v1.2.0 // indirect
github.com/bep/gitmap v1.1.2 // indirect
github.com/bep/goat v0.5.0 // indirect
github.com/bep/godartsass v0.14.0 // indirect
github.com/bep/golibsass v1.0.0 // indirect
github.com/bep/gowebp v0.1.0 // indirect
github.com/bep/tmc v0.5.1 // indirect
github.com/clbanning/mxj/v2 v2.5.5 // indirect
github.com/cli/safeexec v1.0.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
github.com/disintegration/gift v1.2.1 // indirect
github.com/dlclark/regexp2 v1.4.0 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/evanw/esbuild v0.14.25 // indirect
github.com/frankban/quicktest v1.14.2 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/getkin/kin-openapi v0.93.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/swag v0.19.5 // indirect
github.com/gobuffalo/flect v0.2.4 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013 // indirect
github.com/gohugoio/locales v0.14.0 // indirect
github.com/gohugoio/localescompressed v0.15.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/google/wire v0.4.0 // indirect
github.com/googleapis/gax-go v2.0.2+incompatible // indirect
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/hairyhenderson/go-codeowners v0.2.3-0.20201026200250-cdc7c0759690 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jdkato/prose v1.2.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/kyokomi/emoji/v2 v2.2.9 // indirect
github.com/magefile/mage v1.12.1 // indirect
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e // indirect
github.com/mattn/go-ieproxy v0.0.1 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mitchellh/hashstructure v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/muesli/smartcrop v0.3.0 // indirect
github.com/niklasfasching/go-org v1.6.2 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.0-beta.6 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rogpeppe/go-internal v1.8.1 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd // indirect
github.com/sanity-io/litter v1.5.2 // indirect
github.com/spf13/afero v1.8.1 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/cobra v1.4.0 // indirect
github.com/spf13/fsync v0.9.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tdewolff/minify/v2 v2.10.0 // indirect
github.com/tdewolff/parse/v2 v2.5.27 // indirect
github.com/yuin/goldmark v1.4.11 // indirect
go.opencensus.io v0.23.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
gocloud.dev v0.20.0 // indirect
golang.org/x/image v0.0.0-20211028202545-6944b10bf410 // indirect
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.9 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
google.golang.org/api v0.70.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c // indirect
google.golang.org/grpc v1.44.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit f8ebb58

Please sign in to comment.