Skip to content

Commit

Permalink
Move out of submodule into hugo module
Browse files Browse the repository at this point in the history
Add go deps
Move into hugo.yaml
Additional changes to preserve same UI
  • Loading branch information
qu1queee committed Sep 18, 2024
1 parent 9fdc894 commit d6ac833
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 201 deletions.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ GEM
asciidoctor (2.0.17)

PLATFORMS
universal-darwin-23
x86_64-linux

DEPENDENCIES
Expand Down
18 changes: 8 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,17 @@ clean: ## clean the build assets
install: ## install dependencies
bundle
npm install
hugo mod get
hugo mod graph
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 +37,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
189 changes: 0 additions & 189 deletions config.toml

This file was deleted.

5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/shipwright-io/website

go 1.22.6

require github.com/google/docsy v0.10.0 // indirect
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
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/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
Loading

0 comments on commit d6ac833

Please sign in to comment.