from textwrap import dedent


def default_myst_include(root_file: str) -> str:
    """Return string which is a MyST include directive pointing to `root_file`,
    located under `..` relative to `docs`. See:
    https://myst-parser.readthedocs.io/en/latest/sphinx/use.html#howto-include-readme
    """
    template_include = dedent(
        """\
        ```{include} ../{root_file}
        :relative-docs: docs/
        :relative-images:
        ```
        """
    )
    return template_include.replace("{root_file}", root_file)