Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
r8 committed Nov 1, 2017
1 parent 4d80e0b commit 034f07d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/r8/elixir-oembed.svg?branch=master)](https://travis-ci.org/r8/elixir-oembed)
[![Deps Status](https://beta.hexfaktor.org/badge/all/github/r8/elixir-oembed.svg)](https://beta.hexfaktor.org/github/r8/elixir-oembed)
[![Inline docs](http://inch-ci.org/github/r8/elixir-oembed.svg?branch=master&style=flat)](http://inch-ci.org/github/r8/elixir-oembed)
[![Inline docs](https://inch-ci.org/github/r8/elixir-oembed.svg?branch=master&style=flat)](http://inch-ci.org/github/r8/elixir-oembed)
[![Ebert](https://ebertapp.io/github/r8/elixir-oembed.svg)](https://ebertapp.io/github/r8/elixir-oembed)
[![Hex.pm](https://img.shields.io/hexpm/v/oembed.svg?style=flat-square)](https://hex.pm/packages/oembed)
[![Hex.pm](https://img.shields.io/hexpm/dt/oembed.svg?style=flat-square)](https://hex.pm/packages/oembed)
Expand Down
34 changes: 0 additions & 34 deletions lib/oembed.ex
Original file line number Diff line number Diff line change
@@ -1,40 +1,6 @@
defmodule OEmbed do
@moduledoc """
oEmbed consumer library for Elixir applications.
> oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.
>
> -- See [oembed.com](http://oembed.com) for more info about the protocol.
This library supports any discoverable oEmbed endpoint and some other services via custom adapters.
Among them:
- Instagram
- Pinterest
## Installation
Add `oembed` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:oembed, "~> 0.2.0"}]
end
```
## Usage
```elixir
{:ok, result} = OEmbed.for("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
```
## Custom providers
You can implement modules that support provider behaviour and add them to the provider list from your app config
```elixir
config :oembed, :providers, [MyApp.OEmbed.SomeProvider, MyApp.OEmbed.SomeOtherProvider]
```
"""

@core_providers [
Expand Down
4 changes: 3 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ defmodule OEmbed.Mixfile do
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
docs: docs(),
docs: [source_ref: @version,
main: "readme",
extras: ["README.md"]],
deps: deps()]
end

Expand Down

0 comments on commit 034f07d

Please sign in to comment.