45 Commits

Author SHA1 Message Date
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
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
Jeff Williams
c60f68286f enable JSHint's "newcap" test 2012-07-04 16:05:08 -07:00
Jeff Williams
769a71298e enable JSHint's "forin" test 2012-07-04 15:59:33 -07:00
Jeff Williams
356ac2a6c4 move function declaration outside of conditional block
this fixes a JSHint error that cannot be suppressed.
2012-07-03 18:24:07 -07:00
Jeff Williams
da39bdd302 rename Object.prototype.hasOwnProperty alias to hasOwnProp
this fixes a JSHint error that cannot be suppressed.
2012-07-03 17:45:44 -07:00
Jeff Williams
22e899fa9d change __dirname to env.dirname
this fixes a JSHint error that cannot be suppressed.
2012-07-03 17:37:17 -07:00
Michael Mathews
6d914ee30e Added support for including README.md content on the output index page. Closes #128 2012-06-21 22:46:32 +01:00
Michael Mathews
c29e4e3309 Add support for default configuration values. Closes Issue #129. References Issue #126. 2012-06-21 21:09:40 +01:00
Michael Mathews
23d03835f7 Fixed confusing readmes that implied the entire configuration JSON should be replaced by a few entries. Protected against exception thrown when some config entries were missing. Closes Issue #126 2012-06-15 07:59:21 +01:00
Michael Mathews
ef37251464 Fix for exception thrown when documenting symbols with special names like "hasOwnProperty". Closes #125. 2012-06-07 22:36:22 +01:00
Michael Mathews
1db8f8d6fe Fixed reference to env.opts, should be env.conf. 2012-06-01 00:09:01 +01:00
Michael Mathews
1f6f4a7ee7 Added support for "include" and "exclude" of source files in the project configuration. Closes issue #56. 2012-06-01 00:00:02 +01:00
Michael Mathews
95bb744fee Added tests for include.resolve function. Covers feature added in pull #122 2012-05-30 21:59:28 +01:00
Théodore Biadala
452eaf4196 Allow absolute template path with -t option 2012-05-30 11:06:24 +02:00
Jannon
a6f68d838c Plugin tests
Tests for the plugin framework as well as for the plugins shipping with JSDoc
2012-05-06 00:43:22 -07:00
Jannon
cf023b0461 Use non-reserved word for name of arguments variable
The jsdoc.js file is processed twice for some reason when executing from the jsdoc3 ant task (github.com/jannon/jsdoc3-ant-task), but the arguments variable remains the same so the second pass is missing the "dirname option that was spliced out the first time.  Trouble ensues.

Although the root cause of that is unknown, there's no reason not to just be safe and name the variable something else.  Now, during the second pass, the arguments retains it's original value.
2012-03-16 02:51:14 -07:00
Jannon
3d1d9d7321 Use conf.json.EXAMPLE and .gitignore conf.json to changes don't affect repo status
To make it no impact, if JSDoc can't find a conf.json, it looks for conf.json.EXAMPLE and copies that over.
2012-03-16 02:49:17 -07:00
Jannon Frank
55d2b2c8d3 Merge pull request #80 from tomalecpub/master
Allow to define runtime "_" in configuration file
2012-03-15 22:31:12 -07:00
Jannon Frank
282da00517 Merge pull request #86 from jannon/FilesForAll
Always making source file list available to templates
2012-03-15 17:48:46 -07:00
Jannon
e35ef82d99 A different take on a more flexible parser/plugin architecture
Plugins can now do any or all of three things:
- Add tags to the dictionary by exporting a 'defineTags' function
- Register event handlers like before, but exporting them in a 'handlers' object.
- Add a node visitor to the parser.  As the parser visits nodes, it will give all attached plugin visitors an opportunity to process the node as well.  This gives plugin creators an opportunity to do things with symbols that the standard parser doesn't handle (like class factory function calls)

This includes a new Rhino jar just for JSDoc3!  Well, it just has a small change that causes Rhino's parser to attach jsdoc comments to function call nodes when present.
2012-02-24 05:53:03 -08:00
Jannon
9ec3d61084 Revert "Refactored parsing to allow for easily extending/overriding parseing behavior"
This reverts commit f52302e71d5d9754f5ce1d193b0ba4cda133d566.
2012-02-23 17:18:37 -08:00
Jannon
7b12033b5a Always making source file list available to templates
Previously, the list of source files was only added to a package doclet and passed through to the templates if there was a package.json specified.  Now, that doclet is always added.  If there is no package.json, then only the 'files' property of the doclet will be defined.
2012-02-22 14:27:06 -08:00
Tomek Wytrębowicz
96fd06860b Runtime '_' is concatenated with conf one. 2012-01-26 21:59:08 +01:00
Jannon
f52302e71d Refactored parsing to allow for easily extending/overriding parseing behavior 2012-01-25 14:17:22 -08:00
Tomek Wytrębowicz
9311f138c0 Allow to use runtime "_" in configuration file 2012-01-05 18:50:15 +01:00
Rafał Wrzeszcz
8105cef501 Tutorials parsing. 2011-12-15 12:06:49 +01:00
Rafał Wrzeszcz
13526499cf Tutorials base structure. 2011-12-15 10:02:05 +01:00
Michael Mathews
fae8fd55ae Merge pull request #67 from rafalwrzeszcz/feature-conf-opts
Allow to define runtime options in configuration file.
2011-12-11 02:43:51 -08:00
Michael Mathews
b1d7cc3c1c Merge pull request #68 from rafalwrzeszcz/feature-templates-path
Made template parameter an entire path.
2011-12-11 02:37:48 -08:00
Rafał Wrzeszcz
563dde0ae9 Fixed query.js inclusion path. 2011-12-11 10:07:07 +01:00
Rafał Wrzeszcz
c48a69229a Made template parameter an entire path. 2011-12-10 23:24:30 +01:00
Rafał Wrzeszcz
bcc5d5116e Moved options merging before query parameter parsing. 2011-12-10 23:10:08 +01:00
Rafał Wrzeszcz
03d9a9f16d Allow to define runtime options in configuration file. 2011-12-10 23:02:47 +01:00
Michael Mathews
b25a6acce3 Fix for issue that caused plugins to be unable to be required when using a relative path to jsdoc. (hattip kived) See #37. 2011-10-14 21:05:48 +01:00
Michael Mathews
d8503ed9ab Merge pull request #35 from tschaub/augment
Add inherited members based on @augments or @extends
2011-09-23 13:42:46 -07:00
tschaub
71393844ad Use Rhino's require implementation. 2011-09-21 17:37:32 -06:00
Tim Schaub
632c788399 Add inherited members. 2011-09-18 01:59:38 -06:00
Michael Mathews
fc94a23f8c Added support for @todo. 2011-08-20 11:57:33 +01:00
Michael Mathews
0c64dc6a1f Improvements to plugin API. Added initial README for authoring plugins. 2011-08-15 19:39:48 +01:00
Michael Mathews
c6bae386ba Added @var @prop as synonyms for @property. Added configuration for jsVersion, to control the version of JavaScript that is parsable by rhino. 2011-08-14 12:35:00 +01:00
Michael Mathews
8799668ccf Added more nodejs compatible version of require(). 2011-06-17 21:06:37 +01:00
Michael Mathews
3318a51d2a Adding missing rhino dependency. 2011-05-11 14:11:34 +01:00