Skip to content

Conversation

wojtekmach
Copy link
Member

Closes #840

path -> List.to_string(path)
end

if Application.get_env(:ex_doc, :running_as_escript) do
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm sure there's a better way to do it, thoughts?


defp elixir_lib_dir(app) do
path =
case :code.where_is_file('Elixir.Kernel.beam') do
Copy link
Member Author

Choose a reason for hiding this comment

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

unfortunately we won't be able to autolink things from Mix, IEx etc because they're not loaded.

@wojtekmach wojtekmach changed the title Compute elixir_lib_dir even when running as escript Fix autolinking when running as escript Mar 29, 2018
@wojtekmach wojtekmach force-pushed the wm-fix-autolink-escript branch 3 times, most recently from 749997b to 8b57640 Compare March 29, 2018 20:23
@wojtekmach wojtekmach force-pushed the wm-fix-autolink-escript branch from 8b57640 to 1906574 Compare March 29, 2018 20:31
@wojtekmach wojtekmach merged commit a74ce06 into master Mar 29, 2018
@wojtekmach wojtekmach deleted the wm-fix-autolink-escript branch March 29, 2018 21:03
@wojtekmach
Copy link
Member Author

I had some issues with using escript in prerelease.sh so leaving that out for now.

@RobertDober
Copy link
Contributor

Great job, thank you so much.

Would be great if we can install ex_doc inside Earmark as a dev dependency but I guess this is just impossible (unless we render with a different markdown converter but that would be kind of not what we want ;)).

Any thoughts on that?

Thx again and keep your excellent work up.

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