DOCS-1476: breaking resolution of internal links and improved build cleanup