fireproofsocks

fireproofsocks

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.

Showing Posts 1 to 6

axelson

axelson

Scenic Core Team

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.2

To add a markdown file to the docs you need to use the :extras key as documented in mix 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 add ex_doc as a dependency to the umbrella itself. And then simply run mix docs from the umbrella root.

fireproofsocks

fireproofsocks OP

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 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.

fireproofsocks

fireproofsocks OP

That does not seem to work, at least not with extras defined in the umbrella’s mix.exs

fireproofsocks

fireproofsocks OP

And also… if I try to run the mix docs from an app in the umbrella:

** (UndefinedFunctionError) function ExDoc.Config.default_formatter/0 is undefined (module ExDoc.Config is not available)

Docs: 1. Me: 0

expilo

expilo

It’s 2024 and I’m still getting the same UndefinedFunctionError when I try to run mix docs in the umbrella. Has anybody figured out how to generate unified documentation for all the apps in the umbrella?

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.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews