<commit_before>SUB=<!--REPLACE-->
TMPL=template.html

all: clean pandoc template

# use pandoc to convert md to html files
# turn off highlight for code since it conflicts with reveal.js
pandoc: README.md html-notes.md css-notes.md
	pandoc README.md -o README.html --no-highlight
	pandoc html-notes.md -o html-notes.html --no-highlight
	pandoc css-notes.md -o css-notes.html --no-highlight
	pandoc resources.md -o resources.html --no-highlight

# get contents from our notes html file into the template file
# the template file contains boiler plate for the slide
# so each resulting html is itself a reveal.js slide
template: html-notes.html css-notes.html
	sed -e '/$(SUB)/r README.html'      -e '/$(SUB)/d' $(TMPL) > index.html
	sed -e '/$(SUB)/r html-notes.html' -e '/$(SUB)/d' $(TMPL) > html-slides.html
	sed -e '/$(SUB)/r css-notes.html'  -e '/$(SUB)/d' $(TMPL) > css-slides.html
	sed -e '/$(SUB)/r resources.html'  -e '/$(SUB)/d' $(TMPL) > resources-slides.html
	rm -rf README.html
	rm -rf html-notes.html
	rm -rf css-notes.html
	rm -rf resources.html


.PHONY: clean

clean:
	rm -f index.html html-slides.html css-slides.html resources-slides.html
<commit_msg>update Makefile for git notes<commit_after>SUB=<!--REPLACE-->
TMPL=template.html

all: clean pandoc template

# use pandoc to convert md to html files
# turn off highlight for code since it conflicts with reveal.js
pandoc: README.md html-notes.md css-notes.md git-notes.md
	pandoc README.md     -o README.html     --no-highlight
	pandoc html-notes.md -o html-notes.html --no-highlight
	pandoc css-notes.md  -o css-notes.html  --no-highlight
	pandoc git-notes.md  -o git-notes.html  --no-highlight
	pandoc resources.md  -o resources.html  --no-highlight

# get contents from our notes html file into the template file
# the template file contains boiler plate for the slide
# so each resulting html is itself a reveal.js slide
template: html-notes.html css-notes.html
	sed -e '/$(SUB)/r README.html'     -e '/$(SUB)/d' $(TMPL) > index.html
	sed -e '/$(SUB)/r html-notes.html' -e '/$(SUB)/d' $(TMPL) > html-slides.html
	sed -e '/$(SUB)/r css-notes.html'  -e '/$(SUB)/d' $(TMPL) > css-slides.html
	sed -e '/$(SUB)/r git-notes.html'  -e '/$(SUB)/d' $(TMPL) > git-slides.html
	sed -e '/$(SUB)/r resources.html'  -e '/$(SUB)/d' $(TMPL) > resources-slides.html
	rm -rf README.html
	rm -rf html-notes.html
	rm -rf css-notes.html
	rm -rf git-notes.html
	rm -rf resources.html


.PHONY: clean

clean:
	rm -f index.html html-slides.html css-slides.html git-notes.html resources-slides.html

{'fraction_non_alphanumeric': 0.1519434628975265, 'fraction_numerical': 0.0, 'mean_word_length': 3.2325581395348837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '5838956', 'n_tokens_mistral': 938, 'n_tokens_neox': 924, 'n_words': 288}