518 Commits

Author SHA1 Message Date
Pete Bacon Darwin
cd51775390 build(docs-infra): render @see information in members ()
Previously `@see` tags were only rendered for top level class-like
docs. Now these tags are rendered for methods and properties too.

PR Close 
2019-01-11 14:35:23 -08:00
George Kalpakas
76104f395f feat(docs-infra): add support for custom test commands in cli-based docs examples ()
Previously, cli-based docs examples were tested using `yarn e2e ...`. In
some cases, it might make sense to run different or additional checks
for a docs example (when running `yarn example-e2e` in `aio/`).

Currently, the only option is to define a custom project type and
overwrite the `e2e` yarn script in `package.json`. Doing so (in addition
to being cumbersome and verbose) would also end up in the `.zip` archive
that users can download to run the example locally. This would be
confusing, if these custom tests are specific to our CI needs.

This commit adds support for defining a custom list of commands per
example. These commands (if specified) would be run instead of the
default `yarn e2e ...`, when testing the docs examples on CI (via
`yarn example-e2e`).

(This feature will be used to verify that the
`service-worker-getting-started` example is set up correctly in a
subsequent commit, but can be useful in other cases as well.)

PR Close 
2019-01-11 11:17:18 -08:00
George Kalpakas
18ccfc6d73 feat(docs-infra): add service-worker project type ()
File overwrites:
- **angular.json**: Add `serviceWorker: true` to production config.
- **package.json**: Add `@angular/service-worker` to dependencies.

This will make any `service-worker` examples work out-of-the-box, when
downloading and running locally from the `.zip` archives.

PR Close 
2019-01-11 11:17:17 -08:00
Adam Plumer
a100472b5d build: bump year ()
PR Close 
2019-01-11 11:15:59 -08:00
Paul Gschwendtner
c7d1890aaa build: remove travisci leftovers ()
PR Close 
2019-01-09 10:41:16 -08:00
Paul Gschwendtner
0199e26167 ci: remove travis ci setup ()
we no longer need it... yay!!!

PR Close 
2019-01-07 15:35:09 -08:00
Alex Eagle
026b7e34b3 build: update yarn version ()
Some engineers were already on Yarn 0.10.x which was permitted by the range in our package.json#engines
However this introduced 'integrity sha512' lines into the yarn.lock files.
Then when engineers use yarn 0.9 (in particular, Bazel did this) then the lock files get tons of meaningless edits.
We could force everyone back to yarn 0.9 but this commit chooses to instead advance everyone past 0.10

PR Close 
2018-11-21 07:46:22 -08:00
Pete Bacon Darwin
18b6d580c5 fix(docs-infra): update overload rendering ()
Based on the review here:
https://github.com/angular/angular/pull/24976#issuecomment-415535125

PR Close 
2018-11-01 14:17:11 -07:00
Pete Bacon Darwin
03417df54e build(docs-infra): display long overload parameter types as object ()
In some overloads, the parameter type can be a large anonymous
object type.
This change displays such types as `object`. It is then up to the
documentation author to put more information about the type in the
method usage notes.

PR Close 
2018-11-01 14:17:11 -07:00
Pete Bacon Darwin
61cd5f7c0f build(docs-infra): fix individual API overload templates ()
* Make individual overloads collapsible
* Show only the first overload expanded, rest collapsed
* Text changes to 'collapse all' once 'show all' is clicked
* Fix chevron/carrot rotation animation when overloads / overload item is expanded or collapsed

PR Close 
2018-11-01 14:17:11 -07:00
Pete Bacon Darwin
68dfa04f8a build(docs-infra): add method overload index ()
PR Close 
2018-11-01 14:17:10 -07:00
Stefanie Fluin
6902977665 build(docs-infra): improve API overload templates ()
PR Close 
2018-11-01 14:17:10 -07:00
Pete Bacon Darwin
eb5d3088a4 build: update canonical-path dependency ()
This new version (1.0.0) provides a typings file!

