-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run hugo via
go run
and lock its version (#22206)
- Don't rely on obscure docker images like `plugins/hugo` - Lock down `hugo` to same version the image had used - Remove unnecessary verbosity in `trans-copy` - Rename `trans-copy` to `trans-copy.sh` Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: John Olheiser <[email protected]> Co-authored-by: techknowlogick <[email protected]>
- Loading branch information
1 parent
8e17fb5
commit 3affb02
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ THEME := themes/gitea | |
PUBLIC := public | ||
ARCHIVE := https://dl.gitea.io/theme/master.tar.gz | ||
|
||
HUGO_PACKAGE := github.com/gohugoio/[email protected] | ||
|
||
.PHONY: all | ||
all: build | ||
|
||
|
@@ -11,19 +13,19 @@ clean: | |
|
||
.PHONY: trans-copy | ||
trans-copy: | ||
@bash scripts/trans-copy | ||
bash scripts/trans-copy.sh | ||
|
||
.PHONY: server | ||
server: $(THEME) | ||
hugo server | ||
go run $(HUGO_PACKAGE) server | ||
|
||
.PHONY: build | ||
build: $(THEME) | ||
hugo --cleanDestinationDir | ||
go run $(HUGO_PACKAGE) --cleanDestinationDir | ||
|
||
.PHONY: build-offline | ||
build-offline: $(THEME) | ||
hugo --baseURL="/" --cleanDestinationDir | ||
go run $(HUGO_PACKAGE) --baseURL="/" --cleanDestinationDir | ||
|
||
.PHONY: update | ||
update: $(THEME) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters