Some improvements to base page construction, and introducing raw docs
no link to docs until its done