PR Close 
2018-11-01 13:49:10 -07:00
Brandon Roberts
91d2368e37 docs: update example dependencies to Angular/CLI/Universal V7 releases ()
PR Close 
2018-10-30 13:44:24 -04:00
Pete Bacon Darwin
d72d50d83e build(docs-infra): move CLI API desciption higher up ()
Closes 

PR Close 
2018-10-29 13:01:08 -04:00
Pete Bacon Darwin
07509da78d build(docs-infra): ensure that CLI code blocks are not auto-linked ()
Some of the text in CLI API docs were being auto-linked to API
pages. This was not correct, and in fact these blocks should not
have any auto links to Angular API at all.

Closes 

PR Close 
2018-10-26 18:09:20 -04:00
Pete Bacon Darwin
9ff8155cd9 build(docs-infra): mark code blocks to disable auto-linking ()
You can now mark `<code>` blocks with a `no-auto-link` css class
to tell the code auto-linker to ignore this code block.

PR Close 
2018-10-26 18:09:20 -04:00
Pete Bacon Darwin
7c730fe5b3 build(docs-infra): include inherited members in search index ()
Closes 

PR Close 
2018-10-26 13:16:33 -04:00
Pete Bacon Darwin
f233131974 build(docs-infra): refactor generateKeywords processor ()
PR Close 
2018-10-26 13:16:32 -04:00
Pete Bacon Darwin
4bd9f53e8f feat(docs-infra): rename tagdef: @experimental to @publicApi ()
PR Close 
2018-10-19 14:35:52 -07:00
Pete Bacon Darwin
4c0ad5238e build(docs-infra): display github links in CLI API docs ()
This commit includes the following changes:

* CLI version information is read from the CLI package from which
  we read the help files.
* CLI API pages now contain GH links
* line numbers are not shown in GH links, if the doc does not
  have a truthy `startingLine` value. This allows us to remove
  hard coded checks for `guide` pages
* content pages and CLI api docs no longer have a `startingLine`
* the hard-coded `packages` path segment has been removed from
  the templates; instead we now only use the `realProjectRelativePath`.
* the `realProjectRelativePath` has been updated accordingly for API
  and CLI API docs.

PR Close 
2018-10-19 11:12:54 -07:00
Pete Bacon Darwin
9e8903ada1 build(docs-infra): show github edit link on CLI overview ()
PR Close 
2018-10-19 11:12:53 -07:00
Pete Bacon Darwin
b9bd95b3b2 build(docs-infra): break long CLI options onto two lines ()
PR Close 
2018-10-19 11:07:30 -07:00
Pete Bacon Darwin
3f89aeb80a build(docs-infra): update CLI option rendering ()
PR Close 
2018-10-19 11:07:30 -07:00
Pete Bacon Darwin
6c530d3a85 build(docs-infra): render CLI arguments consistently ()
In the command syntax, arguments are rendered as
`var`s enclosed in angle brackets. So this is now repeated
in the arguments table too.

PR Close 
2018-10-19 11:07:30 -07:00
George Kalpakas
d9d226087c build(docs-infra): allow "" as empty region in {@example} tags ()
PR Close 
2018-10-18 09:54:17 -07:00
George Kalpakas
7bad1d356d build(docs-infra): only render code example content in one place ()
PR Close 
2018-10-18 09:54:17 -07:00
George Kalpakas
0add00a743 build(docs-infra): throw error if using title on code snippets ()
Since , the `title` property is ignored and `header` should be
used instead for specifying a code snippet's header.

This commit ensures that we don't accidentally set `title` have it be
silently ignored.

PR Close 
2018-10-18 09:54:17 -07:00
William Marques
fc6dad40ac fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips ()
Closes 

