364 Commits

Author SHA1 Message Date
Jeff Williams
fc2b4ad3d2 fix Windows path issues and static-file copying (#785)
- In the default template, look for the list of static file paths in the
config property `templates.default.staticFiles.include`. (You can still
use `paths` instead of `include`.)
- Handle path-normalization issues that prevented the default template
from copying user-specified static files on Windows.
- Normalize paths in `fs.toDir` so that callers get the correct path
separator on Windows.
2014-10-30 12:06:26 -07:00
Jeff Williams
e60fc3c717 prevent duplication when two parent classes have instance members with identical names (#613) 2014-10-25 11:05:56 -07:00
Jeff Williams
996c283733 handle symbol names with leading/trailing whitespace (#549) 2014-10-23 09:38:30 -07:00
Jeff Williams
58839223a9 strip module namespace from module and exports tag values (#786)
This change makes `/** @exports module:foo */` a synonym for `/** @exports foo */`.
2014-10-22 15:48:51 -07:00
Jeff Williams
5512af9677 update package schema, and add tests to validate package objects against the schema (#788) 2014-10-22 13:31:04 -07:00
Jeff Williams
53d2ed719b prevent cruft in Package objects (#787) 2014-10-22 12:22:22 -07:00
Jeff Williams
c81ace882e extract more information from package.json files; add tests (#710) 2014-10-20 09:34:54 -07:00
Jeff Williams
c45fdaa0c3 allow any file to be used as a package or README file (#708) 2014-10-17 12:46:52 -07:00
Jeff Williams
9e699ff8a9 omit non-enumerable properties from cloned objects (#784)
Drastically improves performance in some cases (for example, when using the `--explain`/`-X` option).
2014-10-15 16:18:19 -07:00
Jeff Williams
d28d15eb72 remove unused code 2014-10-15 15:50:25 -07:00
Jeff Williams
8003ce1498 cleanup 2014-10-14 09:30:45 -07:00
Jeff Williams
2eb3c467ee handle enums that are part of a chain of assignments (#702)
We now add the enum properties to all of the symbols in the assignment chain, rather than just the first symbol.
2014-10-12 13:47:01 -07:00
Jeff Williams
8f231c12b5 enable a test case 2014-10-12 13:32:15 -07:00
Jeff Williams
68ceb33ec3 stop adding a scope property to module doclets that include an exports tag (#782) 2014-10-11 15:09:53 -07:00
Jeff Williams
f77984df55 fix name resolution when the exports tag is used on a pointer to the module's exports object (#404) 2014-10-11 09:58:51 -07:00
Jeff Williams
1774569850 delint 2014-10-10 15:19:52 -07:00
Jeff Williams
c083ab7bd1 remove unused test; cleanup 2014-10-07 08:54:22 -07:00
Jeff Williams
413c7eb186 whitespace 2014-10-07 08:53:48 -07:00
Jeff Williams
3b865dde3f Merge remote-tracking branch 'brjs/fix-classdesc-in-modules' 2014-10-07 08:45:24 -07:00
Jeff Williams
4eb86a13a2 handle object literals whose property names must be escaped in a regexp (#775) 2014-10-05 21:35:45 -07:00
Jeff Williams
765abd9a10 cleanup 2014-10-05 21:31:24 -07:00
Jeff Williams
df7a1e0232 do not add an exception's description and type to the parent doclet; avoid circular refs when cloning an object (#772) 2014-10-05 21:17:25 -07:00
Jeff Williams
908e5e6076 do not unescape entities in Markdown tutorials (#743) 2014-09-22 15:42:10 -07:00
Jeff Williams
ebb6b2284f cleanup 2014-09-22 15:35:46 -07:00
Jeff Williams
73998951b1 fix exports tag when the module object is passed to an AMD function (#642)
- Do not mark the doclet for the module object as undocumented.
- Track variables (including aliases) within the parent scope, so the members are resolved against the alias instead of the name used in the code.
2014-09-19 09:01:14 -07:00
Jeff Williams
71de4acaf0 cleanup 2014-09-19 08:49:11 -07:00
Jeff Williams
d527f3e6b0 prevent crash when a returns tag does not have a value (#751) 2014-09-05 15:30:21 -07:00
Jeff Williams
e093716ebe handle sparse arrays correctly in nodeToString (#749) 2014-09-05 15:12:57 -07:00
Jeff Williams
6328336d1d cleanup 2014-08-19 16:27:19 -07:00
Jeff Williams
81d74b9b92 remove scope property from module doclets (#742) 2014-08-19 12:51:30 -07:00
Jeff Williams
55f40e1085 cleanup 2014-08-19 12:49:06 -07:00
Dominic Chambers
f2f8d74d22 Added failing test that should work (it works within the template) and
which otherwise explains how the class information is available for use
within module documentation pages.
2014-08-19 17:41:56 +01:00
Dominic Chambers
28cb42de33 Added missing coverage around modules that contain a default CommonJs
class being exported within the module -- this has actually shown that
the doclets produced are probably correct, and that the bug is likely to
be within the template.
2014-08-19 16:53:58 +01:00
Jeff Williams
2ed4a0320b if we can't find the scope for a virtual comment, set the doclet's scope to global (#684) 2014-08-18 17:32:21 -07:00
Jeff Williams
17fb5be064 for Closure, allow the type tag to have a description (#732) 2014-08-13 21:53:11 -07:00
Jeff Williams
180454c3a8 rename file for consistency 2014-08-13 21:45:30 -07:00
Jeff Williams
e8b692b334 allow the Closure version of the protected tag to specify a type (#731)
Also adds tests for the `protected` tag.
2014-08-13 17:04:47 -07:00
Jeff Williams
21e0dbad25 allow the Closure version of the private tag to specify a type (#730) 2014-08-13 15:32:51 -07:00
Jeff Williams
addee8ea7e split up the JSDoc and Closure Compiler tag definitions (#729)
A new `tags.dictionaries` config setting allows you to choose which definitions to enable.

If a tag is defined in more than one dictionary, JSDoc will use the definition from the first dictionary.
2014-08-13 13:39:14 -07:00
Jeff Williams
f9c593824f turn the dictionary module into an instantiable class 2014-08-12 16:21:37 -07:00
Jeff Williams
89237260c6 support virtual comments for overloaded symbols (#727) 2014-08-12 09:37:00 -07:00
Jeff Williams
2f87fb11dc improvements to interface and implements tags
- Change doclet property names
- Populate the list of property implementations in augment.js, not in the template
- Tone down the presentation of both tags in the default template
- Other related cleanup
2014-08-11 16:02:00 -07:00
Jeff Williams
7ef13bf40b prevent crash when a class claims to implement an interface but has no members 2014-08-11 16:01:59 -07:00
Jeff Williams
7c2a6d7438 cleanup 2014-08-11 16:01:59 -07:00
MinHyeong Kim
87c33e242b modify codes for generate describe interface's all properties. 2014-08-11 16:01:59 -07:00
MinHyeong Kim
c797b50c49 uncomment test code. 2014-08-11 16:01:59 -07:00
MinHyeong Kim
cc9ceb700b fix codes for patch. excepts 'implements not functions' issue. 2014-08-11 16:01:59 -07:00
MinHyeong Kim
52426cd3a7 add test codes for @interface, @implements annotations. 2014-08-11 16:01:59 -07:00
Jeff Williams
c2d3d0041b add getAncestors and getUniqueId helpers 2014-08-06 15:32:06 -07:00
Jeff Williams
1171593908 parsedType property improvements (#576)
- Make the parsedType property non-enumerable unless debug mode is enabled.
- Add a more appropriate test case.
- Remove the (incomplete) schema for parsed types.
2014-07-30 12:04:10 -07:00