-
Notifications
You must be signed in to change notification settings - Fork 236
Custom tags
Rene Saarsoo edited this page May 28, 2013
·
43 revisions
NB! This guide applies to new JSDuck 5 beta. For the current stable release see --> Old custom tags system.
The upcoming JSDuck 5.0 brings a brand new custom tags system. It's much more flexible and powerful than the old system introduced in JSDuck 3.0, but it's not backwards compatible.
To install the 5.0 beta:
$ gem install jsduck --pre
To introduce a new @tag
, you'll need to write a Ruby class
that implements the tag. Then load the class into JSDuck using the
--tags
option:
$ jsduck --tags my_custom_tag.rb ...other.options...
But don't be scared of Ruby. We'll start off with the very simplest of tags that even a monkey can implement.