Commit Graph
7 Commits
Author SHA1 Message Date
Austin Mroz 5aa08cb61b Remove when hovering in the documentation window
Previously, the title attribute was used to link a selected widget to
the correct spot in the documentation, but this had the side effect of
causing a tooltip to appear when the documentation itself was moused
over. Since this tooltip would block the documentation text itself and
provide no useful information to the user, this lookup information is
now stored as vhs_title attribute
2024-08-07 13:32:14 -05:00
Austin Mroz 8e774e44ce Add image function for documenation, fix path api
A helper function has been added to assist in adding images to
documentation

A preceding forward slash is required when using the new ComfyUI
frontend. Since this was missing from the call to fetch files for path
widgets, they weer not functioning as expected.
2024-08-06 21:30:24 -05:00
Austin Mroz 12b9f8d00f Formatting, minor fixes
Add check for null when pulling short description

Split the test description into multiple lines to clean up diffs

Stop decreasing size after an arbitrary depth

Include example of documenting widget values
2024-08-05 15:19:23 -05:00
Austin Mroz 8a564019ef After load, use human readable description.
In the new frontend, the DESCRIPTION field is being used for
standardized basic documentation. To keep the more advanced features
of this branch, a short human readable  description can now be
derived from the full description. After initial load, the description
field is replaced from this shorter description.
2024-08-05 14:50:21 -05:00
Austin Mroz 3489bccd20 Fix text reflow, collapse size, scrollbar
Rather than adjusting font size, a transformation is applied to the div
itself, preventing reflow on zoom

The expand/collapse button is now only clickable on the text itself

Basic styling has been applied to the scrollbar when needed
2024-08-04 02:23:00 -05:00
Austin Mroz a0f616cbef Implement collapsing
Adjust offset when selecting inputs
2024-07-26 16:12:18 -05:00
Austin Mroz 1e9f7e7257 POC node documentation implementation.
Nodes with a DESCRIPTION variable have that variable displayed as raw
html. A documentation file has been added to assist in
mocking documentation in a standardized format.

Logic to allow connecting node interaction to equivalent documentation
is partial. Currently, the hovered item is highlighted, but the intent
is to either automatically scroll to the selected region, or collapse
other regions.
2024-07-26 01:30:34 -05:00