Peter Bacon Darwin
d40ff0bb89
chore(doc-gen): render enum doctypes correctly
2015-08-06 23:10:35 -07:00
Peter Bacon Darwin
c4296285f3
chore(doc-gen): render enum doctypes correctly
2015-08-06 23:10:35 -07:00
Brian Ford
450d3630cc
test(router): add tests for router.d.ts
...
Closes #3282
2015-08-05 00:29:32 +00:00
Pawel Kozlowski
53788ef827
revert "chore(doc-gen): render enum doctypes correctly"
...
This reverts commit b8e82e4db3
as it was breaking build on master.
2015-08-03 11:00:47 +02:00
Peter Bacon Darwin
b8e82e4db3
chore(doc-gen): render enum doctypes correctly
2015-08-02 22:45:20 -07:00
Misko Hevery
dad9338c82
docs(type): Export Type so that we can link to it in our docs.
...
Closes #3345
2015-07-31 20:40:33 +00:00
Peter Bacon Darwin
f6da89f74f
chore(doc-gen): export interfaces over vars
...
If a symbol is declared as an interface and a var then we should export
it as an interface rather than a var.
2015-07-31 20:40:33 +00:00
Peter Bacon Darwin
cb6fc9c7cb
chore(doc-gen): fix jade whitespace errors
2015-07-30 11:29:06 +01:00
Peter Bacon Darwin
d426af741c
chore(doc-gen): trim leading blank lines from markdown content
...
Harp 0.17 does not allow blank lines to appear between filters and their
content. This change ensures that any blank lines that could appear have
been trimmed inside Nunkjucks.
Closes #3325
2015-07-28 13:48:03 -07:00
Peter Bacon Darwin
6ab2a871ce
chore(doc-gen): add `- var ...` to jade variable declarations
...
Harp 0.17 requires that jade variables are declared correctly
Closes #3325
2015-07-28 13:48:02 -07:00
Peter Bacon Darwin
81d298dc6b
chore(doc-gen): fix when decorator has no argument list
2015-07-28 12:45:51 +01:00
Peter Bacon Darwin
45cbc430e8
chore(doc-gen): render decorators (annotations) for exported classes
...
Closes #3167
Closes #3221
2015-07-28 11:29:56 +01:00
Misko Hevery
78fdf9a11f
fix(.d.ts): Correct new Type interface return type
...
Closes #2399
Closes #3316
2015-07-27 16:02:47 -07:00
Alex Eagle
19d8b221b4
fix(typings): test our .d.ts with --noImplicitAny
...
This matches how DefinitelyTyped tests it, so we are
one step closer to publishing the same file we generate.
See #3195
2015-07-24 11:24:44 -07:00
Peter Bacon Darwin
3c2b165de1
chore(doc-gen): add processor to check for unbalanced code fences (backticks)
...
See https://github.com/angular/angular/pull/3213/files#diff-da1eabc74e0bafaa56d2bfe4bc223b05R19
2015-07-23 09:35:03 +01:00
Peter Bacon Darwin
76f63bc6a5
chore(doc-gen/angular.io): check for not private rather is public
...
In 2e4a2a0e5a
we removed the `@public` tags but the `addJadeDataDocsProcessor`
was still relying upon them being there to identify whether a doc should
be included in the public docs.
Instead we should just check for the doc not being marked with the
`@private` tag.
Closes #3212
2015-07-23 08:55:41 +01:00
Peter Bacon Darwin
4d80ce5b4a
chore(doc-gen): add some tests for typescript-definition-package
2015-07-12 19:10:58 +01:00
Peter Bacon Darwin
09bb114a4d
chore(doc-gen): convert heritage for private constructor classes
...
When we are creating a type definition file for a class has a private constructor,
we convert it to a combination of an instance of a concrete type with no constructor and an interface that contains the other methods.
When this happens, we must also convert the class's heritage from
`implements` to `extends` since interfaces cannot implement other interfaces
or classes.
Fixes a problem with #2996
Closes #3002
2015-07-12 18:53:31 +01:00
Peter Bacon Darwin
875db11822
chore(doc-gen): update dgeni-packages to 0.10.18
...
0.10.18 has fixed the `@private` tag so this is not needed locally any more
2015-07-11 07:21:46 +01:00
Peter Bacon Darwin
2e4a2a0e5a
chore(doc-gen): remove unnecessary `@public` and `@exportedAs` tags
2015-07-11 07:21:46 +01:00
Peter Bacon Darwin
9fa7d38133
chore(doc-gen): put typescript stuff into its own package
...
This means that we can now run just the d.ts file generation by running:
```bash
gulp docs/typings
```
In addition the type definition generation was messing with the other docs tasks
so separating it also fixes problems there.
2015-07-11 07:21:45 +01:00
Peter Bacon Darwin
927454c8fa
chore(doc-gen): don't use `string` module to stripTags
...
This module writes a file called `string` containing the text `testtest`
to the file system when it initialize.
See https://github.com/arturadib/shelljs/issues/212
2015-07-11 07:21:33 +01:00
vsavkin
b54e7214f0
chore: removed angular2.api.ts
...
BREACKING CHANGE:
We export InjectMetadata instead of InjectAnnotation
2015-07-09 13:54:07 -07:00
Peter Bacon Darwin
d050ce20a9
chore(doc-gen): fixup private constructor declarations
...
Closes #2883
2015-07-08 08:06:59 +02:00
Misko Hevery
12a427e158
fix(.d.ts): correct ComponentAnnotation inheritance
...
Closes #2356
2015-07-07 20:04:13 -07:00
Misko Hevery
0052c6b120
chore: improve angular2.d.ts file
...
- support ambient and import format for .d.ts
2015-07-07 20:04:13 -07:00
Peter Bacon Darwin
0e945e465d
chore(doc-gen): stop crash in `gulp public_docs`
...
This change prevents the doc generation from crashing due to a missing module,
but perhaps we need to think of a way of being able to generate the angular.d.ts
file correctly in `gulp public_docs`, perhaps by removing the need for
angular2/angular2.api
2015-07-07 20:04:13 -07:00
Peter Bacon Darwin
72257ec87d
chore(doc-gen): include type parameters in d.ts file
...
Closes #2859
2015-07-07 20:04:07 -07:00
Peter Bacon Darwin
355ced92eb
chore(doc-gen): fix spacing in heritage clauses
2015-07-07 22:04:10 +01:00
Alex Eagle
a56d33d7ca
feat(typings): mark void methods in angular2.d.ts
...
Previously, when a return type was missing it
could have been any. But following #2746 we
require return types so remaining untyped returns
must be void.
2015-07-06 17:25:59 -07:00
Peter Bacon Darwin
ad506a7aaa
chore(doc-gen): render "call" and "new" members of interfaces correctly
...
Partially Closes #2849
2015-07-03 09:00:20 +01:00
Peter Bacon Darwin
ef3cc8e6eb
chore(doc-gen): render optional members correctly
...
Partially Closes #2849
2015-07-03 09:00:20 +01:00
Peter Bacon Darwin
561b78a5b3
chore(doc-gen): generate router typings file
...
Closes #2659
2015-07-03 08:58:36 +01:00
Alex Eagle
a90063a827
chore(typing): restore some defn's now that dgeni is fixed
...
Closes #2446
Closes #2805
2015-07-01 12:53:10 +01:00
Alex Eagle
7a4a3c850f
fix(typings): Minor issues preventing angular2.d.ts from working in TS 1.4.
...
This removes some, but not all, of the manual work needed to patch up our
.d.ts for pushing to DefinitelyTyped. Remaining manual steps are:
- some types still missing
- declaration of decorators
- remove destructuring args
See #2686 .
2015-06-25 14:13:05 -07:00
Daria Jung
24646e7eb8
feat(typings): add typing specs
...
add test in gulpfile which will compile a basic TS file with generated
angular2.d.ts to ensure generated d.ts is valid syntactic TS
Adds support for enums in .d.ts generation pipeline.
Removes renaming reexports in http module.
2015-06-23 18:22:47 -07:00
Jacob Eggers
dee0e008f5
chore(doc-gen): refactor versionInfo logic to new `git` dgeni-package
...
Closes #2444
2015-06-21 02:15:42 +01:00
Peter Bacon Darwin
b8ef20e353
chore(doc-gen): ignore `@param` tags
...
At the moment we are not parsing param tags. This commit ignores them
completely.
TODO: hook up param descriptions with the actual param data in the doc.
Closes #2633
2015-06-19 12:10:01 -07:00
Peter Bacon Darwin
22f4cd26ae
chore(doc-gen): remove redundant processors from angular.io generation
2015-06-19 19:08:34 +01:00
Jeff Cross
5b5ffe75d0
docs(Http): add docs for Http lib
...
Fixes #2442
2015-06-16 15:42:18 -07:00
Jeff Cross
ea27704ea9
fix(docs): order class members in order of declaration
...
Previously, class members were ordered alphabetically.
This change leaves it up to the class author to
determine the order in which they would like
properties and methods to appear in class
documentation, without having to create methods like
`zUnimportantMethod`.
Fixes #2569
2015-06-16 15:21:54 -07:00
Peter Bacon Darwin
0c282e826a
chore(doc-gen): ensure github links have the correct text
2015-06-15 21:59:52 +01:00
Jacob Eggers
8112b0baa7
chore(doc-gen): fix versionInfo population
2015-06-15 21:51:45 +01:00
Peter Bacon Darwin
14d28d7473
chore(doc-gen): fix id and alias generation for exports and members
...
This helps to ensure that links to exports are not confused with links
to members, which was causing some missing link issues.
Helps #2475
2015-06-15 00:11:59 +01:00
Peter Bacon Darwin
992293a196
chore(doc-gen): include `enum` in the export doc types
...
Fixes errors about missing "path templates" such as:
```
warn: No path template provided - doc "ViewType" (enum) - from file "angular2/src/render/api.ts"
warn: No output path template provided - doc "ViewType" (enum) - from file "angular2/src/render/api.ts"
```
2015-06-15 00:11:59 +01:00
Martin Probst
a6e7123995
feat: adjust formatting for clang-format v1.0.19.
2015-06-12 09:51:57 -07:00
Jeff Cross
05d02fa90b
fix(docs): ensure no duplicates in alias names of docs
...
Having multiple identical names in a doc's aliases would cause Ambiguous Link warnings
for each reference to one of the aliases.
Related to #2452
2015-06-11 17:52:13 -07:00
Rob Wormald
796fc66771
chore(build): rename .es6 files to .js
...
Change es6 source files in npm distribution to use .js extensions.
Closes #2447
2015-06-11 17:22:19 -07:00
Peter Bacon Darwin
659adf83dc
chore(doc-gen): move typeParams and heritage rendering to template
...
Partially solves #2452
2015-06-11 19:15:17 +01:00
Peter Bacon Darwin
efab03274f
chore(doc-gen): autogenerate Angular version in angular.d.ts file
2015-06-10 12:42:24 +01:00