Skip to content

Commit 962d4fc

Browse files
committed
Update documentation
1 parent 2fdff16 commit 962d4fc

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Add `oembed` to your list of dependencies in `mix.exs`:
2525

2626
```elixir
2727
def deps do
28-
[{:oembed, "~> 0.1.0"}]
28+
[{:oembed, "~> 0.2.0"}]
2929
end
3030
```
3131

@@ -35,7 +35,7 @@ end
3535
{:ok, result} = OEmbed.for("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
3636
```
3737

38-
## 3rd party providers
38+
## Custom providers
3939

4040
You can implement modules that support provider behaviour and add them to the provider list from your app config
4141

lib/oembed.ex

+9-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule OEmbed do
1818
1919
```elixir
2020
def deps do
21-
[{:oembed, "~> 0.1.0"}]
21+
[{:oembed, "~> 0.2.0"}]
2222
end
2323
```
2424
@@ -27,6 +27,14 @@ defmodule OEmbed do
2727
```elixir
2828
{:ok, result} = OEmbed.for("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
2929
```
30+
31+
## Custom providers
32+
33+
You can implement modules that support provider behaviour and add them to the provider list from your app config
34+
35+
```elixir
36+
config :oembed, :providers, [MyApp.OEmbed.SomeProvider, MyApp.OEmbed.SomeOtherProvider]
37+
```
3038
"""
3139

3240
@core_providers [

0 commit comments

Comments
 (0)