Passively capture, archive, and hoard your web browsing history, including the contents of the pages you visit, for later offline viewing, replay, mirroring, data scraping, and/or indexing. Your own personal private Wayback Machine that can also archive HTTP POST
requests and responses, as well as most other HTTP
-level data.
#!/bin/sh -e
echo '$table-of-contents$' > toc.template
for i in 0 1; do
{
echo "# Table of Contents"
echo "<details><summary>(Click me to see it.)</summary>"
pandoc --wrap=none --toc --template=toc.template -M title=toc -f markdown -t html README.md \
| sed '/Table of Contents/ d; s%<span id="[^"]*"/>%%'
echo "</details>"
echo
sed -n "/# What is/,$ p" README.md
} > README.new
mv README.new README.md
done
pandoc -f markdown -t html README.md > README.html