priv/catalogue/catalogue.ex

defmodule Pescarte.Catalogue do
  @moduledoc """
  Catalogue implementation for Pescarte.

  Allows calalogue tools to properly run examples and playgrounds provided
  by this lib.
  """

  use Surface.Catalogue

  # load_asset("assets/js/app.js", as: :app_js)
  # load_asset("assets/css/app.css", as: :app_css)
  #
  # head_css: """
  # <style>#{@app_css}</style>
  # """,
  # head_js: """
  # <script> #{@app_js}</script>
  # """,

  @impl true
  def config do
    [
      head_css: """
      <link rel="stylesheet" href="/assets/app.css" />
      """,
      playground: [
        body: [
          style: "padding: 1.5rem; height: 100%;",
          class: "has-background-light"
        ]
      ]
    ]
  end
end