I really like the look of the documentation ExDoc creates, but I'm having trouble getting it to actually generate documentation for simple projects.
I'm trying to generate documentation for the Drop module, drop.ex. The files are not in a github repository - that would be overkill at the moment. If I use:
elixir -pa ebin /Users/simonstl/Documents/personal/elixir/exdoc/bin/exdoc "Drop" "0.1" -m "Drop"
I have updated ExDoc README to contain instruction to run with Mix projects. I had also to change the project location, so you can find the new URL here: https://github.com/elixir-lang/ex_docSimon, let me know if you run into any error using the Mix approach.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I can do that, but now I get to explain projects and dependencies to readers while they're still learning what modules and functions are.
I guess the other option is to punt on "documentation early and often" and wait to cover it until much later in the book when readers know what mix is.
I can do that, but now I get to explain projects and dependencies to readers while they're still learning what modules and functions are.Oh! The command line should still work though, let's try to figure out why it doesn't. Can you put the code online? I would love to give it a shot.
I guess the other option is to punt on "documentation early and often" and wait to cover it until much later in the book when readers know what mix is.Maybe there are other benefits we could show early on about documentation? Maybe doctests?
Then after they wrote a good amount of documentation, you can introduce them to ExDoc for extra awe? :)
Mix is not rocket science and is very easy to pick up with little Elixir knowledge. You just follow instructions and boom -- you get yourself some dependency management and easy testing/building/running. You could simply direct your readers to the Getting Started page[1] (perhaps as an exercise) even early on.
[1]: http://elixir-lang.org/getting_started/mix/1.html
I would think mix should come before ExDoc. @doc is mostly relevant to someone writing a library; I would not even want to try and tell someone how to use a library without covering mix & deps.
--
@doc is mostly relevant to someone writing a library;
I have updated ExDoc README to contain instruction to run with Mix projects. I had also to change the project location, so you can find the new URL here: https://github.com/elixir-lang/ex_doc
I can do that, but now I get to explain projects and dependencies to readers while they're still learning what modules and functions are.Oh! The command line should still work though, let's try to figure out why it doesn't. Can you put the code online? I would love to give it a shot.
s and t helpers don't work for modules compiled to memory because underlying beam_lib can only access the contents of the beam file if it's on the disk. It would be really great to sole this problem, though. Either on Erlang's side or elixir's.
--
s and t helpers don't work for modules compiled to memory because underlying beam_lib can only access the contents of the beam file if it's on the disk. It would be really great to sole this problem, though. Either on Erlang's side or elixir's.
I'm not in front of my computer at the moment, but just in case would you mind trying to delete the existing file, compile it with c and check whether the file exists?
--
Also, did you have a prior user of this module in the same iex session? If yes, have you tried using the l helper?
Also, did you have a prior user of this module in the same iex session? If yes, have you tried using the l helper?
I'll take a look tonight or tomorrow morning. Need to get back to the computer for this! :)
--
Back from travelling. Is this still an issue?
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.