-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocpad.js
More file actions
69 lines (66 loc) · 2.01 KB
/
docpad.js
File metadata and controls
69 lines (66 loc) · 2.01 KB
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
// http://docpad.org/docs/config
require('longjohn');
var _ = require('lodash');
module.exports = {
templateData: {
site: {
title: "holonomy is",
tagline: "the hive mind economy",
description: "holonomy is the economy represented by the collective action of [holon](http://en.wikipedia.org/wiki/Holon_%28philosophy%29) beings. in order to create a better holonomy, we must strip away the infrastructure that causes us to act against each other, and reconstruct our economy as [peer-to-peer](http://en.wikipedia.org/wiki/Peer-to-peer) markets of self-organizing and replicating cooperatives.",
},
},
detectEncoding: true,
plugins: {
handlebars: {
helpers: {
partial: function (content, options) {
return this.partial(content, options);
},
block: function (blockName) {
return this.getBlock(blockName).toHTML();
},
marked: function (options) {
return require('marked')(options.fn(this));
},
unmarked: function (options) {
var marked = require('marked')(options.fn(this));
// http://stackoverflow.com/questions/822452/strip-html-from-text-javascript
return marked.replace(/<(?:.|\n)*?>/gm, '');
},
},
},
browserifybundles: {
bundles: [{
arguments: ['-t', 'uglifyify'],
entry: 'scripts/index.js',
out: 'scripts/bundle.js',
}],
environments: {
development: {
bundles: [{
arguments: ['-d'],
entry: 'scripts/index.js',
out: 'scripts/bundle.js',
}],
},
},
},
raw: {
'font-awesome': {
command: ['rsync', '-r', 'node_modules/font-awesome/fonts/', 'out/fonts'],
},
semantic: {
command: ['rsync', '-r', 'node_modules/semantic/src/fonts/', 'out/fonts'],
},
},
ghpages: {
deployRemote: 'target',
deployBranch: 'master',
},
},
environments: {
development: {
port: 5000,
},
},
};