Skip to content

Commit

Permalink
Fix docs server
Browse files Browse the repository at this point in the history
  • Loading branch information
terezka committed Mar 16, 2018
1 parent e34b30b commit 6d94d18
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 66 deletions.
47 changes: 26 additions & 21 deletions docs/assets/main.js

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions docs/src/Area.elm
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ addCmd cmd model =

view : Model -> Html.Html Msg
view model =
Html.div []
[ LineChart.viewCustom (chartConfig model)
Html.div []
[ LineChart.viewCustom (chartConfig model)
[ LineChart.line Colors.pink Dots.diamond "Nora" model.data.nora
, LineChart.line Colors.cyan Dots.circle "Noah" model.data.noah
, LineChart.line Colors.blue Dots.triangle "Nina" model.data.nina
Expand Down Expand Up @@ -190,9 +190,9 @@ generateData =

toData : List Float -> List Datum
toData numbers =
let
toDatum index velocity =
Datum (indexToTime index) velocity
let
toDatum index velocity =
Datum (indexToTime index) velocity
in
List.indexedMap toDatum numbers

Expand All @@ -205,7 +205,7 @@ indexToTime index =



-- PROGRAM
-- PROGRAM


main : Program Never Model Msg
Expand All @@ -219,10 +219,10 @@ main =



-- SOURCE
-- SOURCE


source : String
source : String
source =
"""
-- MODEL
Expand Down Expand Up @@ -281,9 +281,9 @@ source =
toData : List Float -> List Datum
toData numbers =
let
toDatum index velocity =
Datum (indexToTime index) velocity
let
toDatum index velocity =
Datum (indexToTime index) velocity
in
List.indexedMap toDatum numbers
Expand Down Expand Up @@ -334,8 +334,8 @@ source =
view : Model -> Html.Html Msg
view model =
Html.div []
[ LineChart.viewCustom (chartConfig model)
Html.div []
[ LineChart.viewCustom (chartConfig model)
[ LineChart.line Colors.pink Dots.diamond "Nora" model.data.nora
, LineChart.line Colors.cyan Dots.circle "Noah" model.data.noah
, LineChart.line Colors.blue Dots.triangle "Nina" model.data.nina
Expand Down Expand Up @@ -396,7 +396,7 @@ source =
-- PROGRAM
-- PROGRAM
main : Program Never Model Msg
Expand All @@ -409,4 +409,4 @@ source =
}
"""
"""
56 changes: 28 additions & 28 deletions docs/src/Lines.elm
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ addCmd cmd model =

view : Model -> Html.Html Msg
view model =
Html.div []
[ LineChart.viewCustom (chartConfig model)
Html.div []
[ LineChart.viewCustom (chartConfig model)
[ LineChart.line (Manipulate.lighten 0.2 Colors.cyan) Dots.circle "Denmark" model.data.denmark
, LineChart.line (Manipulate.lighten 0 Colors.cyan) Dots.circle "Sweden" model.data.sweden
, LineChart.line (Manipulate.lighten 0.2 Colors.blue) Dots.circle "Iceland" model.data.iceland
Expand Down Expand Up @@ -147,10 +147,10 @@ chartConfig model =
, line = lineConfig model.hinted
, dots = Dots.custom (Dots.disconnected 4 2)
}



-- CHART CONFIG / AXES

-- CHART CONFIG / AXES


yAxisConfig : Axis.Config Datum Msg
Expand Down Expand Up @@ -212,16 +212,16 @@ tickTime time =
}


tickLabel : String -> Svg.Svg msg
tickLabel : String -> Svg.Svg msg
tickLabel =
Junk.label Colors.black



-- CHART CONFIG / CONTIANER
-- CHART CONFIG / CONTIANER


containerConfig : Container.Config Msg
containerConfig : Container.Config Msg
containerConfig =
Container.custom
{ attributesHtml = []
Expand All @@ -233,10 +233,10 @@ containerConfig =



-- CHART CONFIG / EVENTS
-- CHART CONFIG / EVENTS


eventsConfig : Events.Config Datum Msg
eventsConfig : Events.Config Datum Msg
eventsConfig =
Events.custom
[ Events.onMouseMove Hint Events.getNearest
Expand Down Expand Up @@ -305,9 +305,9 @@ generateData =

toData : List Float -> List Datum
toData numbers =
let
toDatum index rain =
Datum (indexToTime index) rain
let
toDatum index rain =
Datum (indexToTime index) rain
in
List.indexedMap toDatum numbers

Expand All @@ -323,7 +323,7 @@ xInterval =



-- PROGRAM
-- PROGRAM


main : Program Never Model Msg
Expand All @@ -341,7 +341,7 @@ main =
-- SOURCE


source : String
source : String
source =
"""
-- MODEL
Expand Down Expand Up @@ -430,8 +430,8 @@ source =
view : Model -> Html.Html Msg
view model =
Html.div []
[ LineChart.viewCustom (chartConfig model)
Html.div []
[ LineChart.viewCustom (chartConfig model)
[ LineChart.line (Manipulate.lighten 0.2 Colors.cyan) Dots.circle "Denmark" model.data.denmark
, LineChart.line (Manipulate.lighten 0 Colors.cyan) Dots.circle "Sweden" model.data.sweden
, LineChart.line (Manipulate.lighten 0.2 Colors.blue) Dots.circle "Iceland" model.data.iceland
Expand Down Expand Up @@ -461,10 +461,10 @@ source =
, line = lineConfig model.hinted
, dots = Dots.custom (Dots.disconnected 4 2)
}
-- CHART CONFIG / AXES
-- CHART CONFIG / AXES
yAxisConfig : Axis.Config Datum Msg
Expand Down Expand Up @@ -526,16 +526,16 @@ source =
}
tickLabel : String -> Svg.Svg msg
tickLabel : String -> Svg.Svg msg
tickLabel =
Junk.label Colors.black
-- CHART CONFIG / CONTIANER
-- CHART CONFIG / CONTIANER
containerConfig : Container.Config Msg
containerConfig : Container.Config Msg
containerConfig =
Container.custom
{ attributesHtml = []
Expand All @@ -547,10 +547,10 @@ source =
-- CHART CONFIG / EVENTS
-- CHART CONFIG / EVENTS
eventsConfig : Events.Config Datum Msg
eventsConfig : Events.Config Datum Msg
eventsConfig =
Events.custom
[ Events.onMouseMove Hint Events.getNearest
Expand Down Expand Up @@ -619,9 +619,9 @@ source =
toData : List Float -> List Datum
toData numbers =
let
toDatum index rain =
Datum (indexToTime index) rain
let
toDatum index rain =
Datum (indexToTime index) rain
in
List.indexedMap toDatum numbers
Expand All @@ -637,7 +637,7 @@ source =
-- PROGRAM
-- PROGRAM
main : Program Never Model Msg
Expand All @@ -649,4 +649,4 @@ source =
, subscriptions = always Sub.none
}
"""
"""
2 changes: 1 addition & 1 deletion docs/src/Random/Pipeline.elm
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ with =
{-| -}
send : (a -> msg) -> (Random.Generator a) -> Cmd msg
send =
Random.generate
Random.generate
3 changes: 2 additions & 1 deletion elm-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"repository": "https://github.com/user/project.git",
"license": "BSD3",
"source-directories": [
"./src"
"./src",
"./docs/src"
],
"exposed-modules": [
"LineChart",
Expand Down

0 comments on commit 6d94d18

Please sign in to comment.