-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
44 lines (43 loc) · 1.58 KB
/
index.js
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
const Model = require('./src/model');
module.exports = {
/**
* Creates empty model instance
* @returns {Model}
*/
createModel: () => {
return new Model();
},
tasks: {
core: {
importModel: require('./src/tasks/core/import-model'),
mergeModels: require('./src/tasks/core/merge-models'),
saveModel: require('./src/tasks/core/save-model'),
rsync: require('./src/tasks/core/rsync')
},
docs: {
loadSourceFromGithub: require('./src/tasks/docs/load-from-github'),
loadSourceFromLocal: require('./src/tasks/docs/load-from-file'),
loadSourceFromHttp: require('./src/tasks/docs/load-from-http'),
transformMdToHtml: require('./src/tasks/docs/transform-md-html')
},
meta: {
generateTagPages: require('./src/tasks/meta/tags')
},
page: {
createHeaderTitle: require('./src/tasks/page/header-title'),
createHeaderMeta: require('./src/tasks/page/header-meta'),
createBreadcrumbs: require('./src/tasks/page/breadcrumbs'),
createSearchMeta: require('./src/tasks/page/search-meta')
},
override: {
overrideDocLinks: require('./src/tasks/override/override-doc-links'),
processDocImages: require('./src/tasks/override/process-doc-images')
},
sitemap: {
createSitemapXML: require('./src/tasks/sitemap/sitemap-xml')
},
template: {
applyBEM: require('./src/tasks/template/full-bem')
}
}
};