diff --git a/bundles/org.openhab.ui/doc/components/oh-cell.md b/bundles/org.openhab.ui/doc/components/oh-cell.md index 031ff421f..cbe0726ca 100644 --- a/bundles/org.openhab.ui/doc/components/oh-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-cell.md @@ -59,7 +59,7 @@ A regular or expandable cell Color to use when highlighted - + Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable. diff --git a/bundles/org.openhab.ui/doc/components/oh-colorpicker-cell.md b/bundles/org.openhab.ui/doc/components/oh-colorpicker-cell.md index 137fd4dd5..c99102cfd 100644 --- a/bundles/org.openhab.ui/doc/components/oh-colorpicker-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-colorpicker-cell.md @@ -59,7 +59,7 @@ A cell expanding to a color picker Color to use when highlighted - + Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable. diff --git a/bundles/org.openhab.ui/doc/components/oh-knob-cell.md b/bundles/org.openhab.ui/doc/components/oh-knob-cell.md index 5823a8a95..d6f89d547 100644 --- a/bundles/org.openhab.ui/doc/components/oh-knob-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-knob-cell.md @@ -59,7 +59,7 @@ A cell expanding to a knob control Color to use when highlighted - + Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable. diff --git a/bundles/org.openhab.ui/doc/components/oh-label-cell.md b/bundles/org.openhab.ui/doc/components/oh-label-cell.md index b865c1a4b..e688a92c9 100644 --- a/bundles/org.openhab.ui/doc/components/oh-label-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-label-cell.md @@ -59,7 +59,7 @@ A cell with a big label to show a short item state value Color to use when highlighted - + Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable. diff --git a/bundles/org.openhab.ui/doc/components/oh-location-card.md b/bundles/org.openhab.ui/doc/components/oh-location-card.md index 9e8ad2ae6..0e3a49307 100644 --- a/bundles/org.openhab.ui/doc/components/oh-location-card.md +++ b/bundles/org.openhab.ui/doc/components/oh-location-card.md @@ -86,6 +86,7 @@ A card showing model items in a certain location Select the badges you wish to show in the header of the card. Display all if none are selected. + diff --git a/bundles/org.openhab.ui/doc/components/oh-repeater.md b/bundles/org.openhab.ui/doc/components/oh-repeater.md index bf1247aea..96874a160 100644 --- a/bundles/org.openhab.ui/doc/components/oh-repeater.md +++ b/bundles/org.openhab.ui/doc/components/oh-repeater.md @@ -38,12 +38,12 @@ Iterate over an array and repeat the children components in the default slot What to iterate on - - - - - - + + + + + + diff --git a/bundles/org.openhab.ui/doc/components/oh-rollershutter-cell.md b/bundles/org.openhab.ui/doc/components/oh-rollershutter-cell.md index e2ade4ad3..6e458ef6d 100644 --- a/bundles/org.openhab.ui/doc/components/oh-rollershutter-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-rollershutter-cell.md @@ -59,7 +59,7 @@ A cell expanding to rollershutter controls Color to use when highlighted - + Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable. diff --git a/bundles/org.openhab.ui/doc/components/oh-slider-cell.md b/bundles/org.openhab.ui/doc/components/oh-slider-cell.md index 2251bf28e..bf82f8fdf 100644 --- a/bundles/org.openhab.ui/doc/components/oh-slider-cell.md +++ b/bundles/org.openhab.ui/doc/components/oh-slider-cell.md @@ -59,7 +59,7 @@ A cell expanding to a big vertical slider Color to use when highlighted - + Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable. diff --git a/bundles/org.openhab.ui/doc/components/src/generate.js b/bundles/org.openhab.ui/doc/components/src/generate.js index e7b1aeafa..2c70241ce 100644 --- a/bundles/org.openhab.ui/doc/components/src/generate.js +++ b/bundles/org.openhab.ui/doc/components/src/generate.js @@ -41,13 +41,20 @@ const replaceBetweenComments = (commentTag, text, value) => { return text.replace(regexp, '$1' + value + '$2') } +const escapeQuotes = (text) => { + if (text !== undefined) { + return text.replace(/"/g, """); + } + return text +} + const buildProp = (prop) => { let ret = '' - ret += '\n' if (prop.description) { @@ -61,7 +68,7 @@ const buildProp = (prop) => { if (prop.multiple) ret += ' multiple="true"' ret += '>\n' prop.options.forEach((o) => { - ret += ' \n' + ret += ' \n' }) ret +=' \n' } @@ -82,7 +89,7 @@ const buildProps = (component) => { if (component.props.parameterGroups) { component.props.parameterGroups.forEach((g) => { ret += '### ' + g.label + '\n' - ret += '
\n\n' + ret += '
\n\n' if (g.description) ret += ' ' + g.description + '\n' const propsInGroup = component.props.parameters.filter((p) => p.groupName === g.name) propsInGroup.forEach((p) => ret += buildProp(p))