From 0510ba4c425eec71ac07c5db0c26c6681c736823 Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Wed, 14 Aug 2024 18:15:00 -0500 Subject: [PATCH] Port documentation functionality to ACN --- __init__.py | 2 + adv_control/documentation.py | 47 ++++++ web/js/autosize.js | 16 +- web/js/documentation.js | 293 +++++++++++++++++++++++++++++++++++ 4 files changed, 350 insertions(+), 8 deletions(-) create mode 100644 adv_control/documentation.py create mode 100644 web/js/documentation.js diff --git a/__init__.py b/__init__.py index a26d67e..7312832 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,6 @@ from .adv_control.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS +from .adv_control import documentation WEB_DIRECTORY = "./web" __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', "WEB_DIRECTORY"] +documentation.format_descriptions(NODE_CLASS_MAPPINGS) diff --git a/adv_control/documentation.py b/adv_control/documentation.py new file mode 100644 index 0000000..f73c9fd --- /dev/null +++ b/adv_control/documentation.py @@ -0,0 +1,47 @@ +from .logger import logger + +def image(src): + return f'' +def video(src): + return f'