Skip to content
This repository
Browse code

adding css for edocs; also adding edoc pointer to README

  • Loading branch information...
commit 978ac73951f7011bd92daf727f668f50b01ade13 1 parent 7815a88
authored April 30, 2012
2  README.org
Source Rendered
@@ -2,7 +2,7 @@
2 2
   Lager (as in the beer) is a logging framework for Erlang. Its purpose is
3 3
   to provide a more traditional way to perform logging in an erlang application
4 4
   that plays nicely with traditional UNIX logging tools like logrotate and
5  
-  syslog.
  5
+  syslog. You can view the Lager EDocs [[http://basho.github.com/lager/][here]].
6 6
 
7 7
 *  Features
8 8
     - Finer grained log levels (debug, info, notice, warning, error, critical,
130  priv/edoc.css
... ...
@@ -0,0 +1,130 @@
  1
+/* Baseline rhythm */
  2
+body {
  3
+   font-size: 16px;
  4
+   font-family: Helvetica, sans-serif;
  5
+   margin: 8px;
  6
+}
  7
+
  8
+p {
  9
+   font-size: 1em; /* 16px */
  10
+   line-height: 1.5em; /* 24px */
  11
+   margin: 0 0 1.5em 0;
  12
+}
  13
+
  14
+h1 {
  15
+   font-size: 1.5em; /* 24px */
  16
+   line-height: 1em; /* 24px */
  17
+   margin-top: 1em;
  18
+   margin-bottom: 0em;
  19
+}
  20
+
  21
+h2 {
  22
+   font-size: 1.375em; /* 22px */
  23
+   line-height: 1.0909em; /* 24px */
  24
+   margin-top: 1.0909em;
  25
+   margin-bottom: 0em;
  26
+}
  27
+
  28
+h3 {
  29
+   font-size: 1.25em; /* 20px */
  30
+   line-height: 1.2em; /* 24px */
  31
+   margin-top: 1.2em;
  32
+   margin-bottom: 0em;
  33
+}
  34
+
  35
+h4 {
  36
+   font-size: 1.125em; /* 18px */
  37
+   line-height: 1.3333em; /* 24px */
  38
+   margin-top: 1.3333em;
  39
+   margin-bottom: 0em;
  40
+}
  41
+
  42
+.class-for-16px {
  43
+   font-size: 1em; /* 16px */
  44
+   line-height: 1.5em; /* 24px */
  45
+   margin-top: 1.5em;
  46
+   margin-bottom: 0em;
  47
+}
  48
+
  49
+.class-for-14px {
  50
+   font-size: 0.875em; /* 14px */
  51
+   line-height: 1.7143em; /* 24px */
  52
+   margin-top: 1.7143em;
  53
+   margin-bottom: 0em;
  54
+}
  55
+
  56
+ul {
  57
+   margin: 0 0 1.5em 0;
  58
+}
  59
+
  60
+/* Customizations */
  61
+body {
  62
+   color: #333;
  63
+}
  64
+
  65
+tt, code, pre {
  66
+   font-family: "Andale Mono", "Inconsolata", "Monaco", "DejaVu Sans Mono", monospaced;
  67
+}
  68
+
  69
+tt, code { font-size: 0.875em }
  70
+
  71
+pre {
  72
+   font-size: 0.875em; /* 14px */
  73
+   line-height: 1.7143em; /* 24px */
  74
+   margin: 0 1em 1.7143em;
  75
+   padding: 0 1em;
  76
+   background: #eee;
  77
+}
  78
+
  79
+.navbar img, hr { display: none }
  80
+
  81
+table {
  82
+   border-collapse: collapse;
  83
+}
  84
+
  85
+h1 {
  86
+   border-left: 0.5em solid #fa0;
  87
+   padding-left: 0.5em;
  88
+}
  89
+
  90
+h2.indextitle {
  91
+   font-size: 1.25em; /* 20px */
  92
+   line-height: 1.2em; /* 24px */
  93
+   margin: -8px -8px 0.6em;
  94
+   background-color: #fa0;
  95
+   color: white;
  96
+   padding: 0.3em;
  97
+}
  98
+
  99
+ul.index {
  100
+   list-style: none;
  101
+   margin-left: 0em;
  102
+   padding-left: 0;
  103
+}
  104
+
  105
+ul.index li {
  106
+   display: inline;
  107
+   padding-right: 0.75em
  108
+}
  109
+
  110
+div.spec p {
  111
+   margin-bottom: 0;
  112
+   padding-left: 1.25em;
  113
+   background-color: #eee;
  114
+}
  115
+
  116
+h3.function {
  117
+   border-left: 0.5em solid #fa0;
  118
+   padding-left: 0.5em;
  119
+   background: #fc9;
  120
+}
  121
+a, a:visited, a:hover, a:active { color: #C60 }
  122
+h2 a, h3 a { color: #333 }
  123
+
  124
+i {
  125
+   font-size: 0.875em; /* 14px */
  126
+   line-height: 1.7143em; /* 24px */
  127
+   margin-top: 1.7143em;
  128
+   margin-bottom: 0em;
  129
+   font-style: normal;
  130
+}
1  rebar.config
@@ -2,3 +2,4 @@
2 2
 {erl_first_files, ["src/lager_util.erl"]}.
3 3
 
4 4
 {cover_enabled, true}.
  5
+{edoc_opts, [{stylesheet_file, "./priv/edoc.css"}]}.

0 notes on commit 978ac73

Please sign in to comment.
Something went wrong with that request. Please try again.