mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
docs: always re-generate favicons et al
This commit is contained in:
parent
7941abc62d
commit
3218dddb61
17
Makefile
17
Makefile
@ -45,25 +45,26 @@ build:
|
||||
.PHONY: build
|
||||
|
||||
# Generate the static documentation
|
||||
static:
|
||||
static: depgraph favicon
|
||||
@hugo --enableGitInfo --source www
|
||||
.PHONY: static
|
||||
|
||||
# Generate the dependencies graph
|
||||
depgraph:
|
||||
GO111MODULE=off go get github.com/kisielk/godepgraph
|
||||
godepgraph -horizontal -s -o github.com/goreleaser/goreleaser . | dot -Tsvg -o www/static/deps.svg
|
||||
.PHONY: depgraph
|
||||
|
||||
favicon:
|
||||
wget -O www/static/avatar.png https://avatars2.githubusercontent.com/u/24697112
|
||||
convert www/static/avatar.png -define icon:auto-resize=64,48,32,16 www/static/favicon.ico
|
||||
convert www/static/avatar.png -resize x120 www/static/apple-touch-icon.png
|
||||
.PHONY: favicon
|
||||
|
||||
serve:
|
||||
@hugo server --enableGitInfo --watch --source www --disableFastRender
|
||||
serve: depgraph favicon
|
||||
@hugo server --enableGitInfo --watch --source www
|
||||
.PHONY: serve
|
||||
|
||||
depgraph:
|
||||
go get github.com/kisielk/godepgraph
|
||||
godepgraph -horizontal -s -o github.com/goreleaser/goreleaser . | dot -Tsvg -o www/static/deps.svg
|
||||
.PHONY: depgraph
|
||||
|
||||
# Show to-do items per file.
|
||||
todo:
|
||||
@grep \
|
||||
|
4
www/static/.gitignore
vendored
Normal file
4
www/static/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
deps.svg
|
||||
avatar.png
|
||||
apple-touch-icon.png
|
||||
favicon.ico
|
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.9 MiB |
1094
www/static/deps.svg
1094
www/static/deps.svg
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 581 B |
Loading…
x
Reference in New Issue
Block a user