Fix/docbuild

closes #895