UNPKG

2.42 kBJavaScriptView Raw
1var jsdoc2md = require("jsdoc-to-markdown");
2var fs = require("fs");
3var path = require("path");
4
5jsdoc2md.render({
6 files: ['lib/condensation/template-helpers/functions/*.js'],
7 partial: [
8 path.join(__dirname,"..","jsdoc2md","templates","sig-name.hbs")
9 ],
10 separators: true,
11 "name-format": false,
12 "global-index-format": "none",
13 "module-index-format": "none"
14}).then(function(doc) {
15 fs.writeFile(path.join(__dirname,"..","docs","intrinsic-functions.md"),doc,function(err) {
16 if (err) console.warn(err);
17 //done
18 });
19});
20
21jsdoc2md.render({
22 files: [
23 'lib/condensation/template-helpers/sections/*.js',
24 'lib/condensation/template-helpers/helper.js',
25 'lib/condensation/template-helpers/partial.js',
26 'lib/condensation/template-helpers/set.js'
27 ],
28 partial: [
29 path.join(__dirname,"..","jsdoc2md","templates","sig-name.hbs")
30 ],
31 separators: true,
32 "name-format": false,
33 "global-index-format": "none",
34 "module-index-format": "none"
35}).then(function(doc) {
36 fs.writeFile(path.join(__dirname,"..","docs","particle-helpers.md"),doc,function(err) {
37 //done
38 });
39});
40
41jsdoc2md.render({
42 files: [
43 'lib/condensation/template-helpers/index.js',
44 'lib/condensation/template-helpers/arrayify.js',
45 'lib/condensation/template-helpers/assetPath.js',
46 'lib/condensation/template-helpers/cValue.js',
47 'lib/condensation/template-helpers/layout.js',
48 'lib/condensation/template-helpers/objectify.js',
49 'lib/condensation/template-helpers/requireAssets.js',
50 'lib/condensation/template-helpers/scopeId.js',
51 'lib/condensation/template-helpers/templateS3Url.js'
52 ],
53 partial: [
54 path.join(__dirname,"..","jsdoc2md","templates","sig-name.hbs")
55 ],
56 separators: true,
57 "name-format": false,
58 "global-index-format": "none",
59 "module-index-format": "none"
60}).then(function(doc) {
61 fs.writeFile(path.join(__dirname,"..","docs","template-helpers.md"),doc,function(err) {
62 if (err) console.warn(err);
63 //done
64 });
65});
66
67jsdoc2md.render({
68 files: [
69 'lib/handlebars-helpers/*'
70 ],
71 partial: [
72 path.join(__dirname,"..","jsdoc2md","templates","sig-name.hbs")
73 ],
74 separators: true,
75 "name-format": false,
76 "global-index-format": "none",
77 "module-index-format": "none"
78}).then(function(doc) {
79 fs.writeFile(path.join(__dirname,"..","docs","handlebars-helpers.md"),doc,function(err) {
80 if (err) console.warn(err);
81 //done
82 });
83});