Updated generate script with TJ's latest changes.
Converted main docs page to markdown, added base docs template.