mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
27 lines
641 B
JavaScript
27 lines
641 B
JavaScript
var path = require('path');
|
|
|
|
// {{ settings for nico
|
|
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 }}
|