Skip to content

Commit 5070f4a

Browse files
committed
Add rebar3_ex_doc for generating docs
1 parent 474ca04 commit 5070f4a

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ covertool: check_rebar
3636
$(REBAR) as test covertool generate
3737

3838
docs: check_rebar
39-
$(REBAR) edoc
39+
$(REBAR) ex_doc
4040

4141
check: test covertool dialyzer xref docs
4242
@echo "OK!"

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Shards :sparkles:
1+
# Shards
22
> ### ETS tables on steroids!
33
> Sharding for ETS tables out-of-box.
44
@@ -30,7 +30,7 @@ and the **[online documentation](https://hexdocs.pm/shards/)**.
3030
[partitioning]: https://en.wikipedia.org/wiki/Partition_(database)
3131
[dht]: https://en.wikipedia.org/wiki/Distributed_hash_table
3232
[shards]: https://hexdocs.pm/shards/shards.html
33-
[getting_started]: guides/getting-started.md
33+
[getting_started]: https://hexdocs.pm/shards/getting-started.md
3434

3535
## Installation
3636

@@ -59,18 +59,16 @@ end
5959

6060
## Important links
6161

62-
* [Documentation](https://hexdocs.pm/shards) - Hex Docs.
63-
6462
* [Blog Post](http://cabol.github.io/posts/2016/04/14/sharding-support-for-ets.html) -
6563
Transparent and out-of-box sharding support for ETS tables in Erlang/Elixir.
6664

6765
* Projects using **shards**:
6866
* [shards_dist](https://github.com/cabol/shards_dist) - Distributed version
6967
of `shards`. It was moved to a separate repo since `v1.0.0`.
70-
* [ExShards](https://github.com/cabol/ex_shards) – Elixir wrapper for
71-
`shards`; with extra and nicer functions.
7268
* [Nebulex](https://github.com/cabol/nebulex) – Distributed Caching
7369
framework for Elixir.
70+
* [ExShards](https://github.com/cabol/ex_shards) – Elixir wrapper for
71+
`shards`; with extra and nicer functions.
7472
* [KVX](https://github.com/cabol/kvx) – Simple Elixir in-memory Key/Value
7573
Store using `shards` (default adapter).
7674
* [Cacherl](https://github.com/ferigis/cacherl) Distributed Cache

rebar.config

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
%% == Plugins ==
4646

47-
{project_plugins, [rebar3_proper]}.
47+
{project_plugins, [rebar3_proper, rebar3_ex_doc]}.
4848

4949
%% == Profiles ==
5050

@@ -89,3 +89,20 @@
8989
deprecated_function_calls,
9090
deprecated_functions
9191
]}.
92+
93+
%% == Docs ==
94+
95+
{hex, [
96+
{doc, #{provider => ex_doc}}
97+
]}.
98+
99+
{ex_doc, [
100+
{source_url, <<"https://github.com/cabol/shards">>},
101+
{extras, [
102+
<<"guides/getting-started.md">>,
103+
<<"README.md">>,
104+
<<"CHANGELOG.md">>,
105+
<<"LICENSE">>
106+
]},
107+
{main, <<"readme">>}
108+
]}.

src/shards.app.src

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
{env, []},
1010
{licenses, ["MIT"]},
1111
{build_tools, ["rebar3", "make"]},
12+
{doc, "doc"},
1213
{links, [
13-
{"GitHub", "https://github.com/cabol/shards"},
14-
{"Getting Started", "https://github.com/cabol/shards/blob/master/guides/getting-started.md"},
15-
{"Blog Post", "http://cabol.github.io/posts/2016/04/14/sharding-support-for-ets.html"}
14+
{"GitHub", "https://github.com/cabol/shards"}
1615
]}
1716
]}.

0 commit comments

Comments
 (0)