Functions
is_autodoc_page
Check if a page is autodoc-generated.
Autodoc pages are identified by multiple signals:
**Frontma…
is_autodoc_page
def is_autodoc_page(page: Page | Any) -> bool
Check if a page is autodoc-generated.
Autodoc pages are identified by multiple signals:
Frontmatter Indicators:
- Type starting with "python-" (python-module, python-class, etc.)
- Type "cli-reference" or "api-reference"
- Presence of "source_file" field
- Generator metadata "bengal-autodoc"
- Presence of "_api_doc" marker
Content Indicators:
- Content containing "Generated by Bengal autodoc"
- Content containing "Generated by Bengal"
Path Indicators:
- Source path contains "/api/"
- Source path ends with "/api"
Parameters 1
| Name | Type | Default | Description |
|---|---|---|---|
page |
Page | Any |
— | Page object to check. Can be a Page, PageProxy, or any object with metadata/frontmatter and content attributes. |
Returns
True if page is autodoc-generatedbool
—