'docs_path : str, optional
The path to the documentation .rst files.'

@keyword()
def docs_path(self, docs_path, kwargs):

    if ((docs_path is not None) and (not kwargs[u'skip_docs'])):
        if (kwargs[u'package'] is not None):
            docs_path = os.path.join(docs_path, kwargs[u'package'].replace(u'.', os.path.sep))
        if (not os.path.exists(docs_path)):
            warnings.warn(u'Can    not    test    .rst    docs,    since    docs    path    ({0})    does    not    exist.'.format(docs_path))
            docs_path = None
    if (docs_path and (not kwargs[u'skip_docs']) and (not kwargs[u'test_path'])):
        return [docs_path, u'--doctest-rst']
    return []
