adding some special consideration for mocking during the docs build