@@ -28,3 +28,4 @@ erl_crash.dump
*.beam
test/results/*
!test/results/.keep
+doc/
@@ -0,0 +1,4 @@
+{source_url, <<"https://github.com/ostinelli/syn">>}.
+{extras, [<<"LICENSE.md">>]}.
+{main, <<"syn">>}.
+{proglang, erlang}.
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+# Setup:
+#
+# mix escript.install github elixir-lang/ex_doc
+# asdf install erlang 24.0.2
+# asdf local erlang 24.0.2
+rebar3 compile
+rebar3 as docs edoc
+version=3.0.0
+ex_doc "syn" $version "_build/default/lib/syn/ebin" \
+ --source-ref v${version} \
+ --config docs.config $@
@@ -1 +1,9 @@
-
+{erl_opts, [debug_info]}.
+{deps, []}.
+{profiles, [
+ {docs, [{edoc_opts, [{preprocess, true},
+ {doclet, edoc_doclet_chunks},
+ {layout, edoc_layout_chunks},
+ {dir, "_build/default/lib/syn/doc"}]}
+ ]}
+]}.
@@ -16,8 +16,7 @@
{env, []},
{licenses, ["MIT"]},
- {links, [
- {"Github", "https://github.com/ostinelli/syn"}
- ]}
+ {links, [{"Github", "https://github.com/ostinelli/syn"}]},
+ {doc, "doc"}
]
}.
@@ -280,6 +280,7 @@ three_nodes_discover_custom_scope(Config) ->
%% reconnect node 2
syn_test_suite_helper:connect_node(SlaveNode2),
ok = syn_test_suite_helper:wait_cluster_connected([node(), SlaveNode1, SlaveNode2]),
+ timer:sleep(250),
%% check
assert_scope_subcluster(node(), custom_scope_ab, [SlaveNode1]),