Add a URL in recipe.json
akshaykatre
Registered Posts: 4 ✭✭✭✭
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?
Answers
-
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:
Hope this helps!
Best,
Harizo