<commit_before>MARKDOWN_FILES = $(wildcard doc/*.md)
HTML_FILES = $(MARKDOWN_FILES:doc/%.md=target/doc/%.html)

all: doc

publish: doc
	cd target/doc && surge

doc: cargo_doc $(HTML_FILES) target/doc/rust.css target/doc/CNAME

clean:
	rm -rf target/doc

cargo_doc:
	cargo doc

target/doc/%.html: doc/%.md
	rustdoc --markdown-playground-url='https://play.rust-lang.org' --markdown-css rust.css $< --output=target/doc

target/doc/rust.css:
	curl -s https://raw.githubusercontent.com/rust-lang/rust/master/src/doc/rust.css > target/doc/rust.css<commit_msg>neon-sys docs included in api docs<commit_after>MARKDOWN_FILES = $(wildcard doc/*.md)
HTML_FILES = $(MARKDOWN_FILES:doc/%.md=target/doc/%.html)

all: doc

publish: doc
	cd target/doc && surge

doc: neon_api neon_sys_api $(HTML_FILES) target/doc/rust.css target/doc/CNAME

clean:
	rm -rf target/doc

neon_api:
	cargo doc

neon_sys_api:
	cd crates/neon-sys && cargo doc
	cp -R crates/neon-sys/target/doc/neon_sys ./target/doc/

target/doc/%.html: doc/%.md
	rustdoc --markdown-playground-url='https://play.rust-lang.org' --markdown-css rust.css $< --output=target/doc

target/doc/rust.css:
	curl -s https://raw.githubusercontent.com/rust-lang/rust/master/src/doc/rust.css > target/doc/rust.css
{'fraction_non_alphanumeric': 0.16411906677393404, 'fraction_numerical': 0.0, 'mean_word_length': 4.036437246963563, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '385657', 'n_tokens_mistral': 500, 'n_tokens_neox': 477, 'n_words': 86}