From f7ca35af2368863a597084166603ade58f4ab43f Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Sun, 7 Feb 2021 02:35:02 +0530 Subject: [PATCH] improved way of displaying docs link (#1799) * improved the way of displaying the doc links * fix: check whether docs-link exists Co-authored-by: Harsh Khandeparkar <34770591+HarshKhandeparkar@users.noreply.github.com> Co-authored-by: Jeffrey Warren --- examples/lib/defaultHtmlStepUi.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/lib/defaultHtmlStepUi.js b/examples/lib/defaultHtmlStepUi.js index 6083cfcc..cb22797b 100644 --- a/examples/lib/defaultHtmlStepUi.js +++ b/examples/lib/defaultHtmlStepUi.js @@ -24,6 +24,9 @@ function DefaultHtmlStepUi(_sequencer, options) { function onSetup(step, stepOptions) { if (step.options && step.options.description) step.description = step.options.description; + + let stepDocsLink = ''; + if (step.moduleInfo) stepDocsLink = step.moduleInfo['docs-link'] || ''; step.ui = // Basic UI markup for the step '\ @@ -48,7 +51,7 @@ function DefaultHtmlStepUi(_sequencer, options) {