-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocpad.coffee
70 lines (66 loc) · 2.17 KB
/
docpad.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports =
## Put your general Website information here!
templateData:
site:
title: "Open Device Lab X"
twitter: "odl"
facebook: "https://www.facebook.com/facebookdevelopers"
email: "[email protected]"
phone: "1234 5678"
twitterWidgetId: "12341234"
partnerLogos: [
{
path: "assets/img/android.svg"
url: "http://www.fwd.io"
}
]
devices:
iphone3gs:
manufacturer: "Apple"
model: "iPhone 3GS"
os: "iOS"
version: "6"
contributor: "<a href='http://www.example.com'>John Doe</a>"
type: "phone"
ipodtouch4g:
manufacturer: "Samsung"
model: "Galaxy Tab"
os: "Android"
version: "4"
contributor: "Foocorp"
type: "tablet"
foo:
manufacturer: "RIM"
model: "Blackberry Bolt"
os: "OS"
version: "6"
contributor: "Monsters, Inc."
type: "phone"
bar:
manufacturer: "Nokia"
model: "Communicat0r"
os: "Symbian"
version: "0.0.1"
contributor: "Foocorp"
type: "phone"
webos:
manufacturer: "HP"
model: "Minitinyphone"
os: "WebOS"
version: "3"
contributor: "HP"
type: "phone"
## Helpers for the handlebars templating engine
plugins:
handlebars:
helpers:
getBlock: (type, prefix, additional...) ->
additional.pop()
newPaths = (prefix+path for path in additional)
@getBlock(type).add(newPaths).toHTML()
lowercase: (string) ->
string.toLowerCase()
safeurl: (url) ->
encodeURI(url)
## Disables build notifications which can be very annoying
growl: false