Functions
get_reserved_namespaces
1
dict[str, dict[str, Any]]
▼
Get all reserved namespaces including dynamically configured prefixes.
Returns…
get_reserved_namespaces
1
dict[str, dict[str, Any]]
▼
def get_reserved_namespaces(site_config: dict[str, Any] | None = None) -> dict[str, dict[str, Any]]
Get all reserved namespaces including dynamically configured prefixes.
Returns the base reserved namespaces plus any additional namespaces configured through autodoc settings in the site configuration.
Parameters
| Name | Type | Description |
|---|---|---|
site_config |
dict[str, Any] | None |
Site configuration dictionary. If provided, autodoc prefixes are extracted and added to the reserved namespaces. Default:None
|
Returns
dict[str, dict[str, Any]]
is_reserved_namespace
2
tuple[bool, str | None]
▼
Check if a URL falls within a reserved namespace.
Examines the first path segm…
is_reserved_namespace
2
tuple[bool, str | None]
▼
def is_reserved_namespace(url: str, site_config: dict[str, Any] | None = None) -> tuple[bool, str | None]
Check if a URL falls within a reserved namespace.
Examines the first path segment of the URL to determine if it matches any reserved namespace prefix.
Parameters
| Name | Type | Description |
|---|---|---|
url |
str |
URL to check (e.g., |
site_config |
dict[str, Any] | None |
Site configuration dictionary. If provided, includes dynamically configured autodoc namespaces in the check. Default:None
|
Returns
tuple[bool, str | None]