1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 23:49:57 +08:00

Add Help Menu in NodeLibrarySidebarTab (#8179)

This commit is contained in:
Benjamin Lu
2025-06-01 04:32:32 -04:00
committed by GitHub
parent d062fcc5c0
commit 180db6753f
3 changed files with 21 additions and 0 deletions

View File

@@ -746,6 +746,13 @@ class PromptServer():
web.static('/templates', workflow_templates_path)
])
# Serve embedded documentation from the package
embedded_docs_path = FrontendManager.embedded_docs_path()
if embedded_docs_path:
self.app.add_routes([
web.static('/docs', embedded_docs_path)
])
self.app.add_routes([
web.static('/', self.web_root),
])