PR Close 
2018-10-17 11:05:29 -07:00
George Kalpakas
9e32dc7c95 build: upgrade @types/jasminewd2 to 2.0.4 ()
This commit also removes the extra jasminewd2 typings, since the changes
have been merged in the official typings with
DefinitelyTyped/DefinitelyTyped#28957.

PR Close 
2018-10-12 14:11:11 -07:00
Pete Bacon Darwin
ea20ae63d0 build(docs-infra): only show name in 'inherited from' section ()
Closes 

PR Close 
2018-10-12 09:13:02 -07:00
George Kalpakas
67608a907e build(docs-infra): make the git ref for cli command docs configurable ()
PR Close 
2018-10-11 12:57:49 -07:00
Brandon Roberts
d1b7bb52e7 docs: add note for including polyfills for StackBlitz examples ()
PR Close 
2018-10-09 17:04:20 -07:00
Brandon Roberts
1312693f88 docs: add core-js polyfills for StackBlitz support ()
PR Close 
2018-10-09 17:04:20 -07:00
Brandon Roberts
72ff9c880c docs: sync boilerplate configuration with Angular CLI RC2 ()
Revers Jasmine version back to ~2.99.1

PR Close 
2018-10-09 17:04:20 -07:00
Brandon Roberts
3060b3e29b docs: bump Jasmine version, fix build scripts ()
PR Close 
2018-10-09 17:04:20 -07:00
Brandon Roberts
ee28b64d74 docs: add webpack-cli back in shared example dependencies ()
PR Close 
2018-10-09 17:04:20 -07:00
Brandon Roberts
1246ba53c7 docs: cleanup universal boilerplate scripts ()
PR Close 
2018-10-09 17:04:20 -07:00
Brandon Roberts
c29ff722a0 docs: add testing styles back to boilerplate configuration ()
PR Close 
2018-10-09 17:04:20 -07:00
Brandon Roberts
f922808b8d docs: update to latest Angular RC, CLI RC, and Jasmine releases ()
PR Close 
2018-10-09 17:04:19 -07:00
Brandon Roberts
67435d456c Revert "docs: add testing styles in index.html, remove additional configuration" ()
This reverts commit 621d82a44c9d46f69f3296b302984f5949b8dee8.

PR Close 
2018-10-09 17:04:19 -07:00
Brandon Roberts
fbfce79b93 docs: add testing styles in index.html, remove additional configuration ()
PR Close 
2018-10-09 17:04:19 -07:00
Brandon Roberts
2a14dfa4ba docs: update shared example dependencies to Angular 7 and CLI 7 ()
PR Close 
2018-10-09 17:04:19 -07:00
Pete Bacon Darwin
5977b72e9c build(docs-infra): fix formatting of entry point export table ()
Now that `list-table` cells are `pre` formatterd we must be careful
of what whitespace appears in text nodes.

PR Close 
2018-10-01 09:36:34 -07:00
Pete Bacon Darwin
7373da9b11 build(docs-infra): simplify property syntax rendering ()
PR Close 
2018-10-01 09:36:34 -07:00
Pete Bacon Darwin
783a682a7d build(docs-infra): remove unused property table heading ()
PR Close 
2018-10-01 09:36:34 -07:00
Pete Bacon Darwin
d22418d417 build(docs-infra): add short description "See more" link ()
If there is additional (non-short) description then add in a
link to the short description to take the reader there.

PR Close 
2018-10-01 09:36:34 -07:00
Pete Bacon Darwin
4b1fd98093 build(docs-infra): pluralize NgModule(s) heading as appropriate ()
PR Close 
2018-10-01 09:36:34 -07:00
Pete Bacon Darwin
935ef13096 build(docs-infra): improve directive selector rendering ()
`:not(...)` blocks are now rendered as italic, while the
rest of the selector is bold.

PR Close 
2018-10-01 09:36:33 -07:00
Pete Bacon Darwin
f4b60588fb build(docs-infra): move directive macros into memberHelpers.html ()
PR Close 
2018-10-01 09:36:33 -07:00