143 Commits

Author SHA1 Message Date
Jeff Williams
46959b53a1 use Java's File/URI classes to convert between paths and URIs (#203) 2012-09-29 21:07:58 -07:00
Jeff Williams
d2ffcb9563 don't blow up on windows when we require() publish.js (#200) 2012-09-27 08:32:40 -07:00
Jeff Williams
ec47356ee6 make templates work from relative and absolute paths (#196, #197, #198) 2012-09-23 21:06:36 -07:00
Jeff Williams
48cd77e77c remove unused variable 2012-09-20 16:00:55 -07:00
Michael Mathews
20f8709463 Fix for property tag being malformed. 2012-09-20 01:21:13 +01:00
Jeff Williams
3463a472a6 add FunctionNode reference to parser 2012-09-18 22:31:39 -07:00
Jeff Williams
4e0af2967a refactor default template and templateHelper.js (#186) 2012-09-17 21:50:26 -07:00
Jeff Williams
f1a104eb06 add helper function for debugging parse events 2012-09-16 11:37:56 -07:00
Bob Kerns
dc2ec62e70 Use the java facilities to handle path manipulations portably.
This was causing it to mis-calculate the paths, and end up losing the
output directory entirely, and overwrite the template static files
with themselves, resulting in truncation to zero-length. Of course,
they were also missing in the output.

It was expecting to be able to split paths on
System.getProperty("path.separator"), but that describes how to put a
path together, not how to take one apart, which is more complicated.

In particular, in windows, / is as valid a separator as \ in all but a
few UI contexts.

And since we need to pass / in paths that may get turned into URI's,
it's important to handle this correctly.

Java already provides a File facility to handle these sorts of operations.
This patch makes use of java.io.File to:

1) Find the parent of a File for dirname.
2) Find the name of a File for basename.

It also now makes use of substring for removing the ext for basename,
rather than Array.prototype.slice + join(""). I'm not sure what that
was all about...  It does have the effect of ensuring it's a Javascript
String, but calling String() has the same benefit and is much more clear.

