Open darbymanning opened 6 years ago
Hi,
yeah let's forget about themeleon-nunjucks and the generator, we can't ensure everything still works as expected.
Instead you could have a look at themes using nunjuncks:
https://github.com/pascalduez/sassdoc-theme-literate
https://github.com/oddbird/sassdoc-theme-herman
I'm attempting to make my own sassdoc theme using Nunjucks - and have used the theme generator (
yo sassdoc-theme:nunjucks
) to create a Nunjucks boilerplate. However I am struggling to add filters or any config to Nunjucks.In the themeleon-nunjucks repo (deprecated) this is documentation which includes some customisation, specifically it shows:
t.nunjucks.configure('views', options);
But this now all seems superseded now that consolidate.js is used to handle template engines. As doing this results in:
» [ERROR] TypeError: t.nunjucks.configure is not a function
I've tried to include my own
nunjucks
, so I can add config settings etc. to it - but haven't really found a way to successfully then generate the html views when doing so.Anyone have any ideas or an alternative solution to get things up and running?