16 Commits

Author SHA1 Message Date
Tom MacWright
d884fc725e Support deprecated tag 2017-01-29 18:54:44 -05:00
Tom MacWright
8cc34b661f fix(scopes): Support inner scope (#665)
* fix(scopes): Support inner scope

The purpose and usage of inner is still unclear, unfortunately, so this is an interim fix at best.

Fixes https://github.com/documentationjs/documentation/issues/652

* Improve comment typedef while we're at it
2017-01-29 18:35:19 -05:00
Tom MacWright
631c6925d4 feat(core): Switch to Promises everywhere. Adopt Node v4 ES6 (#648)
* feat(core): Switch to Promises everywhere. Adopt Node v4 ES6

Big changes:

* Uses template strings where appropriate
* Config and argument parsing is unified and there is no such thing
  as formatterOptions anymore. All user-passed options go through
  mergeConfig.
* The node API surface changed (again): `buildSync` is removed,
  building operations return Promises.
* Now using Flow for internal type annotations.

More changes:

* Remove buildSync command
* feat(inference): Partially implement object shorthand support
* Refs #649
* Use Flow annotations to  enforce types
* Keep flow but switch to comment syntax
* Clarify types
* More flow improvements
* Turn server into class
* LinkerStack becomes class too
* Fix comment description type
* Run flow on lint
* Many more flow fixes
* More intense flow refactoring
* Simplify inference steps
* Update inference tests, flow errors down to 1
* Continue refining types
* Fix more flow issues
* Use 'use strict' everywhere
* Make 'ast' property configurable
* Fix many tests
* Fix more tests
* Fix more tests
* Fix augments
* Test Markdown meta support
* Improve test coverage
* Switch back from for of to for for speed
2017-01-27 16:14:19 -05:00
Reinier Battenberg
ffc5c0f676 Fix anchor for not toc targets (#653)
Clicking on toc items generated from the documentation.yaml file didnt work. The target id was not properly slugged. Always slug your target. Very important.
2017-01-11 20:41:59 -08:00
Tom MacWright
8b04029138 feat(output): Display type information for typedefs in Markdown and HTML
This is a follow-up commit because I didn't format the original commit message properly and didn't

want to ammend master.
2016-11-25 18:35:25 -05:00
Tom MacWright
f9ddb9cd29 Output typedef content in Markdown and HTML. Fixes #359 (#619) 2016-11-25 18:31:21 -05:00
Tom MacWright
2ac4d04a8d Format optional types with ? instead of [] (#538)
* Format optional types with ? instead of []

Fixes #509

* ? as postfix not prefix

* Update test fixtures
2016-11-18 09:48:25 -05:00
Chad McElligott
7c7d56c3bf Fix ReferenceError in default theme (#576)
Closes #559.
2016-10-26 11:08:30 -04:00
Michaël Zasso
9c0adba916 Show GitHub link for nested elements in default theme (#562) 2016-10-12 08:10:39 -07:00
Tom MacWright
df8efa4d3d Update dependencies (#560)
* also deprecated --private option in favor of --access
2016-10-10 17:16:31 -04:00
Fernando Montoya
12b5451d98 Show chevron icon by default on methods name (#478) 2016-07-18 21:51:35 -04:00
Tom MacWright
f00c7bd153 Robertleeplummerjr master (#476)
* Expose imports between templates

Exposes `renderSectionList`, and `renderSection` & `renderNote` for consistency. Fixes #462

* Fixes #440

Resolve typo

* Resolve variable name conflict

* Change formatters to master
2016-07-16 20:10:15 -04:00
Fernando Montoya
2f59200378 Fix methods description visibility when clicked on its name (#472)
* Fix methods description visibility when clicked on its name

* Updated test fixtures
2016-07-13 18:15:49 -04:00
Tom MacWright
8287ab0539 Fix names of methods for generated documentation 2016-06-17 16:18:07 -04:00
Oscar Dub
c04ea4f818 Fix ToC filter in default theme. (#457)
* Fix filter functionality.

* Add missing semicolon.

* Update tests.

* Replace whitespace to appease tests.

* Tweak whitespace.

* Tweak whitespace.
2016-06-12 17:08:51 -04:00
Tom MacWright
3f08c19533 Move documentation-theme-utils into core
Also:

* Fixes many issues in the default theme
* Moves the default theme from default-theme to default_theme
* Creates a new, robust linker infrastructure that will support
  bare links
* Replaces slugg with github-slugger
* Outputs unknown types as Any. Fixes #451
2016-06-08 12:40:05 -04:00