Add script to autogenerate reference documentation.