From c62328fd1b0ad2a1496dac47c78144ce57891d9e Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 11 Oct 2023 09:28:51 -0400 Subject: [PATCH] fix: properly set anchor links in cheat sheets --- lib/spark/cheat_sheet.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spark/cheat_sheet.ex b/lib/spark/cheat_sheet.ex index 4526aa8..a1f860f 100644 --- a/lib/spark/cheat_sheet.ex +++ b/lib/spark/cheat_sheet.ex @@ -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} """ @@ -261,6 +261,7 @@ defmodule Spark.CheatSheet do end anchor = Enum.join(path ++ [key], "-") + IO.inspect(anchor) """