dgeni
dgeni copied to clipboard
(feat) Support for importing example partials
The ngdocs syntax is excellent, but I have a strong aversion to putting html and javascript examples directly in the code. Is it possible with dgeni to maybe write an adapter that would allow importing external html partials and js files for examples? Possible syntax would be:
/**
* @example.html url('../examples/feature/dosomething.html')
* @example.js url('../examples/feature/dosomething.js')
*/
Great idea. I think it would work better with an inline tag, perhaps...
{@example srcs="['examples/feature/dosomething.html', ...]"}
... then you can place examples at any point in your documentation.
No arguments. Feature is the main thing!
I love the idea :+1:
Anyone fancy writing a pull request to dgeni-packages for this?