Hi,
If you're using Sublime Text as your text editor[1], I'd recommend checking out the DocBlockr plugin[2]. It makes it easier to produce documentation comments.
It helps you through various features such as: * Autocomplete various @-tags * Auto-create blocks[3] * Detect function params and property value types * And lots more..
It avoids mistakes and speeds up the creation of conformant comments so that Jenkins/JSDuck won't shout at you.
Though it provides all this by default, I recommend you fine tune it to your liking (and to the specifics of JSDuck).
To deal with the variety in how different projects write documentation comments, it has various configuration options[4] (e.g. @return vs @returns, @var, vs @property, type {Boolean}, {boolean} or {bool} etc.). I've published my configuration on GitHub. It might be useful to you to get started[5].
You can install DocBlockr in Subllime the "easy" way using Package Control[6], or check out the plugin page[2] for manual installation.
-- Krinkle
[1] http://www.sublimetext.com/ [2] https://github.com/spadgos/sublime-jsdocs [3] Type "/**" followed by tab to insert the template, then tab trough placeholders to fill them in [4] https://github.com/spadgos/sublime-jsdocs/blob/2.11.7/Base%20File.sublime-se... [4] https://github.com/Krinkle/dotfiles/blob/b2088da/hosts/KrinkleMac/SublimePre... [5] https://sublime.wbond.net/
On 2013-11-19 3:35 AM, Krinkle wrote:
Though it provides all this by default, I recommend you fine tune it to your liking (and to the specifics of JSDuck).
To deal with the variety in how different projects write documentation comments, it has various configuration options[4] (e.g. @return vs @returns, @var, vs @property, type {Boolean}, {boolean} or {bool} etc.). I've published my configuration on GitHub. It might be useful to you to get started[5].
No per-project config we can put right into core?
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]
On Tue, Nov 19, 2013 at 3:35 AM, Krinkle krinklemail@gmail.com wrote:
DocBlockr
Nice. I hadn't know about Package Control either.
thanks
--tomasz
Package Control is you friend. How else do you install a linter or syntax highlighting for a new language without touching a mouse?
On Tue, Nov 19, 2013 at 2:42 PM, Tomasz Finc tfinc@wikimedia.org wrote:
On Tue, Nov 19, 2013 at 3:35 AM, Krinkle krinklemail@gmail.com wrote:
DocBlockr
Nice. I hadn't know about Package Control either.
thanks
--tomasz
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org