build changes

This commit is contained in:
Tasia Iso 2024-05-30 09:57:46 +02:00
parent f5b7d26cec
commit 2e470a4a3f
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
3 changed files with 19 additions and 14 deletions

View file

@ -7,7 +7,8 @@ site/index.html: docs/** \
theme/main.html \
theme/style.min.css \
theme/gruvbox-dark.min.css \
mkdocs.yml
mkdocs.yml \
favicon_all
mkdocs build
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
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
magick theme/favicon-ex.png -compress Zip -quality 1 -resize 144x144 theme/favicon.ico
# theme/favicon.ico: theme/favicon-ex.png
# 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
@ -59,12 +61,12 @@ purge: clean format build
.PHONY: clean
clean:
rm -r site/
rm theme/main.html
rm theme/style.min.css
rm theme/gruvbox-dark.min.css
rm theme/favicon-ex.png
rm theme/favicon.min.svg
rm theme/favicon.png
rm theme/favicon.ico
rm -r site/ || true
rm theme/main.html || true
rm theme/style.min.css || true
rm theme/gruvbox-dark.min.css || true
rm theme/favicon-ex.png || true
rm theme/favicon.min.svg || true
rm theme/favicon.png || true
rm theme/favicon.ico || true

View file

@ -4,7 +4,7 @@
%meta(charset="UTF-8")
%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/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="stylesheet" href="/~tasiaiso/gruvbox-dark.min.css")

View file

@ -6,6 +6,9 @@ pkgs.mkShell{
python310Packages.mkdocs
python310Packages.mkdocs-minify
python310Packages.csscompressor
python310Packages.htmlmin # htmlmin --keep-optional-attribute-quotes theme/favicon.svg theme/favicon.min.svg
rubyPackages.haml
inkscape
imagemagick
];
}