Add a URL in recipe.json

akshaykatre
Level 1
Add a URL in recipe.json

Hi,

I'm creating a plugin with multiple recipes. Each recipe will have it's documentation in a separate unique URL. In the plugin.json, I can include a URL to point to a common page, but for each recipe, I would like to direct the user to it's own unique page. Is it possible to include a URL in the recipe.json file. If so, how? If not, what would be the best workaround? 

 

 

0 Kudos
1 Reply
HarizoR
Developer Advocate

Hi,

You have several options that fit your use-case, that all rely on the fact that you can write HTML directly in the description fields : 

- Either write an unordered list in plugin.json:

{
  ...,
  "description": "<ul><li><a href='https://google.fr'>One link</a></li><li><a href='https://dataiku.com'>Another link</a></li></ul>",
  ...
}

 

- Or put the link of each custom recipe's documentation into their own recipe.json file:

{
  ...,
  "description": "<a href='https://dataiku.com'>Doc: recipe bar</a>",
  ...
}

 

Here is a screenshot that illustrates both examples:

Screenshot 2022-01-06 at 10.40.16.png

Hope this helps!

 

Best,

Harizo

0 Kudos