-
Notifications
You must be signed in to change notification settings - Fork 489
Add Help Menu in NodeLibrarySidebarTab #3922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
webfiltered
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An initial thought, before I've had a chance to test fully:
Should node help be separate from the frontend repo, similar to workflow templates?
(I'm not currently leaning one way or another)
|
I think keeping the node info in a separate repo can make it easier to maintain. The community can correct the incorrect info and contribute to the document as well. But I don't know whether we should keep the image in the same repo. I may add some image examples when updating the node info so it may contain lots of images, or we just keep the image in another repo and just use the github image links like |
|
Btw, I think when updating the info in docs , the image will upload to the docs repo as well, so we may not need to upload it twice if we are using github image links. |
webfiltered
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Part of the reason I suggested another repo was to move the image problem out of frontend repo. I think it should be fine to keep both text and images in one repo, provided the repo is explicitly for docs / node info.
@benceruleanlu If this has already been brought up internally and decided against, please let me know! I'll get some opinions async / grab some folks for a very brief chat if not.
IIRC Yoland mentioned how we should do it the same way that extension authors should so that we could serve as an example. But the popular nodepacks could also serve as an example, so I do agree we should probably move the docs out of the core repo. |
|
Will check on that! My leaning atm is to use.. well, an example as an example. It should be included in the extension example / skeleton. I agree we should definitely use the same system to load the files as custom nodes, but I generally prefer any potentially-large, raw data be stored separate to the main code repo. It's just that it's a decision that impacts that repo forever. |
|
I have a python package setup working right now, just need to get it uploaded to PyPi under Comfy-Org and we should be good to go |
christian-byrne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
In later PR:
|
webfiltered
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! Just looked at regular nodes without any help package; really great UX.
It seems like DataTable was causing some problems - could you please jot down a vague approximation of what they were? Knowledge sharing is the only goal.
The markdown content is rendered in plain html, unstyled apart from browser and global, and I wanted to keep the consistency of the same styling from both the markdown content and the fallback content. I didn't think we need anything special from DataTable anyway, and it came with primevue styling that didn't match our design docs, so I wanted to make it align with the markdown content without blasting it with overrides. |
|
FYI: I submitted a PR for the node docs today Comfy-Org/embedded-docs#4 Migrated all the node docs from my website. |
webfiltered
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, wanted to review & merge today, but there are conflicts. Can you rebase and force push, please?
Not really expecting it, but if it does turn into a huge job w/merge conflicts, please let us know.
christian-byrne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once rebased!
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
7ca0da2 to
f55f284
Compare
Co-authored-by: github-actions <[email protected]> Co-authored-by: Claude <[email protected]>
This PR adds a help sidebar overlay on top of the node library sidebar tab.
There are two ways to open this help panel, one through the node leaf itself:
And the other way is through the selection toolbox:
This uses the Marked and DOMPurify libraries for Markdown and HTML sanitization.
If you are authoring an extension, links such as
assets/image.pngwill be parsed tocustom_nodes/<extension name>/<WEB_DIRECTORY>/assets/image.png.Related Core PR: Comfy-Org/ComfyUI#8179
Related Docs PR: Comfy-Org/docs#120
┆Issue is synchronized with this Notion page by Unito