on master help sign in
Make docs nicer
463873bEvan Czaplicki
libraries/Color.elm+1−1
@@ -6,7 +6,7 @@ module Color where
6built-in names.
6built-in names.
7
7
8# Creation
8# Creation
9−@docs rgb, rgba, hsv, hsva, grayscale, greyscale
9+@docs rgb, rgba, hsv, hsva, greyscale, grayscale
10
10
11# From Other Colors
11# From Other Colors
12@docs complement
12@docs complement
libraries/Graphics/Collage.elm+1−1
@@ -125,7 +125,7 @@ tiled to fill the entire shape.
125textured : String -> Shape -> Form
125textured : String -> Shape -> Form
126textured src shape = fill (Texture src) shape
126textured src shape = fill (Texture src) shape
127
127
128−{-| Fill a shape with a [gradient](/docs/Color.elm#linear). -}
128+{-| Fill a shape with a [gradient](/library/Color.elm#linear). -}
129gradient : Gradient -> Shape -> Form
129gradient : Gradient -> Shape -> Form
130gradient grad shape = fill (Grad grad) shape
130gradient grad shape = fill (Grad grad) shape
131
131
libraries/Graphics/Element.elm+7−8
@@ -204,9 +204,8 @@ flow dir es =
204 DIn -> newFlow (List.maximum ws) (List.maximum hs)
204 DIn -> newFlow (List.maximum ws) (List.maximum hs)
205 DOut -> newFlow (List.maximum ws) (List.maximum hs)
205 DOut -> newFlow (List.maximum ws) (List.maximum hs)
206
206
207−{-| Stack elements vertically. To put `a` above `b` you would say:
207+{-| Stack elements vertically.
208−
208+To put `a` above `b` you would say: ``a `above` b``
209− a `above` b
210-}
209-}
211above : Element -> Element -> Element
210above : Element -> Element -> Element
212above hi lo =
211above hi lo =
@@ -214,9 +213,8 @@ above hi lo =
214 (heightOf hi + heightOf lo)
213 (heightOf hi + heightOf lo)
215 (Flow DDown [hi,lo])
214 (Flow DDown [hi,lo])
216
215
217−{-| Stack elements vertically. To put `a` below `b` you would say:
216+{-| Stack elements vertically.
218−
217+To put `a` below `b` you would say: ``a `below` b``
219− a `below` b
220-}
218-}
221below : Element -> Element -> Element
219below : Element -> Element -> Element
222below lo hi =
220below lo hi =
@@ -225,6 +223,7 @@ below lo hi =
225 (Flow DDown [hi,lo])
223 (Flow DDown [hi,lo])
226
224
227{-| Put elements beside each other horizontally.
225{-| Put elements beside each other horizontally.
226+To put `a` beside `b` you would say: ``a `beside` b``
228-}
227-}
229beside : Element -> Element -> Element
228beside : Element -> Element -> Element
230beside lft rht =
229beside lft rht =
@@ -232,8 +231,8 @@ beside lft rht =
232 (max (heightOf lft) (heightOf rht))
231 (max (heightOf lft) (heightOf rht))
233 (Flow right [lft,rht])
232 (Flow right [lft,rht])
234
233
235−{-| Layer elements on top of each other, starting from the bottom.
234+{-| Layer elements on top of each other, starting from the bottom:
236−`(layers == flow outward)`
235+`layers == flow outward`
237-}
236-}
238layers : [Element] -> Element
237layers : [Element] -> Element
239layers es =
238layers es =
libraries/JavaScript.elm+1−1
@@ -9,7 +9,7 @@ integration.
9@docs toString, toInt, toFloat, toBool, toList
9@docs toString, toInt, toFloat, toBool, toList
10
10
11# JavaScript from Elm
11# JavaScript from Elm
12−@docs fromString, fromInt, fromFloat, fromBool fromList
12+@docs fromString, fromInt, fromFloat, fromBool, fromList
13-}
13-}
14{-
14{-
15# DOM Nodes and Elements
15# DOM Nodes and Elements
libraries/Signal.elm+3−3
@@ -15,15 +15,15 @@ the [`Time`](/docs/Signal/Time.elm) library.
15# Combine
15# Combine
16@docs constant, lift, lift2, merge, merges, combine
16@docs constant, lift, lift2, merge, merges, combine
17
17
18−# Pretty Lift
19−@docs (<~), (~)
20−
21# Past-Dependence
18# Past-Dependence
22@docs foldp, count, countIf
19@docs foldp, count, countIf
23
20
24#Filters
21#Filters
25@docs keepIf, dropIf, keepWhen, dropWhen, dropRepeats, sampleOn
22@docs keepIf, dropIf, keepWhen, dropWhen, dropRepeats, sampleOn
26
23
24+# Pretty Lift
25+@docs (<~), (~)
26+
27# Do you even lift?
27# Do you even lift?
28@docs lift3, lift4, lift5, lift6, lift7, lift8
28@docs lift3, lift4, lift5, lift6, lift7, lift8
29
29