def _get_file_name(name: str, is_step: bool) ->str:
    """
    Gets a file name for the generated doc files.

    :param name: Name of a folder or file.
    :param is_step: If name is related to step file or not.
    :return: The file name for the doc file.
    """
    file_name = name.replace('_', '-')
    if is_step:
        file_name = f'{file_name}-steps.rst'
    else:
        file_name = f'{file_name}.rst'
    return file_name
