60 Commits

Author SHA1 Message Date
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
70fbdedf0c Babel 6 upgrade, round 2 2016-02-14 13:15:54 -05:00
Tom MacWright
4e0029892a Optimize tests 2015-12-10 16:29:55 -05:00
Tom MacWright
6f929642b4 Remove Markdown theme tests. Fixes #302 2015-12-10 16:20:16 -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
3fc2f11e76 Use path.basename(file) consistently 2015-12-06 10:56:23 -08: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
138af0e5be Remove duplicate tests. Fixes #255 2015-11-24 13:09:54 -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
Tom MacWright
eed48f7840 Support github links in markdown output 2015-11-09 12:04:52 -05:00
Tom MacWright
8886ac6157 Switch from babylon to babel-core. Fixes #201 2015-10-30 12:37:56 -04:00
Tom MacWright
cefe68908b Infer destructured params. Fixes #170
Waiting on an answer in https://github.com/babel/babel/issues/2543
because tests will currently fail.
2015-10-18 18:52:17 -04:00
Tom MacWright
c38b91b4e3 Reparse transformed source 2015-10-05 14:19:48 -04:00
Tom MacWright
7b156d8769 Babel! 🙌
cc @jfirebaugh for the review

This was easier than expected.
2015-10-04 21:55:54 -04:00
Tom MacWright
bd0d0705f6 💯 2015-10-04 12:08:49 -04:00
Tom MacWright
01b34dee06 Add markdown_ast raw AST output mode 2015-10-03 16:57:37 -04:00
Tom MacWright
f0954859f6 mdast-powered Markdown output 2015-10-03 16:57:37 -04:00
Tom MacWright
74b9bd4e0e Fix tests for new error strategy 2015-10-01 20:41:50 -04:00
Tom MacWright
2e8ea165d9 Fix custom markdown formatter tests 2015-09-28 21:09:20 -04:00
Tom MacWright
de0e3cc662 Make github search sync 2015-09-27 17:54:36 -04:00
Tom MacWright
abf5100095 Rewrite more tests 2015-09-27 10:36:30 -04:00
Tom MacWright
8979897bca Remove dead code 2015-09-26 16:12:05 -04:00
Tom MacWright
1f8115c7b6 Simplify tests 2015-09-26 13:23:58 -04:00
Tom MacWright
4e33b77ce0 Fix error handling, remove json formatter 2015-09-26 12:56:06 -04:00
Tom MacWright
b3e71f0cee Port nestParams, sort, filterAccess 2015-09-26 12:46:07 -04:00
Tom MacWright
56bdd39066 Sketch out a less streamy documentationjs
cc @jfirebaugh - I think you mentioned earlier that streams don't
make sense for some of the documentationjs internals. I agree - I think
something like this direction would let us cut a lot of complexity.
Thoughts?
2015-09-26 12:34:55 -04:00
Tom MacWright
86eccf6fe5 Switch from prova/istanbul/coveralls to 'just tap'
Improves test coverage. Refs #102
2015-07-24 13:03:05 -04:00
Tom MacWright
b564796262 Enable curly rule 2015-07-10 13:11:25 -04:00
Tom MacWright
0a262c6f6e Begin polyglot branch: switch to splicer for main chain 2015-05-27 11:02:37 -04:00
Anand Thakker
bea63f7f40 Remove "only" in test. 2015-05-01 20:02:58 -04:00
Anand Thakker
2037f82a43 Include package.json "main" in test. 2015-05-01 20:02:58 -04:00
Anand Thakker
dbcbc02c68 Add test for external option 2015-05-01 20:02:57 -04:00
Tom MacWright
c166fdd891 Improve test coverage 2015-04-17 19:19:03 -04:00
Tom MacWright
84f09f9953 More intense kind inference
Can now infer

* function
* constant
* class

Remove unused var and inapplicable comment

Use strict, use a string to run functions not legal in strict mode

Make output fancier and better.

Use difflet, channel rage

Normalize html / json output

Omit json from test output

Fixup output
2015-04-13 17:57:54 -07:00
Tom MacWright
0d3277083d Update tests for new all-in html 2015-04-09 15:56:30 -07:00
Tom MacWright
bf050fb827 Graduate access and flattening to the default 2015-04-09 15:15:39 -07:00
Tom MacWright
812288dff3 Fix tests 2015-04-08 11:01:06 -07:00
Tom MacWright
7503d82a82 Work on HTML mode: exposes a basic implementation 2015-03-30 18:29:07 -04:00
Tom MacWright
3d8e3f547e Add and test filterAccess stream, integrate into binary. Fixes #38 2015-03-30 13:24:28 -04:00
Tom MacWright
1966d60391 Test and expose via bin custom markdown templates. 2015-03-30 11:20:10 -04:00
Tom MacWright
329f3bb4b8 Reorganize output streams into dir, add json stream 2015-03-30 11:09:48 -04:00
Tom MacWright
c71d07c484 Bubble errors up to main stream, thx @rclark 2015-03-27 18:41:02 -04:00
Tom MacWright
668f839d21 Begin error push. I need to understand .emit('error')
better to finish this.
2015-03-27 18:03:45 -04:00
John Firebaugh
66056d719b Add flatten stream, a more opinionated pivot
Fixes #30
2015-03-26 17:45:28 -07:00
Tom MacWright
ff1f44a04d Add Markdown output mode 2015-03-23 12:28:46 -04:00
John Firebaugh
c1d8695471 tape ⇢ prova
Key feature: filtering test cases (e.g node test.js -g foobar)
2015-03-13 14:13:00 -07:00
Tom MacWright
b50dfe860e Support multiple entry points. Fixes #6 2015-03-13 11:38:33 -04:00
Tom MacWright
5f7d0c568e Rename loc to context. 2015-03-13 11:13:28 -04:00
John Firebaugh
e77d233559 Attach location information to each output 2015-03-11 14:50:46 -07:00
John Firebaugh
5de328f59c Add fixture outputs to tests (fixes #13) 2015-03-11 12:48:05 -07:00