1
0
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:
Carlos Alexandro Becker 2018-10-30 23:53:51 -03:00 committed by Carlos Alexandro Becker
parent 7941abc62d
commit 3218dddb61
5 changed files with 17 additions and 1098 deletions

View File

@ -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
View 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

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 581 B