Skip to content

Commit

Permalink
Ensure <code> tags that contain references to AWS SDK GO functions ar…
Browse files Browse the repository at this point in the history
…e ignored as they blow up ex_doc
  • Loading branch information
onno-vos-dev committed Feb 28, 2024
1 parent 506a18e commit 77cf3f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/aws_codegen/docstring.ex
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,13 @@ defmodule AWS.CodeGen.Docstring do
if String.contains?(text, "\n") do
"\n```\n#{String.trim_leading(text, "\n")}'''#{@two_break_lines}"
else
"`#{text}'"
## ex_doc blows up on these sorts of things as it sees them as a reference to a function.
## Just ignore them as they refer to aws-sdk-go based implementations and we don't really care about that
if String.ends_with?(text, "()") do
""
else
"`#{text}'"
end
end

{"a", attrs, children} = html_node ->
Expand Down

0 comments on commit 77cf3f0

Please sign in to comment.