Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
otp_version: [21,22,23]
otp_version: [22,23,24]
os: [ubuntu-latest]

container:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ rel/example_project
.rebar
.rebar3
_build/
rebar3
rebar3
doc/*
!doc/style.css
!doc/overview.edoc
9 changes: 9 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,12 @@ clean: clean_logs $(REBAR)
dist-clean: clean
$(REBAR) $(REBAR_OPTS) clean -a
rm -f ./rebar3

##
## Doc targets
##
docs: $(REBAR)
$(REBAR) edoc

edoc_private: $(REBAR)
$(REBAR) as edoc_private edoc
5 changes: 5 additions & 0 deletions doc/overview.edoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@author Zotonic Team
@title dispatch_compiler
@doc Compiles dispatch rules to an Erlang module for quick matching.
@copyright Apache 2.0

71 changes: 71 additions & 0 deletions doc/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/* standard EDoc style sheet */
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
margin-left: .25in;
margin-right: .2in;
margin-top: 0.2in;
margin-bottom: 0.2in;
color: #000000;
background-color: #ffffff;
}
h1,h2 {
margin-left: -0.2in;
}
div.navbar {
background-color: #add8e6;
padding: 0.2em;
}
h2.indextitle {
padding: 0.4em;
background-color: #add8e6;
}
h3.function,h3.typedecl {
background-color: #add8e6;
padding-left: 1em;
}
div.spec {
margin-left: 2em;

background-color: #eeeeee;
}
a.module {
text-decoration:none
}
a.module:hover {
background-color: #eeeeee;
}
ul.definitions {
list-style-type: none;
}
ul.index {
list-style-type: none;
background-color: #eeeeee;
}

/*
* Minor style tweaks
*/
ul {
list-style-type: square;
}
table {
border-collapse: collapse;
}
td {
padding: 3px;
vertical-align: middle;
}

/*
Tune styles
*/

table[summary="navigation bar"] {
background-image: url('http://zotonic.com/lib/images/logo.png');
background-repeat: no-repeat;
background-position: center;
}

code, p>tt, a>tt {
font-size: 1.2em;
}
20 changes: 20 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,23 @@
{dispatch_compiler, match, 3},
{dispatch_compiler, runtime_bind, 3}
]}.

{edoc_opts, [
{preprocess, true}, {stylesheet, "style.css"}
]}.

{profiles, [
{edoc_private, [
{edoc_opts, [
{private, true}
]}
]},
{test, [
{dialyzer, [
{warnings, [
no_return
]}
]}

]}
]}.
Loading