Closed MathiasSM closed 6 years ago
Well, I figured it out. One does not need to export another object besides the default. The theme main function should have the added annotations
property.
function theme (a, b){
/*...*/
}
theme.annotations = [];
theme.annotations.push(() => {
return { name: "blah", /*...*/ }
}
export default theme;
The official docs only mention
modules.exports = () => {/*..theme stuff..*/}; module.exports.annotations = () => { return {name: "blah", /* ... */} }
. But the default theme uses ES6. The whole sassdoc code uses ES6 modules, and I just haven't figure out how to make it work.It just seems to me that
export {annotations}
should work (but does not).