'Build search data with separate build'

def build_docs_search(self):

    if self.build_search:
        if self.project.is_type_mkdocs:
            return self.build_docs_class('mkdocs_json')
        if self.project.is_type_sphinx:
            return self.build_docs_class('sphinx_search')
    return False
