From 25c04ddf9dc18ffcec2aeb8d031dc0085e323057 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 20 Mar 2022 18:50:08 +0530 Subject: website: Use Charter as main body font. * Makefile (fonts): New variable. (website/fonts): New target. (website): Depend on website/fonts. (clean): Clean website/fonts. * website/style.css (@font-face: Charter): New font face. (body): Set font-family to Charter. Set font-size to 20px. * .gitignore: Add website/fonts. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c2f932a..1b71874 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ doc_skribilo_config_go = $(doc_skribilo_config:.scm=.go) doc_sources = doc/forge.skb doc_snippets = $(wildcard doc/snippets/*.scm) doc_html = $(doc_sources:.skb=.html) +fonts = $(addprefix $(GUIX_ENVIRONMENT)/share/fonts/web/, charter_regular.woff2) .PHONY: all html clean all: ; @@ -40,7 +41,7 @@ $(doc_html): $(doc_sources) $(doc_snippets) $(sources) $(doc_skribilo_config_go) mkdir -p $@ GUILE_LOAD_PATH=$(CURDIR):$(GUILE_LOAD_PATH) GUILE_LOAD_COMPILED_PATH=$(CURDIR):$(GUILE_LOAD_COMPILED_PATH) $(SKRIBILO) --target=html $< --output=$@/index.html -website: website/index.html website/manual/dev/en +website: website/index.html website/manual/dev/en website/fonts website/index.html: README.org build-aux/build-home-page.el $(EMACS) -Q --batch --load build-aux/build-home-page.el --funcall build-website @@ -50,5 +51,10 @@ website/manual/dev/en: $(doc_html) mkdir -p $(dir $@) cp -vr $^ $@ +website/fonts: $(fonts) + rm -rf $@ + mkdir -p $@ + cp -v $^ $@/ + clean: - rm -rf $(doc_skribilo_config_go) website/index.html website/manual + rm -rf $(doc_skribilo_config_go) website/index.html website/manual website/fonts -- cgit v1.2.3