Skip to content

Conversation

wojtekmach
Copy link
Member

Fixes #679
Fixes #682

will get translated to the new href of the function.
"""
def local_doc(bin, locals) when is_binary(bin) do
def local_doc(bin, locals, extension \\ ".html", lib_dirs \\ elixir_lib_dirs()) when is_binary(bin) do
Copy link
Member Author

@wojtekmach wojtekmach Dec 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kernel.SpecialForms calls are neither local as in local_doc nor remote as in elixir_functions calls, so having this logic doesn't quite fit in either function.

Another approach is to combine local_doc and elixir_functions into one function, see: https://github.com/elixir-lang/ex_doc/blob/wm-autolink-bak/lib/ex_doc/formatter/html/autolink.ex#L347

@josevalim josevalim merged commit 5b7afca into master Dec 17, 2017
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@josevalim josevalim deleted the wm-autolink-types-forms branch December 17, 2017 08:32
@eksperimental
Copy link
Contributor

Thank you @wojtekmach for taking care of many of the issues I have opened up. I wish i would have been able to test them, review them and give some feedback. It looks pretty awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants