Explorar el Código

Merge pull request #1451 from natankeddem/echart_doc_fix

ECharts more documentation broken
Falko Schindler hace 1 año
padre
commit
ee8d090ce5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      main.py

+ 2 - 2
main.py

@@ -402,8 +402,8 @@ def documentation_page() -> None:
 
 @ui.page('/documentation/{name}')
 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')
     more = getattr(module, 'more', None)
     if hasattr(ui, name):