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.
Trending in Questions
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated!
To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead.
Sta...
New
Hello !
We want new/edit form pages to POST/PUT to their own URL rather than the resources REST defaults (post /things, put /things/:id)...
New
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app?
Looking for hints regarding:
Addi...
New
Hi all, I wanted to ask how the community is dealing with post-release steps.
Today we have Ecto migrations, which make sure that the db...
New
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #performance
- #security










First 6 of 6 Posts
axelson
I think the page with the documentation that you’re looking for is mix docs — ExDoc v0.40.3 which can also be accessed by running
mix help docs. I agree that it could be easier to find. Do you remember which pages you were looking on? I’ll probably add a PR to add a link on Writing documentation — Elixir v1.20.2To add a markdown file to the docs you need to use the
:extraskey as documented inmix help docs. Also I’m not clear how you’re running ex_doc. Typically for an umbrella project where you want to generate docs for all the applications together I believe that you would addex_docas a dependency to the umbrella itself. And then simply runmix docsfrom the umbrella root.fireproofsocks
My scanning started on ExDoc — ExDoc v0.40.3 – 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 yourmix.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 docsand instead zeroed in on theex_docescript part. If themix docstool is the normal way of doing things and theex_docscript more of an alternative, then perhaps the formatting should correspond with that intended usage.When I tried
mix docsin my umbrella app, all my extras could not be found… should those be listed in each project in the repo or in themix.exsat 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.
fireproofsocks
That does not seem to work, at least not with extras defined in the umbrella’s
mix.exsfireproofsocks
And also… if I try to run the
mix docsfrom an app in the umbrella:Docs: 1. Me: 0
expilo
It’s 2024 and I’m still getting the same UndefinedFunctionError when I try to run
mix docsin the umbrella. Has anybody figured out how to generate unified documentation for all the apps in the umbrella?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.