---------------------------------------------------------------------- This is the API documentation for the gdtest_toc_depth library. ---------------------------------------------------------------------- ## Functions Public functions outline(doc: str) -> list Generate an outline for the given document. Parameters ---------- doc : str The document content to outline. Returns ------- list A list of section headings. Examples -------- >>> outline("Chapter 1") ['Chapter 1'] expand(section: str) -> dict Expand a section into its subsections. Parameters ---------- section : str The section name to expand. Returns ------- dict A dictionary with the section and its children. Examples -------- >>> expand("intro") {'section': 'intro', 'children': []}