ExDash

ExDash seamlessly integrates the docs in your local elixir projects with your Dash docs.

ExDash provides a mix task that rebuilds a Dash Docset for your local Elixir project.

Quick Start

  1. add {:ex_dash, "~> 0.1", only: :dev}, to your mix.exs deps
  2. run mix docs.dash --open
  3. viola! Your docs are now searchable in Dash! integration!

The Dream

The Alfred + Dash integration for fast Elixir doc searching has become an integral part of our workflow at Urbint.

Once our app reached a certain size, we wanted to be able to search our internal documentation as easily as the public Hex docs.

Being able to dogfood our own @moduledocs and function @docs helps us keep code quality higher.

ExDash is intended to make that easier.

Installation

The package can be installed by adding ex_dash to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_dash, "~> 0.1.0"},
  ]
end

Dependencies

Dash Docsets include a SQLite table, and as such, this task expects sqlite3 to be available.

brew install sqlite3

Usage

ExDash currently provides a mix task that rebuilds the docset for your local app.

mix docs.dash

Options:

Hacking ExDocs into Dash Docs

The goal for this project is to provide documentation for your local app to the same resource as the rest of your Docs. We want the docs to be indistinguishable from Elixir's source and Hex's docsets.

As such, this task builds the full docs using ExDoc under the hood, then scrapes and find/replaces those pages into a similar (hopefully identical) style to those downloaded from Hex.

Dash docsets require:

See ExDash.Docset and ExDash.Injector for more.

If there are other Dash features you'd like supported, please open a PR or an Issue!