From 9437753fdebfc7c4b172eeda53610c08abe7287a Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Mon, 12 May 2025 16:30:10 -0400 Subject: added mermaid guide --- .../nodes/chatbot/tools/DocumentMetadataTool.ts | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+) (limited to 'src') diff --git a/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts b/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts index b4c21f6e3..a55f901e1 100644 --- a/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts +++ b/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts @@ -291,6 +291,106 @@ Here is a detailed example: + + + + + Mermaid mindmaps are hierarchical diagrams used to visually organize ideas. Nodes are created using indentation to show parent-child relationships. + + This is an experimental feature in Mermaid and may change in future versions. + + + + + + + + mindmap declares the diagram. + Indentation determines the hierarchy. + Each level must be indented more than its parent. + + + + + Nodes can be styled with various shapes similar to flowchart syntax. + + id[Square Text] + id(Rounded Square) + id((Circle)) + id))Bang(( + id)Cloud( + id{{Hexagon}} + Default shape without any brackets + + + + + Nodes can include icons using the ::icon(class) syntax. + + + + Icon fonts must be included by the site administrator for proper rendering. + + + + Add custom styling classes using :::. + + + + Classes must be defined in your website or application CSS. + + + + Supports markdown-style strings for rich text, line breaks, and auto-wrapping. + + + + + + + Indentation is relative, not absolute — Mermaid will infer hierarchy based on surrounding context even with inconsistent spacing. + + + + + From Mermaid v11, mindmaps are included natively. For older versions, use external imports with lazy loading. + + + + import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs'; + + ]]> + + + + `; // Extensive usage guidelines for the tool @@ -336,6 +436,7 @@ RECOMMENDED WORKFLOW: 3. Get document metadata with action="get" to see current values 4. Edit fields with action="edit" using proper dependencies OR +0. Understand the state of the currently available documents and their metadata using action="get" (this includes spacial positioning). 1. Create a new document with action="create" 2. Get its ID from the response 3. Edit the document's properties with action="edit" -- cgit v1.2.3-70-g09d2