Functions
resolve_page_section_path
Resolve a page's section path as a string, handling multiple representations.
The page may expose …
resolve_page_section_path
def resolve_page_section_path(page: Any) -> str | None
Resolve a page's section path as a string, handling multiple representations.
The page may expose its section association in different ways depending on build phase or caching:
page.sectionmay be aSectionobject with a.pathattributepage.sectionmay already be a string path- It may be missing or falsy for root-level pages
Parameters 1
| Name | Type | Default | Description |
|---|---|---|---|
page |
Any |
— | Page-like object which may have a |
Returns
String path to the section (e.g., "docs/tutorials") or None if not set.str | None
—