Add a URL in recipe.json

akshaykatre
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

  • HarizoR
    HarizoR Dataiker, Alpha Tester, Registered Posts: 138 Dataiker
    edited July 17

    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

Setup Info
    Tags
      Help me…