mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
12 lines
333 B
JavaScript
12 lines
333 B
JavaScript
const path = require('path');
|
|
const processDoc = require('./process-doc');
|
|
const processDemo = require('./process-demo');
|
|
|
|
module.exports = (markdownData) => {
|
|
const isDemo = path.dirname(markdownData.meta.filename).endsWith('/demo');
|
|
if (isDemo) {
|
|
return processDemo(markdownData);
|
|
}
|
|
return processDoc(markdownData);
|
|
};
|