Skip to content

Commit

Permalink
fix: properly set anchor links in cheat sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Oct 11, 2023
1 parent ad254dc commit c62328f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/spark/cheat_sheet.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ defmodule Spark.CheatSheet do
""
else
"""
#{options_table(options, arg_keys, path ++ [entity.name])}
#{options_table(options, path ++ [entity.name], arg_keys)}
#{nested_entity_docs}
"""
Expand Down Expand Up @@ -261,6 +261,7 @@ defmodule Spark.CheatSheet do
end

anchor = Enum.join(path ++ [key], "-")
IO.inspect(anchor)

"""
<tr>
Expand Down

0 comments on commit c62328f

Please sign in to comment.