mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
34 lines
826 B
JavaScript
34 lines
826 B
JavaScript
var path = require('path');
|
|
var package = require('./package');
|
|
|
|
// {{ settings for nico
|
|
exports.site = {
|
|
name: package.title,
|
|
description: package.description,
|
|
repo: package.repository.url,
|
|
issues: package.bugs.url
|
|
};
|
|
exports.theme = 'site';
|
|
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-jsx.PageWriter',
|
|
'nico-jsx.StaticWriter',
|
|
'nico-jsx.FileWriter'
|
|
];
|
|
// end settings }}
|