Skip to content

Commit 1a999dd

Browse files
committed
Added faq sync with helpscout.
1 parent 2507a07 commit 1a999dd

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

Gruntfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ module.exports = function (grunt) {
66

77
var loader = require( 'load-project-config' ),
88
config = require( 'grunt-plugin-fleet' );
9+
config = config();
10+
// jshint ignore: start
11+
config.taskMap['faq_builder'] = 'grunt-helpscout-faq';
12+
// jshint ignore: end
13+
loader(grunt, config).init();
914
loader( grunt, config ).init();
1015
};

grunt/faq_builder.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Faq builder for Grunt
3+
*/
4+
//jshint ignore: start
5+
module.exports = {
6+
options: {
7+
filename: 'readme.txt',
8+
api_key: 'e2a5c1a75f6132ced80bb05ee445a76ffa7fc430',
9+
collection_id: '561ec249c69791452ed4bceb',
10+
category_id: '596e5c5f2c7d3a73488b33ec',
11+
template: "= {article_title} = \n [{article_link}]({article_link}) \n\n ",
12+
},
13+
helpscout: {},
14+
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
},
2424
"devDependencies": {
2525
"grunt-plugin-fleet": "github:codeinwp/grunt-plugin-fleet",
26-
"load-project-config": "~0.2.0"
26+
"load-project-config": "~0.2.0",
27+
"grunt-helpscout-faq": "~0.1.0"
2728
},
2829
"wraithSlug": [
2930
"visualizer"

0 commit comments

Comments
 (0)