Added rtd check in docs config for local theme