Skip to content

Commit

Permalink
(MAINT) Update docs site dependencies & build
Browse files Browse the repository at this point in the history
Prior to this change, the docs site could not build in GHA because
it was being built for a base URL that is in a folder after the
top-level domain name. This change updates the Hugo module dependencies
now that a fix for this bug was merged upstream for the schematize
module.

This change also corrects the module declaration for `gh-dash`, which
should not have any effect as the module is replaced with the local
reference in the configuration, but might as well be technically correct.

Finally, this change updates the GHA for building the site, removing the
`-u` flag from the module install, which updates the modules. This way,
dependency updates can be intentional and the `go.mod` / `go.sum` files
in the repository are the sources of truth.
  • Loading branch information
michaeltlombardi authored and dlvhdr committed May 5, 2023
1 parent 4230fa3 commit 028452f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yaml
Expand Up @@ -56,7 +56,7 @@ jobs:
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"

- name: Setup Hugo modules
run: hugo mod get -u
run: hugo mod get
working-directory: ./docs

- name: Build with Hugo
Expand Down
4 changes: 2 additions & 2 deletions docs/go.mod
Expand Up @@ -3,6 +3,6 @@ module github.com/dlvhdr/gh-dash/docs
go 1.19

require (
github.com/platenio/platen/modules/platen v0.0.0-20230504053552-c70b34ba1161 // indirect
github.com/platenio/platen/modules/schematize v0.0.0-20230504053552-c70b34ba1161 // indirect
github.com/platenio/platen/modules/platen v0.0.0-20230505122247-609ea1124a0a // indirect
github.com/platenio/platen/modules/schematize v0.0.0-20230505122247-609ea1124a0a // indirect
)
4 changes: 4 additions & 0 deletions docs/go.sum
Expand Up @@ -2,7 +2,11 @@ github.com/platenio/platen/modules/platen v0.0.0-20230417130935-f8a3fca1013d h1:
github.com/platenio/platen/modules/platen v0.0.0-20230417130935-f8a3fca1013d/go.mod h1:7pfizXCKb4vonp6Og/3zkoy09YYsHip9/hXiT/pc3IM=
github.com/platenio/platen/modules/platen v0.0.0-20230504053552-c70b34ba1161 h1:ggnlUsTuC2E4sGxASlX+qmMBtuYP0vkKWgVj8tZZDpE=
github.com/platenio/platen/modules/platen v0.0.0-20230504053552-c70b34ba1161/go.mod h1:7pfizXCKb4vonp6Og/3zkoy09YYsHip9/hXiT/pc3IM=
github.com/platenio/platen/modules/platen v0.0.0-20230505122247-609ea1124a0a h1:KGJf06tIhskc3foiPrp8mCn964g6WXaUZ4gc84CkgUg=
github.com/platenio/platen/modules/platen v0.0.0-20230505122247-609ea1124a0a/go.mod h1:7pfizXCKb4vonp6Og/3zkoy09YYsHip9/hXiT/pc3IM=
github.com/platenio/platen/modules/schematize v0.0.0-20230417130935-f8a3fca1013d h1:PhpSZzd1YFHCZzsJJinIHoMU3Bw/w/GPYkWXz/flnvU=
github.com/platenio/platen/modules/schematize v0.0.0-20230417130935-f8a3fca1013d/go.mod h1:0u7RXHeXIfNq9mAGzEu5T0UxdAa9D54y+ucI8oivs5M=
github.com/platenio/platen/modules/schematize v0.0.0-20230504053552-c70b34ba1161 h1:t0wxjK59xg5ggSEpWEZHtooO0COoV5oC/WFIPcJLhRM=
github.com/platenio/platen/modules/schematize v0.0.0-20230504053552-c70b34ba1161/go.mod h1:0u7RXHeXIfNq9mAGzEu5T0UxdAa9D54y+ucI8oivs5M=
github.com/platenio/platen/modules/schematize v0.0.0-20230505122247-609ea1124a0a h1:u1oDxHF2VElyGBZxJPqGU3ozEQvJWBfpjx6APNHEL24=
github.com/platenio/platen/modules/schematize v0.0.0-20230505122247-609ea1124a0a/go.mod h1:0u7RXHeXIfNq9mAGzEu5T0UxdAa9D54y+ucI8oivs5M=
4 changes: 2 additions & 2 deletions docs/hugo.yaml
Expand Up @@ -23,11 +23,11 @@ menu:

module:
replacements: >-
https://github.com/dlvhdr/gh-dash -> ../
github.com/dlvhdr/gh-dash -> ../
imports:
- path: github.com/platenio/platen/modules/platen
- path: github.com/platenio/platen/modules/schematize
- path: https://github.com/dlvhdr/gh-dash
- path: github.com/dlvhdr/gh-dash
ignoreConfig: true
ignoreImports: true

Expand Down

0 comments on commit 028452f

Please sign in to comment.