179 Commits

Author SHA1 Message Date
Tom MacWright
4dab786a39 Use explicit --access=public. Fixes #213 2016-05-20 16:49:16 -04:00
Tom MacWright
bb41619c73 Restore default values. Fix sort test 2016-05-05 10:00:57 -04:00
Tom MacWright
3da1ff6dd0 Source-sorting by default (#410)
* Source-sorting by default

Many changes

* Uses a new version of module-deps that exposes a sort key
  we use to sort documentation.
* Adds inference for methods in objects
* Groups events into a separate comment property

* Add jsdoc property. Refs https://github.com/documentationjs/documentation/pull/388#issuecomment-215791547

* Namespaces and paths

* More powerful paths: paths now include name, kind, and scope
* comments now include a 'namespace' property with a formatted namespace

* Fix tests

* Re-ignore fonts

* Nix sourceKey from output

* Pin dependency versions

* Fix module-deps-sortable ref

* Update tests for right deps
2016-04-29 18:09:52 -04:00
Tom MacWright
82388941ef Babel nodes are now frozen, lol, 😢 2016-04-26 13:32:46 -04:00
Tom MacWright
7519a5afef Sort documentation in code order. 2016-04-26 13:11:04 -04:00
John Firebaugh
ade4f3499b More correct parsing for kind shorthand (@class, @constant, etc)
* Set the `kind` property of the comment, not a property named by the kind.
* Set the `type` property as appropriate for these shorthands.
* Parse @callback as shorthand for @typedef {Function}
2016-03-29 13:21:47 -07:00
John Firebaugh
08d6dc21bd Replace markdown strings with parsed ASTs
This eliminates the need for formatInlineTags and jsdoc-inline-lex, and simplifies the implementation of HTML themes.
2016-03-28 13:19:30 -07:00
Tom MacWright
72708a0b03 Fix export without declaration. Fixes #393 2016-03-25 13:56:16 -04:00
Tom MacWright
5b3a9d30dc Dependency update (except for remote-origin-url which breaks when you update, update changelog 2016-03-19 17:31:07 -04:00
Tom MacWright
fe2c5af61f Add test confirming fix for #340 2016-03-19 16:32:43 -04:00
Tom MacWright
1a1b80aca2 Add support for throws tag to markdown.
Fixes #360
2016-03-19 16:20:30 -04:00
Tom MacWright
67f8d9ead9 Fix overeager JS filtering in polyglot mode.
Fixes #363
2016-03-19 16:03:37 -04:00
Tom MacWright
f8300277e2 Support js, jsx and es6 extensions by default 2016-03-16 17:35:47 -04:00
John Firebaugh
49a1cd9ff6 Clean up @example parsing and expand tests - back to 100% coverage 2016-03-14 17:33:24 -07:00
John Firebaugh
c0efef36ae Combine flatten and normalize into a single step; alphabetize 2016-03-14 16:52:42 -07:00
John Firebaugh
5458d0e57d Fix lint line numbers (fixes #377) 2016-03-13 12:43:28 -07:00
Tom MacWright
314cc01c6f Infer getters as properties, not functions 2016-02-14 21:25:07 -05:00
Tom MacWright
54e1f5ff7b Testcase coverage of import *, fixes #333. Also coverage of example caption 2016-02-14 18:49:24 -05:00
Tom MacWright
b465902fa2 Add support for example captions
Fixes #110
2016-02-14 18:41:36 -05:00
Tom MacWright
50a6e55642 Consolidate test fixtures for faster test runs 2016-01-24 11:53:27 -05:00
Tom MacWright
2198432d6d Update bin test, fixtures 2016-01-24 11:32:26 -05:00
Anton Lavrenov
9356ac5d26 empty example test 2016-01-19 10:38:42 +08:00
Tom MacWright
6b905aefb1 Update theme-default 2015-12-14 10:39:56 -05:00
Anand Thakker
3ea2944ebc Add readme command and tests 2015-12-13 15:33:35 -05:00
Tom MacWright
95d8d8a1ca Update for default output update 2015-12-10 18:02:59 -05:00
Tom MacWright
5ef597b2ee Combine default parameters into types. Fixes #290 2015-12-10 17:45:59 -05:00
Tom MacWright
d95026ea8b Since #300 fixed #291, cover it with tests. Fixes #291 2015-12-10 17:00:12 -05:00
Tom MacWright
6f929642b4 Remove Markdown theme tests. Fixes #302 2015-12-10 16:20:16 -05:00
Tom MacWright
4b252ebf00 Avoid traversal where possible. Fixes #293 2015-12-10 16:11:44 -05:00
Tom MacWright
d265cb3cec Bump theme to fix nested member examples. Fixes #267 2015-12-08 09:47:08 -05:00
Tom MacWright
71a52e5ed1 Support membership inference in class expressions. Fixes #284 2015-12-07 18:37:26 -05:00
Tom MacWright
bb9fc5f8e5 Infer augments tag from extends keyword. Fixes #195 2015-12-07 18:17:05 -05:00
Tom MacWright
931f48eefc Implement five tags:
- version
- author
- license
- copyright
- since

These are flattened and output in Markdown. HTML output will
require an update in the theme module
2015-12-07 17:53:00 -05:00
John Firebaugh
0a1de4f343 Theme API 2.0 2015-12-07 16:09:24 -05:00
Tom MacWright
b756c0ce58 Support alias tag. Refs #9 2015-12-07 13:04:01 -05:00
Tom MacWright
73d6118e1c Implement all doctrine-emitted types. Fixes #249 2015-12-07 12:44:15 -05:00
Tom MacWright
a6f0435bfe Fix coverage of array destructuring 2015-12-06 19:57:14 -05:00
Tom MacWright
b3ac22430b Test and document behavior around documenting destructured params. 2015-12-06 19:47:36 -05:00
Tom MacWright
1d1aba82ab Improve parameter inference for destructuring and defaults
Fixes #271
2015-12-06 19:29:04 -05:00
John Firebaugh
1a711644f5 Fix test 2015-12-06 10:56:08 -08:00
Tom MacWright
d069b6a40b Support new node versions, including v4 and v5
* Compare strings as lowercase, to permit for v4+ compatibility
* Fix bad reference to loc.name
* Update README badge and fixture
* Remove brfs dependency
* Remove traverse
* Remove browser transform support
2015-12-01 15:34:50 -05:00
Tom MacWright
d470b54213 Correctly interpret name tag. Fixes #205 2015-11-28 11:50:29 -05:00
Iilei
ebcee3ae07 Pass though hljs options: Enable hljs highlightAuto and languages
By providing a hljs object within the configuration, `@example` tags in
a variety of languages are parsed properly.
2015-11-25 17:31:58 +01:00
Tom MacWright
cd0e8143db Simplify extension check, add coverage 2015-11-24 13:00:32 -05:00
Tom MacWright
4208293565 Fix test fixture 2015-11-24 11:41:42 -05:00
Tom MacWright
fe82dde727 Fix HTML validity with default template 2015-11-24 11:35:17 -05:00
Tom MacWright
50aaf9d35b --watch and --serve flags
These new flags replace the functionality of
dev-documentation
2015-11-24 11:21:11 -05:00
John Firebaugh
4416acb99f Fix tests (fixes #254) 2015-11-22 12:08:02 -08:00
Tom MacWright
e4cb2ffe67 Force eslint bump, confirm its included bugfix. Fixes #204 2015-11-17 11:21:48 -05:00
Tom MacWright
432151bce8 Fix nullable type support. Fixes #245 2015-11-17 11:12:42 -05:00