doc-red

1.3.4 • Public • Published

todo-RED

A Node-RED plugin to help you managing your flow creation and documentation.

This plugin enhance the Node-RED documentation feature with those features:

  • adds a tooltip with the nodes documentation
  • adds a todo-tab to keep an overview for your todo lists
  • shows the output names in the tooltip if requested
  • adds a small icon if a todo list and/or documentation exists

Usage

General

You can use the node documentation which has every tab, group, subflow or node.

Everything you write there will be counted as normal documentation, with two exceptions:

"# Outputs" and "# Todo" will be handled different and will always be shown above your documentation in the tooltip (no matter where you write them).

Create a Todo list

Use the node red documentation in a tab, group, subflow or node.

Add a "# Todo" headline and write your text what should be done. This info will be shown in the Todo Tab.

Tip: You can use markdown to create a list with things that must be done.

# Todo
- [ ] step 1
- [ ] step 2
- [x] already done step 3
- [ ] step 4

How to add todos

If you use a subflow you can add a todo list either on the node self or in the subflow description. The description on the node will be used if both has a todo description.

Input and Output

If you want to quickly see the names of your input and outputs you can add an "# Input" or an "# Output" header into your documentation.

If you want also some detailed text for an output you can add a subheader like "## Outputname" and write some text to it.

´´´

Outputs

special 1

This is a hint for the special 1 output.

  • Why does it exists?
  • Does special 2 exists? ´´´

Outputs

Visualization in Workspace

This node adds some icons and tooltips in the workspace. This can be disabled in the todo tab.

Icons

If a node has a documentation or a todo section it adds a small icon on the node.

The pencil icon will be added if there is a todo section.

The page will be added if there is some other documentation.

icons

Tooltip

The node gets also a tooltip where you find the full documentation and todo list.

The todo list will always be shown first.

tooltip

Todo tab

If you want to check your open tasks use the todo tab.

There will be all todos listed. If you hover the node you get a search icon to find the position of the node and an shortcut to edit the nodes documentation.

You can also search for the any text you see in the tab.

If your todo has a completed list, it will still be added but with grey text and a (done) suffix.

If you want to hide the tooltip and the icon for either the todos or documentation or both. This can be made in the settings next to the search bar.

Gitpod and example json

A ready to launch gitpod setting is available. Just start it, wait till your workspace is ready and start "node-red examples/todo.json".

License

This repository and the code inside it is licensed under the MIT License. Read LICENSE for more information.

Package Sidebar

Install

npm i doc-red

Weekly Downloads

11

Version

1.3.4

License

MIT

Unpacked Size

425 kB

Total Files

17

Last publish

Collaborators

  • 2weltenchris
  • meijey