build changes
This commit is contained in:
parent
f5b7d26cec
commit
2e470a4a3f
28
Makefile
28
Makefile
|
@ -7,7 +7,8 @@ site/index.html: docs/** \
|
||||||
theme/main.html \
|
theme/main.html \
|
||||||
theme/style.min.css \
|
theme/style.min.css \
|
||||||
theme/gruvbox-dark.min.css \
|
theme/gruvbox-dark.min.css \
|
||||||
mkdocs.yml
|
mkdocs.yml \
|
||||||
|
favicon_all
|
||||||
mkdocs build
|
mkdocs build
|
||||||
|
|
||||||
build: site/index.html
|
build: site/index.html
|
||||||
|
@ -30,12 +31,13 @@ theme/favicon-ex.png: theme/favicon.svg
|
||||||
inkscape theme/favicon.svg --export-filename=theme/favicon-ex.png
|
inkscape theme/favicon.svg --export-filename=theme/favicon-ex.png
|
||||||
|
|
||||||
theme/favicon.png: theme/favicon-ex.png
|
theme/favicon.png: theme/favicon-ex.png
|
||||||
magick theme/favicon-ex.png -compress Zip -quality 1 -resize 144x144 theme/favicon.png
|
magick theme/favicon-ex.png -quality 95 -resize 144x144 theme/favicon.png
|
||||||
|
|
||||||
theme/favicon.ico: theme/favicon-ex.png
|
# theme/favicon.ico: theme/favicon-ex.png
|
||||||
magick theme/favicon-ex.png -compress Zip -quality 1 -resize 144x144 theme/favicon.ico
|
# magick theme/favicon-ex.png -compress Zip -quality 95 -resize 144x144 -background transparent theme/favicon.ico
|
||||||
|
|
||||||
favicon_all: theme/favicon.png theme/favicon.ico
|
favicon_all: theme/favicon.png
|
||||||
|
# theme/favicon.ico
|
||||||
|
|
||||||
# Scripts
|
# Scripts
|
||||||
|
|
||||||
|
@ -59,12 +61,12 @@ purge: clean format build
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -r site/
|
rm -r site/ || true
|
||||||
rm theme/main.html
|
rm theme/main.html || true
|
||||||
rm theme/style.min.css
|
rm theme/style.min.css || true
|
||||||
rm theme/gruvbox-dark.min.css
|
rm theme/gruvbox-dark.min.css || true
|
||||||
rm theme/favicon-ex.png
|
rm theme/favicon-ex.png || true
|
||||||
rm theme/favicon.min.svg
|
rm theme/favicon.min.svg || true
|
||||||
rm theme/favicon.png
|
rm theme/favicon.png || true
|
||||||
rm theme/favicon.ico
|
rm theme/favicon.ico || true
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%meta(charset="UTF-8")
|
%meta(charset="UTF-8")
|
||||||
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
||||||
%link(rel="icon" type="image/png" href="/~tasiaiso/favicon.png")
|
%link(rel="icon" type="image/png" href="/~tasiaiso/favicon.png")
|
||||||
%link(rel="icon" type="image/x-icon" href="/~tasiaiso/favicon.ico")
|
-# %link(rel="icon" type="image/x-icon" href="/~tasiaiso/favicon.ico")
|
||||||
%link(rel="icon" type="image/svg+xml" href="/~tasiaiso/favicon.svg" sizes="any")
|
%link(rel="icon" type="image/svg+xml" href="/~tasiaiso/favicon.svg" sizes="any")
|
||||||
|
|
||||||
%link(rel="stylesheet" href="/~tasiaiso/gruvbox-dark.min.css")
|
%link(rel="stylesheet" href="/~tasiaiso/gruvbox-dark.min.css")
|
||||||
|
|
|
@ -6,6 +6,9 @@ pkgs.mkShell{
|
||||||
python310Packages.mkdocs
|
python310Packages.mkdocs
|
||||||
python310Packages.mkdocs-minify
|
python310Packages.mkdocs-minify
|
||||||
python310Packages.csscompressor
|
python310Packages.csscompressor
|
||||||
|
python310Packages.htmlmin # htmlmin --keep-optional-attribute-quotes theme/favicon.svg theme/favicon.min.svg
|
||||||
rubyPackages.haml
|
rubyPackages.haml
|
||||||
|
inkscape
|
||||||
|
imagemagick
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue