<commit_before>MD = $(shell find . -name '*.md' ! -path './node_modules/*' ! -path './drafts/*' ! -path './README.md' | sed 's,^./,,')
HTML = $(MD:%.md=dist/%.html)
ICONS = dist/img/icons/403-instagram.svg dist/img/icons/407-twitter.svg dist/img/icons/414-youtube.svg dist/img/icons/433-github.svg dist/img/icons/452-soundcloud.svg dist/img/icons/458-linkedin.svg
ASSETS = dist/css/normalize.css dist/css/github.css dist/css/main.css dist/js/main.js $(ICONS)

build: dist $(HTML) $(ASSETS)

dist:
	git clone --branch gh-pages $$(git remote get-url origin) dist

clean:
	rm -f $(HTML)

dist/index.html: index.md head.html foot.html
	mkdir -p $$(dirname $@)
	./render $< | sed 's/class="page"/class="page index"/' > $@<commit_msg>Optimize dist folder<commit_after>MD = $(shell find . -name '*.md' ! -path './node_modules/*' ! -path './drafts/*' ! -path './README.md' | sed 's,^./,,')
HTML = $(MD:%.md=dist/%.html)
ICONS = dist/img/icons/403-instagram.svg dist/img/icons/407-twitter.svg dist/img/icons/414-youtube.svg dist/img/icons/433-github.svg dist/img/icons/452-soundcloud.svg dist/img/icons/458-linkedin.svg
ASSETS = dist/css/normalize.css dist/css/github.css dist/css/main.css dist/js/main.js $(ICONS)

build: dist $(HTML) $(ASSETS)

dist:
	git worktree add dist gh-pages

clean:
	rm -f $(HTML)

dist/index.html: index.md head.html foot.html
	mkdir -p $$(dirname $@)
	./render $< | sed 's/class="page"/class="page index"/' > $@
{'fraction_non_alphanumeric': 0.21313766596785463, 'fraction_numerical': 0.025157232704402517, 'mean_word_length': 3.6493506493506493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3444776', 'n_tokens_mistral': 590, 'n_tokens_neox': 541, 'n_words': 112}