Tidy up docs build system