|
@@ -402,8 +402,8 @@ def documentation_page() -> None:
|
|
|
|
|
|
@ui.page('/documentation/{name}')
|
|
@ui.page('/documentation/{name}')
|
|
async def documentation_page_more(name: str, client: Client) -> None:
|
|
async def documentation_page_more(name: str, client: Client) -> None:
|
|
- if name == 'ag_grid':
|
|
|
|
- name = 'aggrid' # NOTE: "AG Grid" leads to anchor name "ag_grid", but class is `ui.aggrid`
|
|
|
|
|
|
+ if name in {'ag_grid', 'e_chart'}:
|
|
|
|
+ name = name.replace('_', '') # NOTE: "AG Grid" leads to anchor name "ag_grid", but class is `ui.aggrid`
|
|
module = importlib.import_module(f'website.more_documentation.{name}_documentation')
|
|
module = importlib.import_module(f'website.more_documentation.{name}_documentation')
|
|
more = getattr(module, 'more', None)
|
|
more = getattr(module, 'more', None)
|
|
if hasattr(ui, name):
|
|
if hasattr(ui, name):
|