def strip_path(path, strip):
    """Strip `path` components ends on `strip`
    """
    strip = strip.replace('\\', '/')
    if not strip.endswith('/'):
        strip = strip + '/'
    new_path = path.split(strip)[-1]
    if new_path.startswith('build/docs/'):
        new_path = new_path.split('build/docs/')[-1]
    return new_path