You can put that back if there was a reason for it, but it looks just
confused to me.
2012-09-11 22:57:50 -07:00
Jeff Williams
735bbd9182 make the tests pass again. note to self: run tests, THEN commit… 2012-09-09 21:15:58 -07:00
Jeff Williams
c8ce159342 use 'defaultvalue' property, not 'default', to hold the default value (closes #180) 2012-09-09 21:12:35 -07:00
Jeff Williams
e9a9dc988e if a child overrides an ancestor member, don't document the ancestor member (closes #158) 2012-09-09 20:06:49 -07:00
Jeff Williams
d6fedc82aa put the optional/nullable/variable/default properties in the right place 2012-09-09 07:58:27 -07:00
Jeff Williams
8622efd2ba Merge remote-tracking branch 'upstream/master' into type-refactor 2012-09-09 07:41:41 -07:00
Allan Jardine
358dceac2c Fix jsdoc issue #172: Remove second call to unwrap. 2012-09-03 10:23:55 +01:00
Jeff Williams
75071e9875 allow @augments to point at an undocumented dependency 2012-08-19 19:14:54 -07:00
Jeff Williams
d091675cfa make 'fs' and 'path' modules more consistent with Node.js 2012-08-19 15:25:02 -07:00
Jeff Williams
c643a6a1b9 Merge branch 'master' into type-refactor 2012-08-18 09:03:55 -07:00
Jeff Williams
33a41878b0 support lends tags in multiline doclets (fixed by @kpozin) 2012-08-18 07:58:01 -07:00
Jeff Williams
d04ed34612 in lenient mode, suppress as many exceptions as possible, logging errors to the console. closes #159. 2012-08-18 07:34:37 -07:00
Jeff Williams
39cb076e1a Merge remote-tracking branch 'upstream/master' into type-refactor 2012-08-17 14:21:01 -07:00
Jeff Williams
45b24cc04c refactor type parsing; add tests 2012-07-15 15:40:40 -07:00
Konstantin Pozin
cf1e65e162 Added doclet parsing for object literal getters and setters (#150) 2012-07-11 09:30:18 -04:00
Konstantin Pozin
73ed12733d Added doclet parsing for object literal getters and setters (#100) 2012-07-11 09:26:50 -04:00
Konstantin Pozin
9196f730de Added doclet parsing for object literal getters and setters (#100) 2012-07-11 09:20:04 -04:00
Jeff Williams
40871349be disable JSHint's "sub" relaxing option 2012-07-10 06:56:35 -07:00
Jeff Williams
0dcb756ede disable JSHint's "smarttabs" relaxing option
and completely detab all files that have mixed spaces/tabs
2012-07-10 06:54:26 -07:00
Jeff Williams
ff62a9099d disable JSHint's "shadow" relaxing option 2012-07-10 06:43:19 -07:00
Jeff Williams
6c5ad30c79 disable JSHint's "regexdash" relaxing option 2012-07-10 06:09:11 -07:00
Jeff Williams
64c9565e58 disable JSHint's "expr" relaxing option 2012-07-08 21:39:07 -07:00
Jeff Williams
f09b5f402f disable JSHint's "boss" relaxing option 2012-07-08 21:34:00 -07:00
Jeff Williams
51937112f4 Merge branch 'master' into jshint-clean-v2 2012-07-08 21:21:08 -07:00
Michael Mathews
fdf37fe137 Merge branch 'master' of github.com:jsdoc3/jsdoc 2012-07-08 01:12:12 +01:00
Michael Mathews
22e4812275 Allow externally documented objects to be extended, as if they were classes. Addresses Issue #145 2012-07-08 01:10:50 +01:00
Michael Mathews
51e1a785f8 Rhino likes the filepaths (all args really) to be url encoded, which is an issue if spaces appear in filepaths. This makes JSDoc cooperate better with that rule. 2012-07-08 01:07:49 +01:00
Jeff Williams
c43c183aaa disable JSHint's "asi" relaxing option 2012-07-06 07:40:24 -07:00
Jeff Williams
4524af7a09 enable JSHint's "latedef" test 2012-07-06 07:22:00 -07:00
Michael Mathews
4ead9aa4f9 Merge pull request #140 from hegemonic/ce287745f15f420ec31006e6435e4b4505bca0ee
Make JSDoc JSHint-clean (part 2)
2012-07-05 13:00:50 -07:00
Jeff Williams
0fd9a3fee1 replace broken --strict option with working --lenient option
also fixes the test so that console.log actually works after it runs.
2012-07-05 00:00:03 -07:00
Jeff Williams
ce287745f1 enable JSDoc's "trailing" test 2012-07-04 16:27:06 -07:00
Jeff Williams
1951ea3821 enable JSHint's "undef" test 2012-07-04 16:22:08 -07:00
Michael Mathews
ff78852907 Resolve merge conflict. 2012-07-05 00:21:54 +01:00
Jeff Williams
c60f68286f enable JSHint's "newcap" test 2012-07-04 16:05:08 -07:00
Jeff Williams
dabb0b4410 enable JSHint's "immed" test 2012-07-04 16:01:55 -07:00
Jeff Williams
769a71298e enable JSHint's "forin" test 2012-07-04 15:59:33 -07:00
Michael Mathews
901d17baa3 Small tweaks required to get ready for upgrade to rhino 1.7r4. 2012-07-04 23:53:19 +01:00
Jeff Williams
324af73dcf enable JSHint's "curly" test 2012-07-04 15:19:31 -07:00
Jeff Williams
40898c19a1 enable JSHint's "bitwise" test 2012-07-04 15:06:11 -07:00
Jeff Williams
77f505f2a1 don't use destructuring assignment
this fixes a JSHint error that cannot be suppressed.
2012-07-04 14:34:46 -07:00
Jeff Williams
f7aacfd80c escape - in regexp
this fixes a JSHint error that cannot be suppressed.
2012-07-04 08:14:17 -07:00