Skip to content

Commit

Permalink
color: simplify doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelFangel committed Jun 3, 2024
1 parent 3634d52 commit f822dea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/catppuccin/color.ex
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ defmodule Catppuccin.Color do
end

for color_name <- @color_names do
doc = """
Module.register_attribute(__MODULE__, :doc, accumulate: true)

@doc """
Returns the `#{color_name}` color for the given `flavor`.
"""
Module.register_attribute(__MODULE__, :doc, accumulate: true)
@doc doc

def unquote(:"#{color_name}")(flavor), do: color_accessor(unquote(:"#{color_name}"), flavor)
end
Expand Down

0 comments on commit f822dea

Please sign in to comment.