View Source PhoenixStorybook.Stories.Doc (phoenix_storybook v0.7.2)

Functions to fetch component documentation and render it at HTML.

Summary

Functions

Fetch component documentation from component source and format it as HTML.

Functions

fetch_doc_as_html(story)

Fetch component documentation from component source and format it as HTML.

  • For a live_component, fetches @moduledoc content
  • For a function component, fetches @doc content of the relevant function

Output HTML is splitted in paragraphs and returned as a list of paragraphs.