mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
15 lines
384 B
JavaScript
15 lines
384 B
JavaScript
var walk = require('../lib/walk'),
|
|
traverse = require('babel-traverse').default;
|
|
|
|
module.exports = function (comments) {
|
|
return walk(comments, function (comment) {
|
|
if (comment.context.ast) {
|
|
traverse.removeProperties(comment.context.ast);
|
|
}
|
|
delete comment.context.file;
|
|
if (comment.context.github) {
|
|
comment.context.github = '[github]';
|
|
}
|
|
});
|
|
};
|