Write rendered documentation to files

Closes #5.