ant-design/nico.js

30 lines
682 B
JavaScript
Raw Normal View History

2015-05-09 17:36:15 +08:00
var path = require('path');
// {{ settings for nico
2015-05-12 17:50:03 +08:00
exports.site = {
name: 'Ant Design'
};
2015-05-09 17:36:15 +08:00
exports.theme = 'theme';
exports.source = process.cwd();
exports.output = path.join(process.cwd(), '_site');
exports.permalink = '{{directory}}/{{filename}}';
exports.ignorefilter = function(filepath, subdir) {
var extname = path.extname(filepath);
if (extname === '.tmp' || extname === '.bak') {
return false;
}
if (/\.DS_Store/.test(filepath)) {
return false;
}
if (/^(_site|_theme|node_modules|\.idea)/.test(subdir)) {
return false;
}
return true;
};
exports.writers = [
'nico.PageWriter',
'nico.StaticWriter',
'nico.FileWriter'
];
// end settings }}