fireproofsocks

fireproofsocks

Generating docs (ex_doc / ExDoc) for an Umbrella App

What needs to be done to make ExDoc play nice with an umbrella app? I can run something like

ex_doc "My Umbrella" "1.0.0" "_build/dev/lib/my_app/ebin/"

But you have to choose one of the component apps out of the _build directory, which feels pretty arbitrary.

Also, I’m not having much luck adding in my own markdown files to the docs… it’s well and good that my entire app gets crawled and docs are added for each and every module, but more important to me (and arguably to users) are the comments and explanations that exist primarily in stand-alone markdown files. I’ve tried copying tactics seen for the Phoenix repo, but ironically, I don’t see that those “extra” and “groups_for_extras” are documented anywhere.

Most Liked

fireproofsocks

fireproofsocks

My scanning started on https://hexdocs.pm/ex_doc/readme.html – I firmly believe that examples are paramount. Everything else is a nice-to-have. So I would clarify the def project do .... bit (clarify that this is from your mix.exs, and I would definitely include at least one more example that demonstrated the additional options that are available to the configuration (e.g. the groups_for_extras).

The way that page is structured, I completely missed the tiny link to mix docs and instead zeroed in on the ex_doc escript part. If the mix docs tool is the normal way of doing things and the ex_doc script more of an alternative, then perhaps the formatting should correspond with that intended usage.

When I tried mix docs in my umbrella app, all my extras could not be found… should those be listed in each project in the repo or in the mix.exs at the root of the umbrella? It’s possible to have 2 very different presentations depending on whether you’re viewing an individual app or the umbrella as a whole.

api-reference.html – what is that and why would I want it created or not?

I think the big thing with the umbrella is that all paths seem to off… I’m not sure if they’re supposed to be relative to the individual apps and I’m supposed to be doing all this docs configuration in the individual apps or not.

Sorry to be terse.

LostKobrakai

LostKobrakai

I’m not sure on the progress, but I’ve heard this is on the roadmap given OTP adopted ex_doc and it’s also in need for consolidated multi app documentation.

Where Next?

Popular in Questions Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New

Other popular topics Top

sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement