2040 Commits

Author SHA1 Message Date
Jeff Williams
86da37d561 clarify comment 2014-06-23 13:01:05 -07:00
Jeff Williams
14d11c2844 remove parameter properties from the method signature (#680) 2014-06-22 19:45:02 -07:00
Jeff Williams
ae0a03af5c if a module exports one symbol, do not treat it as a global, regardless of the symbol's kind (#667)
Plus some test cleanup.
2014-06-20 17:36:49 -07:00
Jeff Williams
8840f30a0b autodetect parameter names in function expressions (#674) 2014-06-20 16:51:36 -07:00
Jeff Williams
941b647d5b prevent type info from overwriting existing doclet properties (#676) 2014-06-19 16:44:38 -07:00
Jeff Williams
6672668b48 add the AST node to doclets as a non-enumerable property by default
This change prevents a lot of clutter when using the `--explain` flag to log doclets to the console.

If the `--debug` flag is enabled, AST nodes are added as enumerable properties.
2014-06-17 21:42:45 -07:00
Jeff Williams
636bd83a17 test cleanup 2014-06-17 21:34:48 -07:00
Jeff Williams
2107d463da use throws as the primary name and exception as the synonym 2014-06-17 21:34:40 -07:00
Jeff Williams
be60e811eb when creating links, do not treat <anonymous> types as type applications, and handle union types without parentheses (#654) 2014-06-15 20:57:08 -07:00
Jeff Williams
eeb9c94c66 validate tags that have no text (#661) 2014-06-15 20:42:44 -07:00
Jeff Williams
a9a6ebd9ce clean up test spec 2014-06-15 20:38:24 -07:00
Jeff Williams
722241dd51 escape HTML characters in code blocks (#635) 2014-06-15 14:12:17 -07:00
Jeff Williams
92c8f101e4 streamline tests 2014-06-15 13:57:30 -07:00
Jeff Williams
72512fdc91 disable ESLint max-nested-callbacks rule 2014-06-15 13:53:25 -07:00
Jeff Williams
46c3710510 bump revision 2014-06-15 11:40:13 -07:00
Jeff Williams
cc53f6ac7e ignore Requizzle module 2014-06-15 11:39:29 -07:00
Jeff Williams
2d870909a6 allow templates/plugins to override JSDoc dependencies on Node.js (#671)
Also removes Requizzle from git, because this module is not used on Rhino.
2014-06-15 11:38:42 -07:00
Jeff Williams
fa57a07c6b refer questions to Stack Overflow until the mailing list is fixed 2014-06-14 07:58:25 -07:00
Jeff Williams
80ab18d65d bump revision 2014-06-11 17:02:07 -07:00
Jeff Williams
6b0c06eddd allow external templates/plugins to require() things in node_modules (#665) 2014-06-11 13:03:29 -07:00
Jeff Williams
1a15f92ea2 update Requizzle; remove workaround for jsdoc/package require issue (#662) 2014-06-11 09:18:53 -07:00
Jeff Williams
4eb0adcda2 add ESLint to gitignore 2014-06-10 23:00:35 -07:00
Jeff Williams
b5a5d09e02 update Catharsis so type unions without parens can be parsed (#644) 2014-06-10 22:25:01 -07:00
Jeff Williams
bbd06c4ff8 work around Requizzle bug (#662) 2014-06-10 09:34:51 -07:00
Jeff Williams
d4219bafad strip comments from the JSON config file (#660) 2014-06-09 20:36:38 -07:00
Jeff Williams
fd5ca944d2 abolish the post-install script and template/plugin copying (#519, #612)
JSDoc has a few requirements that are somewhat unusual for a Node.js app:

1. We need `require('jsdoc/foo')` to work from any module.
2. We need `require('jsdoc/foo')` to work from external code, such as templates and plugins.

Prior to this commit, JSDoc did two separate things to meet these requirements:

1. Use an npm post-install script to create a symlink from `lib/jsdoc` to `node_modules/jsdoc`.
2. When a user runs JSDoc, copy templates and plugins into the JSDoc directory.

These fixes worked, sort of. But they also caused numerous issues with file permissions, especially on Windows.

We now use the Requizzle module, which hacks the Node.js module system to support JSDoc's use cases. There's no longer a post-install script, and there's no need for a symlink in `node_modules`.
2014-06-09 17:27:06 -07:00
Jeff Williams
9555f6c43f update Underscore.js dependency 2014-05-29 22:54:54 -04:00
Jeff Williams
57b562f1b4 clean up require() calls, plus some odds and ends
- hoist require() calls into module scope to make them more efficient
- move some constants from jsdoc/doclet to jsdoc/name for sanity, and to break a circular dependency
- in jsdoc/src/astnode, define the node properties all at once
- remove the gratuitous constant for the `undocumented` tag; we only use it once
- remove a bit of dead code
2014-05-29 22:42:27 -04:00
Jeff Williams
329db29c4f fix syntax for modules that export a single constructor (#655) 2014-05-29 18:51:36 -07:00
Jeff Williams
92515fa5b3 bump revision 2014-05-27 16:55:02 -07:00
Jeff Williams
5d308963e5 improve test coverage; remove unreachable code; other cleanup 2014-05-27 16:54:38 -07:00
Jeff Williams
43ebd95874 add tests for external tag 2014-05-23 13:29:52 -07:00
Jeff Williams
ff81796a71 create doclets for externals
Fixes a regression introduced by #537.
2014-05-22 17:35:45 -07:00
Jeff Williams
3e1d704eac bump revision; fix "gulp bump" task
note: "gulp bump" currently creates unnecessary whitespace diffs.
2014-05-21 22:53:36 -07:00
Jeff Williams
90b0d21633 improve test coverage 2014-05-21 22:46:47 -07:00
Jeff Williams
53479c10e8 make several methods chainable 2014-05-21 22:20:01 -07:00
Jeff Williams
5a34187ed7 switch from Grunt to gulp 2014-05-21 21:40:44 -07:00
Jeff Williams
1566421a62 give doclets a longname even if the name is empty (#643) 2014-04-26 10:57:10 -07:00
Jeff Williams
f635b10b6f fix comment-attachment issue (#638)
The issue in brief: Within an object literal, if a standalone comment was followed by a commented symbol, the symbol's comment would not be attached correctly.

The fix essentially reverts the changes for #565, which are no longer needed thanks to 50cd99fa2fca753fcf7c9ec3ecf70afd47168e94.

The fix also corrects the order in which we walk a MemberExpression's child nodes. Without this correction, comments would not be attached correctly inside CallExpression nodes.
2014-04-25 21:53:30 -07:00
Jeff Williams
51cc943183 delint 2014-04-19 17:21:37 -07:00
Jeff Williams
6c2d09120e Merge branch 'master' of github.com:shakefu/jsdoc into shakefu-master 2014-04-19 17:20:20 -07:00
Jeff Williams
073d7e83e3 enable ESLint space-infix-ops rule (and associated cleanup) 2014-04-19 11:04:53 -07:00
Jeff Williams
68a3be8937 enable ESLint eqeqeq rule (and associated cleanup) 2014-04-19 10:46:19 -07:00
Jeff Williams
db7e65deb1 enable ESLint quotes rule (and associated cleanup) 2014-04-19 10:44:07 -07:00
Jeff Williams
bce238bb51 replace JSHint with ESLint (and associated cleanup) 2014-04-19 10:38:02 -07:00
Jeff Williams
254dda50b1 show more info for Closure Compiler type expressions (#618) 2014-04-18 16:46:34 -07:00
Jeff Williams
cd9d7f90a7 change 'virtual' to 'abstract' in the template helper (#618) 2014-04-18 16:46:24 -07:00
shakefu
b10de12c2d Fix markup so tests pass. 2014-04-15 16:42:44 -07:00
shakefu
810ab1d58f Allow prettify to work on inline markdown code samples. 2014-04-15 16:31:44 -07:00
Jeff Williams
3d1c36a325 keep all type info for return and type tags (#618)
For consistency with method parameters, this change extends our unfortunate practice of adding type properties to the parent of the `type` object, rather than the object itself.
2014-04-15 09:26:19 -07:00