-
Notifications
You must be signed in to change notification settings - Fork 10
/
docpad.coffee
73 lines (64 loc) · 1.87 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
71
72
73
# DocPad Configuration File
# http://docpad.org/docs/config
# Define the DocPad Configuration
docpadConfig = {
templateData:
version: '3.2.2'
apiVersion: "42.0"
site:
url: "http://jsforce.github.io"
title: "JSforce"
description: "Salesforce API Library for JavaScript Applications"
keywords: "salesforce,javascript,api,node.js"
salesforce:
if process.env.NODE_ENV == 'production'
clientId: '3MVG9A2kN3Bn17hv5Z.MnUUfJRTgrq0KwgysLOXrljNJ1JB6HijwsXoNi8Imxvwi3b6pknYch_sU771SM1lTh'
redirectUri: 'https://jsforce.github.io/callback.html'
proxyUrl: 'https://node-salesforce-proxy.herokuapp.com/proxy/'
else
clientId: '3MVG9A2kN3Bn17hv5Z.MnUUfJRR0vtFfsvtVhkKTHPSz5gt5t6rMBSfyic.6YCd2J9YQEJ17kRk2cNEEKYLyD'
redirectUri: 'http://localhost:9778/callback.html'
proxyUrl: 'https://node-salesforce-proxy.herokuapp.com/proxy/'
navigations: [
name: "start"
title: "Getting Started"
url: "/start/"
,
name: "document"
title: "Document"
url: "/document/"
,
name: "download"
title: "Download"
url: "/download/"
,
name: "blog"
title: "Blog"
url: "/blog/"
,
name: "api"
title: "API Reference"
url: "https://jsforce.github.io/jsforce/"
,
name: "console"
title: "Web Console"
url: "/jsforce-web-console/"
,
name: "github"
title: "GitHub"
icon: "github"
url: "https://github.com/jsforce/jsforce"
]
footerNavigations: [
title: "Home"
url: "/"
]
# helper functions
moment: require("moment")
extend: require("underscore").extend
collections:
posts: ->
@getCollection('documents').findAllLive({ relativeOutDirPath: 'blog/posts' }, [ date: -1 ])
}
# Export the DocPad Configuration
module.exports = docpadConfig