Fix broken links and add mocking to the documentation