#!/bin/bash
# combine MD and pictures into html file

(
  cat README.md

  printf "\n%s\n\n" "## examples"
  ls examples*.png \
    | sed 's+^+![](+;s+$+)+'
  
  printf "\n%s\n\n" "### pixel art ref sheet examples"
  ls refsheets*.png \
    | sed 's+^+![](+;s+$+)+'
  
  printf "\n%s\n\n" "### more pixel art examples"
  printf "\n%s\n\n" "(note: non humans i may wish to charge a little extra for as it takes more energy)"
  ls extras*.png \
    | sed 's+^+![](+;s+$+)+'
  
  printf "\n%s" "source: [web.zip](web.zip)"
) | lowdown -s \
  -m css=style.css \
  -m author=alifeee \
  -m title="art by styx" \
  > index.html

echo "wrote to index.html! :]"

