[doc] Fix minor errors in docs and create tools to detect them (#2016)