Hi There,
So doing documentation in Node-RED is super simple since there is the info panel and the info property of nodes and tabs and it's all in markdown - wonderful however ....
What annoys me is that to preview my changes, I need to save my changes, close the panel open the info panel (if its not open already).
What I'd like to have instead is a preview button (ideally an automatic preview like here in the forum would be best):
That screen shot is take from my Erlang-Red editor and the changes are in this commit.
I only made the change for the tab info contents (not nodes) and it's very rough and ready. But it also has the advantage that I can preview changes but when I do cancel, those changes aren't saved - I'm creating a duplicate node and using that to update the sidebar:
let tabNode = RED.nodes.createExportableNodeSet([RED.nodes.workspace(RED.workspaces.active())])[0];
tabNode.info = window.currentTabflowEditor.getValue();
RED.sidebar.info.refresh(tabNode);
I don't know how relevant this would be for editing documentation for nodes, I tend to only document the entire flow, i.e., tab i.e., workspace.