This is an automated email from the ASF dual-hosted git repository. rusackas pushed a commit to branch developer_portal in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/developer_portal by this push: new 8497cc84ab Mermaid works! 8497cc84ab is described below commit 8497cc84ab9014b33a33ff1396d334d53b56c6b8 Author: Evan Rusackas <e...@rusackas.com> AuthorDate: Wed Jul 16 16:17:03 2025 +0200 Mermaid works! --- docs/developer_portal/index.md | 18 ++++++++++++++++++ docs/docusaurus.config.ts | 7 +++++++ docs/package.json | 2 +- docs/yarn.lock | 2 +- 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/docs/developer_portal/index.md b/docs/developer_portal/index.md index ef32d28d6b..813070a8d9 100644 --- a/docs/developer_portal/index.md +++ b/docs/developer_portal/index.md @@ -20,3 +20,21 @@ This Developer Portal section is versioned independently from the main documenta 3. Users can easily find guides relevant to their specific Superset version Use the version dropdown in the navbar to switch between different versions of the Developer Portal. + +```mermaid +flowchart LR + H1["Global State<br/>(Redux Store)"] <--> E1["Extension State<br/>(local + scoped access)"] + H2["APIs<br/>(getData, getDatasets)"] --> E2["Data Access<br/>(fetch, typed client)"] + H3["Extension Lifecycle<br/>(activate/deactivate)"] <--> E3["Lifecycle Hooks<br/>(activate, deactivate)"] + H4["User/Role Info<br/>(permissions, context)"] --> E4["Context Info<br/>(user, permissions)"] + H5["Message Bus<br/>(inter-extension comm)"] <--> E5["Communication<br/>(pub/sub messages)"] + H6["Contribution Points<br/>(sqllab.panels, editor.menus)"] <--> E6["Contribution Points<br/>(provides & consumes)"] + H7["Libraries/Dependencies<br/>(React, Antd, shared utils)"] <--> E7["Libraries/Dependencies<br/>(via module federation)"] + E8["Dependencies<br/>(require other extensions)"] -.-> E8 + + classDef hostStyle fill:#e3f2fd,stroke:#1976d2,stroke-width:2px,color:#000 + classDef extensionStyle fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000 + + class H1,H2,H3,H4,H5,H6,H7 hostStyle + class E1,E2,E3,E4,E5,E6,E7,E8 extensionStyle +``` \ No newline at end of file diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 25cc15b062..32cf438bb0 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -320,6 +320,13 @@ const config: Config = { apiKey: 'd0d22810f2e9b614ffac3a73b26891fe', indexName: 'superset-apache', }, + mermaid: { + theme: { light: 'neutral', dark: 'dark' }, + options: { + // Any Mermaid config options go here... + maxTextSize: 100000, + }, + }, navbar: { logo: { alt: 'Superset Logo', diff --git a/docs/package.json b/docs/package.json index d120b87fe1..b5f6ac9e18 100644 --- a/docs/package.json +++ b/docs/package.json @@ -22,7 +22,7 @@ "@docusaurus/core": "3.8.1", "@docusaurus/plugin-client-redirects": "3.8.1", "@docusaurus/preset-classic": "3.8.1", - "@docusaurus/theme-mermaid": "3.8.1", + "@docusaurus/theme-mermaid": "^3.8.1", "@emotion/react": "^11.13.3", "@emotion/styled": "^10.0.27", "@mdx-js/react": "^3.1.0", diff --git a/docs/yarn.lock b/docs/yarn.lock index 490fa11cd7..9caa1ce174 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -2002,7 +2002,7 @@ tslib "^2.6.0" utility-types "^3.10.0" -"@docusaurus/theme-mermaid@3.8.1": +"@docusaurus/theme-mermaid@^3.8.1": version "3.8.1" resolved "https://registry.yarnpkg.com/@docusaurus/theme-mermaid/-/theme-mermaid-3.8.1.tgz#2b73b5e90057bd9fb46f267aeb2d3470b168a7c8" integrity sha512-IWYqjyTPjkNnHsFFu9+4YkeXS7PD1xI3Bn2shOhBq+f95mgDfWInkpfBN4aYvx4fTT67Am6cPtohRdwh4Tidtg==