54 Commits

Author SHA1 Message Date
Tom MacWright
c8ad087308 Refactor CLI parsing 2016-03-19 12:22:03 -04:00
Tom MacWright
5a5ebaf763 Unkink option parsing options 2016-03-18 17:11:11 -04:00
Anand Thakker
34eda223b2 Fix command help 2015-12-13 13:45:17 -05:00
Tom MacWright
8a6cac82d1 Add --access flag. Fixes #262 2015-12-12 17:09:43 -05:00
Anand Thakker
ea25fadea6 CLI fail gracefully on unknown command 2015-12-09 07:04:23 -05:00
Anand Thakker
0022934d90 Fix lint errors 2015-12-06 18:16:41 -05:00
Anand Thakker
5c8459d957 Reorganize argument parsing
Arg parsing is now split into common options (in bin/documentation.js)
and command-specific options (in each command module, exported as
parseArgs).

This includes moving `--private` and `--github` to the common args
instead of having them under the build/serve commands.  Reason: these
two args are options understood by the main module, as opposed to args
like `--format` which are only understood by the actual output piece
in build/serve.

Also removes `args.js`, which had previously exported the argument
parsing for use in situations like documentation-readme.  The need
for this, I think, is largely made irrelevant in the face of slightly
generalizing the CLI to use commands.
2015-12-06 18:13:17 -05:00
Anand Thakker
795d1e3794 Refactor commands to separate modules 2015-12-06 18:12:19 -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
844f4b73bb Use vfile-reporter to format error output 2015-10-25 20:39:28 -04:00
John Firebaugh
e67b5d2f55 Use walk where appropriate 2015-10-13 16:15:44 -07:00
Tom MacWright
b3c990db1f Simpler and stricter eslint 2015-10-06 20:31:50 -04:00
Tom MacWright
d7f06fa5c4 Store commentLineNumber on errors. Fixes #159
cc @jfirebaugh for the review
2015-10-06 16:23:22 -04:00
Tom MacWright
0aa42d294f Enable and fix no-unused-vars rule 2015-10-06 15:28:32 -04:00
Tom MacWright
bd0d0705f6 💯 2015-10-04 12:08:49 -04:00
Anand Thakker
ea4116fed1 Pull additional parsing & validation into args.js 2015-10-04 10:26:57 -04:00
Tom MacWright
a848202dcf Simplify error parsing by attaching errors to comments 2015-10-01 20:41:50 -04:00
Tom MacWright
b4764e15de Use options 2015-09-30 14:02:30 -04:00
Tom MacWright
42babf7c03 Refactor arg parser out of binary 2015-09-30 13:55:47 -04:00
Tom MacWright
c24a9b88a4 Enable jsdoc rule and enforce it.
Also:

* Moves reduction out of parsers so that they don't have awkward
  function signatures
2015-09-28 20:36:07 -04:00
Tom MacWright
717b0fde18 Simplify lint API 2015-09-27 18:00:12 -04:00
Tom MacWright
de0e3cc662 Make github search sync 2015-09-27 17:54:36 -04:00
Tom MacWright
a383a045e2 Fix tests 2015-09-27 12:46:09 -04:00
Tom MacWright
92a6261f2a Deep in the weeds of refactoring hierarchies 2015-07-25 16:10:16 -04:00
Tom MacWright
183ab7547e Merge branch 'master' into rclark-sorting 2015-07-24 15:51:48 -04:00
Tom MacWright
3d88355100 Better error when templates aren't found. Fixes #124 2015-07-21 17:09:10 -04:00
Tom MacWright
ba5c0d6823 Expose theme option to cli as -t or --theme 2015-07-10 15:50:16 -04:00
Anand Thakker
29020035cb Expose --shallow option in cli. 2015-07-01 14:02:05 -04:00
Ryan Clark
6731c8b516 user-defined sorting via config file 2015-06-19 16:41:52 -07:00
Tom MacWright
8883fa371b Remove docset and its sqlite dependency
Remove other dependencies only used by docset

Remove docset support from README. Fixes #61
2015-06-16 14:09:12 -04:00
Tom MacWright
d6efba442b Fix name & version without package 2015-06-05 17:41:35 -04:00
Tom MacWright
9f3bc54ce0 Add polyglot stream: sidesteps module-deps, uses get-comments 2015-05-27 11:27:21 -04:00
Tom MacWright
cc63b8d022 Support transforms. Fixes #3 2015-05-06 18:09:19 -04:00
Tom MacWright
6fc10ed9b8 Reorganize formats, refactor formats 2015-04-09 15:29:50 -07:00
Tom MacWright
bf050fb827 Graduate access and flattening to the default 2015-04-09 15:15:39 -07:00
Tom MacWright
8a57d43bd5 Improve style, add internal docs 2015-04-09 14:37:54 -07:00
Tom MacWright
63340b415a Lazy-initialize formatters 2015-04-09 11:45:16 -07:00
Tom MacWright
a8444892bd Add dash support 2015-04-08 18:44:42 -07:00
Tom MacWright
4e7df26ce7 Start building github stream.
Needs to queue requests to avoid the start-of-request flood.
2015-04-08 12:38:46 -07:00
Tom MacWright
788a8163eb Add lint stream that logs on non-standard types 2015-04-08 11:55:50 -07:00
Tom MacWright
ebab0a44c2 Planecode.
HTML Output:

* Add html->markdown helper. Replaces html stream.
* Split docs into a partial called 'second'
* Implement type formatter
* Implement naive permalinks
* Iterate documentation stylesheet
2015-04-08 19:25:46 +09:00
Tom MacWright
4e2dbe022e Add highlight stream, hljs, style 2015-03-30 23:11:59 -04:00
Tom MacWright
bcfbea26df Develop HTML output. 2015-03-30 22:43:53 -04:00
Tom MacWright
c51923d6aa process.stdout is very picky with binding 2015-03-30 18:45:33 -04: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
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