Skip to content

Commit

Permalink
update Makefile and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1queee committed Sep 17, 2024
1 parent 09c42c0 commit ff9773a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
17 changes: 7 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ all: build

.PHONY: build
build: clean ## build the site
hugo -t docsy --minify
hugo -F --minify

.PHONY: build-preview
build-preview: clean ## build a preview, with future-dated content allowed.
hugo -t docsy -F --minify
hugo -F --minify

.PHONY: clean
clean: ## clean the build assets
Expand All @@ -17,15 +17,16 @@ clean: ## clean the build assets
install: ## install dependencies
bundle
npm install
go mod tidy
hugo mod get github.com/google/docsy

.PHONY: netlify
netlify: submodule-init ## build the site for Netlify
git submodule update --init --recursive --depth 1
netlify:
$(MAKE) install
$(MAKE) build

.PHONY: netlify-preview
netlify-preview: submodule-init ## build a preview of the site for Netlify
netlify-preview: ## build a preview of the site for Netlify
$(MAKE) install
$(MAKE) build-preview

Expand All @@ -35,8 +36,4 @@ serve: ## serve the content locally for testing

.PHONY: serve-preview
serve-preview: ## serve the preview content locally for testing
hugo -t docsy server -F

.PHONY: submodule-init
submodule-init:
git submodule update --init --recursive --depth 1
hugo -t docsy server -F
7 changes: 2 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
module github.com/shipwright-io/website

go 1.22.6
go 1.20

require (
github.com/google/docsy v0.10.1-0.20240529105443-333c2f8d4172 // indirect
github.com/google/docsy/dependencies v0.7.2 // indirect
)
require github.com/google/docsy v0.10.0 // indirect
6 changes: 0 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
github.com/google/docsy v0.10.1-0.20240529105443-333c2f8d4172 h1:1gAAuOfHRok/hJqfF+wpjOYqlH0d76dwUsskLEnOzxo=
github.com/google/docsy v0.10.1-0.20240529105443-333c2f8d4172/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI=
github.com/google/docsy/dependencies v0.7.2/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ publish="public/"
command="make netlify"

[build.environment]
HUGO_VERSION="0.99.1"
HUGO_VERSION="0.113.0"

[context.deploy-preview]
command="make netlify-preview"

0 comments on commit ff9773a

Please sign in to comment.