Commit Graph

2536 Commits

Author SHA1 Message Date
George Kalpakas c5899f4cd4 build(docs-infra): update payload size limits to reflect current status (#26145)
PR Close #26145
2018-10-01 09:35:48 -07:00
Jordan Whitfield 794c3595d4 docs: fix a typo in the Universal guide (#25853)
line 39: `highly-interactive` is the pre-qualifier of `Angular application`, which is the subject so the comma is not necessary (I think). I think this will make it easier for non-native speakers.

PR Close #25853
2018-09-28 09:36:09 -07:00
Judy Bogart f455518d80 docs: integrate cli doc from wiki into main doc (#25776)
PR Close #25776
2018-09-27 15:33:47 -07:00
Ben Lesh ffc6e199bf build: RxJS updated to 6.3 (#26087)
PR Close #26087
2018-09-26 17:01:15 -07:00
George Kalpakas a01acec7fe fix(docs-infra): use correct parameters for paginated requests to GitHub (#25671)
As it turns out, in GitHub API paginated requests, page numbering is
1-based. (https://developer.github.com/v3/#pagination)

Starting at page 0 (which returns the first page), results in making the
same request twice and logging incorrect numbers (since the first 100
items are listed twice).

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas 021f4344b1 fix(docs-infra): fix preview server periodic clean-up (#25671)
Includes the following fixes:

- Fix cron entry format for clean-up script.
  Crontabs in `/etc` should not have a user field. No idea why it used
  to work before, but it started giving errors recently:
  `/bin/sh: root: not found`.

- Set required env variable in clean-up script. (Broken in cc6f36a9d.)
  This was producing the following error:
  `ERROR: Missing required environment variable 'AIO_CIRCLE_CI_TOKEN'!`

- Use the correct path for downloads to be removed. (Broken in cc6f36a9d.)

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas f113b49909 test(docs-infra): remove unnecessary test helpers (#25671)
`supertest.Request` extends `Promise` and can be used directly without
"promisifying".

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas d8d276c245 docs(docs-infra): update preview server docs to account for recent changes (#25671)
Mostly (but not exclusively) a follow-up to #23576.

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas e42bd012f9 ci(docs-infra): test PR previews on CI (#25671)
The deployment of PR previews is triggered by the notification webhook
of the `aio_preview` CircleCI job (which creates and stores the build
artifacts).

This commit adds a new job (`test_aio_preview`), which waits for the
preview to be deployed (for PRs that do have a preview) and then runs
some tests against it (currently only PWA tests).

Fixes #23818

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas 6d6b0ff1ad feat(docs-infra): add API endpoint for checking if PR can have preview (#25671)
There several reasons why PRs cannot have (public) previews:
- The PR did not affect any relevant files (e.g. non-spec files in
  `aio/` or `packages/`).
- The PR cannot be automatically verified as "trusted" (based on its
  author or labels).

Note:
The endpoint does not check whether there currently is a (public)
preview for the specified PR; only whether there can be one.

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas f378454c92 fix(docs-infra): correctly check PR files on preview server (#25671)
According to the docs, the response of GitHub's [PR files API][1]
_"includes a maximum of 300 files"_. This means that if a PR contains
more files, it is possible that not all files are retrieved (which
could, for example, give a false negative for the "significant files
touched" check - not likely but possible).

This commit fixes it by using paginated requests to retrieve all changed
files.

[1]: https://developer.github.com/v3/pulls/#list-pull-requests-files

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas c8c8436e58 test(docs-infra): fix test for preview server's `GithubPullRequests` (#25671)
PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas b31c8b6063 test(docs-infra): fix test for preview server's `BuildCleaner` completing prematurely (#25671)
PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas 897261efdc test(docs-infra): fix preview server unit tests on Windows (#25671)
Some tests where comparing actual with expected paths, without taking
into account that paths will be different on Windows.

This commit uses `path.resolve()` to convert expected paths to their
OS-specific form.

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas 35d70ff265 test(docs-infra): add support for source-maps in preview server tests (#25671)
PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas fc0a7959a4 refactor(docs-infra): use mockable logger (#25671)
Related discussion:
https://github.com/angular/angular/pull/23576#discussion_r187925949.

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas 182c08bee1 refactor(docs-infra): fix method name (getPrfromBranch --> getPrFromBranch) (#25671)
PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas e2bc0ad6c2 build(docs-infra): upgrade preview server dependencies (#25671)
PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas 73333ee3e5 build(docs-infra): replace `concurrently` with `npm-run-all` for preview server dev (#25671)
`npm-run-all` works just as well, but is better at handling termination on Windows.

PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas c819859598 build(docs-infra): do not exit preview server `dev` script when `build` fails (#25671)
PR Close #25671
2018-09-26 15:26:19 -07:00
George Kalpakas 79aefa7659 build(docs-infra): avoid race condition in `aio-builds-setup/` npm scripts (#25671)
Previously, due to multiple scripts re-building during `yarn dev`
initialization, there could be race conditions that led to errors.

This commit fixes it by ensuring `yarn build` is run once (before
the main `yarn dev` script).

PR Close #25671
2018-09-26 15:26:19 -07:00
arjunyel e1990a5a80 docs: firefox web components info (#26118)
PR Close #26118
2018-09-26 15:25:44 -07:00
Pete Bacon Darwin f29b218060 feat(docs-infra): generate Angular CLI command reference (#25363)
PR Close #25363
2018-09-26 11:24:02 -07:00
Pete Bacon Darwin 39a67548ac build(docs-infra): add option to run only the doc-gen (#25363)
This can save time when iterating by not
regenerating the zips and embedded examples.

PR Close #25363
2018-09-26 11:24:02 -07:00
Brandon Roberts bc88f318f6 docs: update routing integration section based on feedback (#20023)
PR Close #20023
2018-09-26 10:14:49 -07:00
Brandon Roberts a5b7008c8e docs: add section on router integration (#20023)
PR Close #20023
2018-09-26 10:14:49 -07:00
Brandon Roberts 0aafbac99b docs: clean up providedIn: 'root' syntax for router examples (#20023)
PR Close #20023
2018-09-26 10:14:49 -07:00
Brandon Roberts ac5aa8f46d docs: router guide review feedback changes (#20023)
PR Close #20023
2018-09-26 10:14:49 -07:00
Brandon Roberts 1fb3c4ffee docs: Update router guide to use Angular CLI (#20023)
PR Close #20023
2018-09-26 10:14:49 -07:00
Brandon Roberts 3c8aa0b301 docs: Refresh content on routable animations for router guide (#20023)
PR Close #20023
2018-09-26 10:14:49 -07:00
Brandon Roberts d19108531c docs: cleanup minor changes for forms overview (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 354d1944bb docs: remove unused properties from forms overview example (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts eaccd03ed7 docs: fix typos from review feedback (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 343df337f4 docs: update with forms overview review feedback (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 9b14483824 docs: more overview feedback changes (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts bd42caf1c7 docs: update nav descriptions based on feedback (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 7db8111973 docs: add updated reactive forms data flow image (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 74fef157e6 docs: updates from review feedback (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 9661bed3ba docs: add updated forms overview images (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 95168e4de0 docs: integrate forms diagrams into overview (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 13c3e241c8 docs: add final thoughts to forms overview (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 8d098d389a docs: incorporated forms overview review feedback (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 79a2567aa3 docs: forms overview review changes (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 5649acd03f docs: add forms overview example for snippets (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts ebd01e8e79 docs: more form overview edits (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts e08955b557 docs: incorporated forms overview feedback (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 04dfca41f4 docs(forms): add package overview for forms (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Brandon Roberts 129f69c3bc docs: add forms overview guide (#25663)
PR Close #25663
2018-09-25 18:48:15 -07:00
Vani c7e2930f25 docs: fix issues related to tutorial. (#24445)
PR Close #24445
2018-09-25 18:45:19 -07:00
Max Belsky cf095d982d docs: fix a typo (#26074)
PR Close #26074
2018-09-24 13:48:24 -07:00
George Wilde bc02e19831 docs: correct path reference in upgrade guide (#26072)
The incorrect path is referenced, this is confusing to users following the "Upgrading from AngularJS" guide.

PR Close #26072
2018-09-24 09:13:24 -07:00
sajeetharan 47eb2122c0 docs: fix Sajee info in contributors (#26063)
PR Close #26063
2018-09-24 09:12:45 -07:00
Pete Bacon Darwin b8422b41bb build(docs-infra): fail doc-gen if a content rule fails (#26039)
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin 8ac4dd6447 build(docs-infra): allow usage notes on decorator option properties (#26039)
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin 3808416479 build(docs-infra): remove legacy jsdoc tag processing (#26039)
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin cee7448efc build(docs-infra): add @nocollapse tag-def to prevent warning (#26039)
See https://github.com/angular/angular/blob/master/packages/compiler-cli/src/transformers/nocollapse_hack.ts

PR Close #26039
2018-09-24 09:11:02 -07:00
Zhicheng Wang 5da911d5e4 chore: 根据原文设置提交信息 2018-09-24 11:01:10 +08:00
Zhicheng Wang 2bcc2a788c chore: 根据原文设置提交信息 2018-09-24 10:56:38 +08:00
Zhicheng Wang 7b2200ff5b chore: remove noindex for robots 2018-09-24 10:48:53 +08:00
Zhicheng Wang d2554b40ea docs: 翻译遗漏的部分。 2018-09-24 08:26:10 +08:00
Zhicheng Wang 5a3a30ccdb chore: use html-minifier instead of manual minify 2018-09-23 22:42:13 +08:00
Zhicheng Wang 4e87ce8688 chore: minify template html
chore: purge html comments
2018-09-23 21:11:20 +08:00
Pete Bacon Darwin 7f1cace2a2 build(docs-infra): sort NgModule exports by id (#26051)
PR Close #26051
2018-09-21 17:00:03 -07:00
Pete Bacon Darwin 56c86c7e79 build(docs-infra): sort package exports by id (#26051)
Closes #26046

PR Close #26051
2018-09-21 17:00:03 -07:00
Pete Bacon Darwin a880686081 fix(docs-infra): ensure that only search is removed from URL on click (#26056)
When we have navigated to the site via a URL that contains a search
query param, the site shows the search results.

We want to remove that query param from the URL when the search
results are closed, but the current implementation is also removing
other query params unnecessarily.

Now only the search param is removed when the search results are
closed.

See https://github.com/angular/angular/pull/25479/files#r219497804
for more context.

PR Close #26056
2018-09-21 10:29:24 -07:00
Pete Bacon Darwin 026b60cd70 build(docs-infra): expose deprecated status on items more clearly (#25750)
PR Close #25750
2018-09-21 10:26:48 -07:00
Pete Bacon Darwin cea2e0477c fix(docs-infra): render security risk labels (#25750)
PR Close #25750
2018-09-21 10:26:48 -07:00
Pete Bacon Darwin 96f9f03d25 build(docs-infra): improve search quality (#25750)
PR Close #25750
2018-09-21 10:26:48 -07:00
Pete Bacon Darwin 9931bd7576 build(docs-infra): do not include license comment in first API doc (#26050)
The default dgeni config is to concatenate leading comments in front of API items.

In the case that you have an API item that starts a file with no import statements,
the license comment at the top of the file was being added to the front of the
API item's comment. SInce the license comment includes the `@license` tag
and the API item's comment did not start with `@description` the content of
the API item's comment was being put inside the `@license` tag, and no
description was being extracted from the API item's comment.

This commit updates to a version of dgeni-packages that has a switch to turn off
this concatenation, and then also configures this switch.

Closes #26045

PR Close #26050
2018-09-21 10:25:41 -07:00
sajeetharan 48094835bf docs: add Sajee to contributors (#26028)
PR Close #26028
2018-09-21 10:24:15 -07:00
Zhicheng Wang 8826561b68 docs: 增加百度 site verification(文件验证) 2018-09-21 15:27:56 +08:00
Zhicheng Wang 10cd70151b docs: 增加百度 site verification 2018-09-21 15:18:44 +08:00
Zhicheng Wang 2c17293ba7 docs: 更换自己的 google site verification 2018-09-21 15:00:19 +08:00
Zhicheng Wang cf3c92e317 docs: 支持 API 列表的 SEO 2018-09-21 14:36:58 +08:00
Zhicheng Wang 678d02b418 docs: 去掉重复的根组件包装 2018-09-21 13:56:26 +08:00
Zhicheng Wang ef71ec77fe docs: 构建首页 2018-09-21 13:40:01 +08:00
Zhicheng Wang 6dee3bf0a7 docs: 移除 blog,把它独立 2018-09-21 11:22:21 +08:00
Zhicheng Wang c0b01ff6f5 chore: 指向 material.angular.cn 2018-09-21 10:14:20 +08:00
Zhicheng Wang 747b86d792 chore: 修正 SEO 链接 2018-09-21 09:06:15 +08:00
George Kalpakas 48e73c1558 ci: only run `aio_preview` job on PR builds (#26030)
There can be no preview on non-PR builds, so there is no point in
running the job.

PR Close #26030
2018-09-20 09:32:44 -07:00
Zhicheng Wang e6f3b76ce7 chore: 做了一些简陋的 SSR 页面,对搜索引擎友好,而且基本不影响用户体验。 2018-09-20 14:45:44 +08:00
Judy Bogart 41ac58ab7d docs: copy-edit (#25732)
PR Close #25732
2018-09-19 18:22:45 -07:00
Judy Bogart f37cf52b4c docs: integrate material from cli wiki (#25732)
PR Close #25732
2018-09-19 18:22:45 -07:00
Pete Bacon Darwin b94436d86c build(docs-infra): process and render ngmodule exports (#25734)
All directives and pipes must now be tagged with one ore more
public NgModule, from which they are exported.

If an item is exported transitively via a re-exported internal NgModule
then it may be that the item appears to be exported from more than
one public NgModule. For example, there are shared directives that
are exported in this way from `FormsModule` and `ReactiveFormsModule`.

The doc-gen will error and fail if a directive or pipe is not tagged correctly.

NgModule pages now list all the directives and pipes that are exported from it.
Directive and Pipe pages now list any NgModule from which they are exported.
Packages also now list any NgModules that are contained - previously they were
missed.

PR Close #25734
2018-09-19 16:18:24 -07:00
Pete Bacon Darwin bc5cb8153e build(docs-infra): separate NgModules from Classes in API docs (#25734)
PR Close #25734
2018-09-19 16:18:24 -07:00
Pete Bacon Darwin 34b848ad51 build(docs-infra): remove unused info-bar API template (#25734)
PR Close #25734
2018-09-19 16:18:24 -07:00
Alan Agius d7e5bbf2d0 feat(compiler-cli): add support to extend `angularCompilerOptions` (#22717)
`TypeScript` only supports merging and extending of `compilerOptions`. This is an implementation to support extending and inheriting of `angularCompilerOptions` from multiple files.

Closes: #22684

PR Close #22717
2018-09-19 16:17:28 -07:00
George Kalpakas df5999a739 fix(docs-infra): configure Firebase to strip off the `.html` extension (#25999)
Firebase used to do it automatically (with `cleanUrls: true`), but it
stopped doing it unless the resulting URL corresponds to an existing
file (which is not always the case in angular.io; e.g. the resulting URL
might be matched by a new redirect rule).
This change in Firebase hosting behavior resulted in some URLs not being
correctly redirected (e.g. URLs to the archived v2 site, or `.html`
suffixed URLs from 3rd-party sites).

This commit fixes it, by configuring Firebase hosting to strip off the
`.html` extension and redirect (if no other redirect rule matched).

PR Close #25999
2018-09-19 16:08:06 -07:00
Sergej 8f0fcc3f71 feat(docs-infra): Add opensearch description (#25479)
Enables Chrome users to search angular.io and its subdomains from the browsers navigation bar.
Not sure if compatible with Firefox yet.
The queried term in the URL is removed after closing the search-results.

PR Close #25479
2018-09-19 15:31:49 -07:00
Vani f91b0455c0 docs(animations): updated animation docs (#24206)
PR Close #24206
2018-09-19 10:37:31 -07:00
Kapunahele Wong e8bab1349f docs: delete extra sentence (#25984)
PR Close #25984
2018-09-19 09:42:12 -07:00
Zhicheng Wang c9e0e46f4d chore: 翻译遗漏的内容 2018-09-17 08:36:50 +08:00
Zhicheng Wang fe5eef45ea chore: 发布脚本统一命名为 deploy-cn.sh 2018-09-16 06:44:26 +08:00
Zhicheng Wang d8d60257f5 chore: 不再移除原有文件,以保持升级时的兼容性 2018-09-16 06:43:43 +08:00
Zhicheng Wang 9e94c2a119 docs: 样式微调 2018-09-15 08:13:04 +08:00
songjunting 8f81dba367 docs: fix typo in bootstrapping guide (#25939)
Fixes #25938

PR Close #25939
2018-09-14 16:38:18 -07:00
Kapunahele Wong a09c3923db docs: delete old comments from example (#25931)
PR Close #25931
2018-09-13 15:33:33 -07:00
Zhicheng Wang 9ad4498655 docs: 添加 ng-zorro 链接 2018-09-13 13:10:28 +08:00
Alan Agius 379e8c5e19 docs: add `disableTypeScriptVersionCheck` documentation (#25537)
PR Close #25537
2018-09-11 12:25:55 -07:00
Zhicheng Wang ad4a674b65 docs: 添加外部导航链接 2018-09-11 12:57:12 +08:00
Plamena Radneva ed266daf2c docs(aio): add ng-sq-ui to resources (#25874)
PR Close #25874
2018-09-10 10:31:11 -07:00
Vani 89af5291de docs: move compiler options to last section of the page (#22353)
PR Close #22353
2018-09-10 10:30:00 -07:00
Zhicheng Wang 1150e9b6b7 docs(blog): 文字微调 2018-09-10 09:37:40 +08:00
Liad Idan d6cd041cbd docs(service-worker): update http-server command (#25845)
PR Close #25845
2018-09-06 14:59:51 -07:00
George Kalpakas 694b8ae779 build(docs-infra): ensure any stale generated content is deleted (#25841)
Since `aio/src/generated/` is git-ignored, it is easy for stale content
(e.g. removed images, examples, zips, etc.) to remain there on local
clones and then get copied into the `dist/` directory.

This commit ensures `aio/src/generated/` is cleaned up before generating
the new content.

PR Close #25841
2018-09-06 14:59:29 -07:00
George Kalpakas 152de20774 fix(docs-infra): re-enable SW offline mode (#25826)
This basically reverts #25692, since Firebase has fixed the issue with
`/index.html` redirection on their side.

PR Close #25826
2018-09-06 14:59:08 -07:00
Alex Eagle 34ec9244a6 build: update to Node 10 (#25822)
PR Close #25822
2018-09-06 14:58:30 -07:00
Zhicheng Wang b72d3c5083 docs(API): 翻译完了动画部分 2018-09-06 08:17:12 +08:00
Frederik Schlemmer 1bc6f64eb5 docs: update event page (#25799)
docs: change reactiveconf event location
PR Close #25799
2018-09-05 11:37:02 -07:00
Maicon Wagner 397b047eff docs: fix showcase address truly-ui (#25757)
PR Close #25757
2018-09-05 11:36:39 -07:00
George Kalpakas 13b8399d0c test(docs-infra): fix double-slash in URL of `aio_monitoring` test (#25641)
As part of the tests run in the CircleCI `aio_monitoring` job, we need
to retrieve `sitemap.xml` from the site under test. Previously, the URL
used to retrieve that contained a double-slash (`//`). At some point,
Firebase (which is used for hosting the site) stopped normalizing
double-slashes to a single slash, causing the test to fail.

This commit fixes the problem by ensuring that the constructed URLs do
not contain double-slashes.

PR Close #25641
2018-09-05 09:37:55 -07:00
Pete Bacon Darwin 234661b3d6 feat(docs-infra): disable "status" selector in API list when displaying only packages (#25718)
Closes #25708

PR Close #25718
2018-09-05 09:28:28 -07:00
Pete Bacon Darwin 4a04ab8823 build(docs-infra): do not render internals in package API pages (#25723)
Closes #24493

PR Close #25723
2018-09-05 09:28:05 -07:00
Rob Wormald 25c1f331d6 refactor(docs-infra): bump polyfills payload limit (#25806)
PR Close #25806
2018-09-05 09:23:10 -07:00
Rob Wormald 59aab14394 refactor(docs-infra): simplify custom-element polyfill setup (#25806)
PR Close #25806
2018-09-05 09:23:10 -07:00
Pete Bacon Darwin c1ae3c16e8 build(docs-infra): ensure root node_modules exists (#25811)
Now that the doc-gen parses the imports of TS source
files we need to ensure that the root node_modules
exists. Otherwise running `yarn docs` produces an
obscure error:

```
Error: No SourceFile found with path node_modules/@types/jasmine/index.d.ts
```

Closes #25759

PR Close #25811
2018-09-05 09:22:46 -07:00
Zhicheng Wang 8aba1f3d84 docs(API): 更新翻译状态 2018-09-05 10:48:55 +08:00
Zhicheng Wang cf01a7f5d4 docs(API): 翻译完了 Renderer2 2018-09-05 10:48:08 +08:00
Zhicheng Wang d589eef668 docs(API): 翻译完了 test/async 2018-09-05 10:10:50 +08:00
Zhicheng Wang 9e40bf8e63 docs(API): 翻译完了 ValidatorFn 2018-09-05 10:08:10 +08:00
Zhicheng Wang badf927f37 docs(API): 翻译完了 NgSelectOption 2018-09-05 09:46:21 +08:00
Zhicheng Wang 7b2226516a docs(API): 翻译完了 SimpleChange 2018-09-05 09:22:22 +08:00
Zhicheng Wang 7c7733c3af docs(API): 翻译完了 PipeTransform 2018-09-05 09:15:35 +08:00
Stephen Fluin 2f1bc1aa1a docs: add pwa keyword to service worker page (#25725)
PR Close #25725
2018-09-04 12:09:54 -07:00
Jonathan Pool bd0eb0d1d4 docs: correct misspellings and add missing punctuation in tutorial (#25676)
PR Close #25676
2018-09-04 12:08:52 -07:00
Zhicheng Wang 84f95e5864 docs(API): 翻译完了 DomSanitizer 2018-09-04 17:20:54 +08:00
Zhicheng Wang 7e8b60ce31 docs(API): 更新已翻译的状态 2018-09-04 16:51:07 +08:00
Zhicheng Wang 8e6ce058ae docs(API): 翻译完了 ParamMap 2018-09-04 16:49:14 +08:00
Zhicheng Wang ee075b2bbd docs(API): 翻译完了 QueryList 2018-09-04 16:42:02 +08:00
Zhicheng Wang d9a50a8452 docs(API): 翻译完了 HttpResponse 2018-09-04 16:37:03 +08:00
Zhicheng Wang 2a1fbec879 docs(API): 翻译完了 forms/Form 2018-09-04 16:00:05 +08:00
Zhicheng Wang 0d7690251b docs(API): 翻译完了 ComponentFactory 2018-09-04 15:56:04 +08:00
Zhicheng Wang 8dbe7ff025 docs(API): 翻译完了 formatDate 2018-09-04 15:48:34 +08:00
Zhicheng Wang 284e6a7319 docs(API): 翻译完了 ChangeDetectorRef 2018-09-04 15:32:26 +08:00
Zhicheng Wang 3819d7de3b docs(API): 翻译完了 common/http 2018-09-04 15:04:47 +08:00
Zhicheng Wang 719650b41f docs(API): 翻译完了 CommonModule 2018-09-04 14:56:11 +08:00
Zhicheng Wang a510ed5312 docs(API): 翻译完了 JsonPipe 2018-09-04 14:54:23 +08:00
Zhicheng Wang adb6be6a02 docs(API): 翻译完了 SlicePipe 2018-09-04 14:50:06 +08:00
Zhicheng Wang a033f25b13 docs(API): 翻译完了大部分路由器事件 2018-09-04 14:36:53 +08:00
Zhicheng Wang 0d7988992b docs(API): 翻译完了所有路由守卫 2018-09-04 14:04:10 +08:00
Zhicheng Wang 06368682ef docs(API): 翻译完了 HttpRequest 2018-09-04 13:55:45 +08:00
Zhicheng Wang 785aecb6dd docs(API): 翻译完了 HttpInterceptor 2018-09-04 13:33:50 +08:00
Zhicheng Wang c3ec312159 docs(API): 翻译完了 FormControlName 2018-09-04 13:21:25 +08:00
Zhicheng Wang 201976fd31 docs(API): 翻译完了各个生命周期钩子 2018-09-04 12:32:48 +08:00
Zhicheng Wang d1985fc7d1 docs(API): 翻译完了 HttpParams 2018-09-04 11:05:45 +08:00
Zhicheng Wang 82ba447ca0 docs(API): 翻译完了 FormBuilder 2018-09-04 10:47:31 +08:00
Zhicheng Wang 986872ecbd docs(API): 翻译完了 TemplateRef 2018-09-04 10:39:27 +08:00
Zhicheng Wang 46a2608476 docs(API): 翻译完了 RouterLinkActive 2018-09-04 10:25:36 +08:00
Zhicheng Wang e8d4f26644 docs(API): 翻译完了 DecimalPipe 和 CurrencyPipe 2018-09-04 10:12:28 +08:00
Zhicheng Wang ec886a90ef docs(API): 翻译完了 BrowserModule 2018-09-04 09:31:32 +08:00
Zhicheng Wang 391aed864a docs(API): 翻译完了 Location 2018-09-04 09:19:39 +08:00
Zhicheng Wang eb075b665f docs(API): 翻译完了 NgTemplateOutlet 2018-09-04 08:43:00 +08:00
Zhicheng Wang 6292866c98 docs(API): 翻译完了 ViewContainerRef 2018-09-03 08:54:32 +08:00
Zhicheng Wang 3fc7bb2ab4 docs(API): 翻译完了 AsyncPipe 2018-09-02 22:33:49 +08:00
Zhicheng Wang 78248db322 docs(API): 翻译完了 NgForm 2018-09-02 22:28:11 +08:00
Zhicheng Wang fe5c6d0a11 docs(API): 翻译完了 NgSwitch 2018-09-02 22:09:03 +08:00
Zhicheng Wang 6312e38a63 docs(API): 翻译完了 HttpHeaders 2018-09-02 19:31:59 +08:00
Zhicheng Wang 8cea4a3646 docs(API): 翻译完了 Validators 2018-09-02 19:23:29 +08:00
Zhicheng Wang de47500c53 docs(API): 翻译完了 RouterOutlet 2018-09-02 11:53:17 +08:00
Zhicheng Wang 63127dd0c0 docs(API): 翻译完了 NgStyle 2018-09-02 11:31:35 +08:00
Zhicheng Wang c448443c70 docs(API): 翻译完了 XxxCasePipe 2018-09-02 11:28:43 +08:00
Zhicheng Wang 81b322a2fc docs(API): 翻译完了 OnInit 2018-09-02 11:20:28 +08:00
Zhicheng Wang 3bfa4e5daa docs(API): 翻译完了 ElementRef 2018-09-02 11:11:49 +08:00
Zhicheng Wang 59425a1e5e docs(API): 翻译完了 HttpClientModule 2018-09-01 21:44:38 +08:00
Zhicheng Wang 10ddb2449f docs(API): 翻译完了 RouterModule 2018-09-01 20:55:38 +08:00
Zhicheng Wang ea796c6952 docs(API): 翻译完了 ViewChild 2018-09-01 14:19:20 +08:00
Zhicheng Wang cfd6494ade docs(API): 翻译完了 Routes 2018-09-01 13:07:46 +08:00
Zhicheng Wang a6d7c47763 docs(API): 翻译完了 RouterLink 2018-09-01 10:16:58 +08:00
Zhicheng Wang f224ca6265 docs(API): 翻译完了 ActivatedRoute 2018-09-01 09:57:03 +08:00
Zhicheng Wang e436d6972b docs(API): 翻译完了几个表单控件类 2018-09-01 09:19:36 +08:00
Martin Sikora ccb4a396f0 test(docs-infra): test that the "suggest edit" buttons are visible where expected (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Martin Sikora d539122466 refactor(docs-infra): refactor templates (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Martin Sikora b89a7dd4a2 fix(docs-infra): show "suggest edits" only for /guide and /tutorial dirs (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Martin Sikora 9533cc9809 feat(docs-infra): add "suggest edits" feature to all docs (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Zhicheng Wang 2408128394 docs(API): 翻译 injectable 2018-08-31 18:31:27 +08:00
Zhicheng Wang b3991897d8 docs(API): 翻译 date_pipe 2018-08-31 18:18:05 +08:00
Zhicheng Wang 3961af4fea docs(API): 翻译 NgClass 2018-08-31 16:28:42 +08:00
Zhicheng Wang acfc14aafa docs(API): 翻译 router 2018-08-31 16:21:38 +08:00
Zhicheng Wang 2cd125f40c docs(API): 改进标题行翻译方式
docs(API): 翻译了 directive.ts 中的所有 tsdoc
2018-08-31 09:01:12 +08:00
Judy Bogart 2379ad1a4b docs: edit and organize di guide (#21915)
PR Close #21915
2018-08-30 13:15:47 -04:00
Zhicheng Wang 9f34b155c4 docs(API): 翻译 ng-for-of 2018-08-30 12:56:38 +08:00
Zhicheng Wang c3039b42a5 docs(API): 补充翻译时的注意事项 2018-08-30 12:27:10 +08:00
Zhicheng Wang 2dacd7f813 docs(API): 尝试对部分高频 API 进行翻译 - HttpClient 2018-08-30 12:22:02 +08:00
Zhicheng Wang dd9d8b9363 docs(blog): minor fixes 2018-08-30 09:48:14 +08:00
Zhicheng Wang 9d90de444e docs(blog): RxJS quick start 2018-08-30 09:25:00 +08:00
Frederik Schlemmer 9ee29ecdd4 docs: clarification of hero selection in routing section (#25634)
PR Close #25634
2018-08-28 22:16:18 -04:00
George Kalpakas b069514818 fix(docs-infra): temporary SW fix (for online mode) (#25692)
Due to unknown reasons, Firebase seems to return a 301 response for
`/index.html`, but without a `Location` header. According to the spec,
the browser will not follow the redirect, considering the response as
failed, instead.

This commit temporarily removes `index.html` from hashed resources and
changes `index` to `/` in `ngsw-config.json`, until we figure out an
appropriate long-term solution.

PR Close #25692
2018-08-28 13:33:48 -04:00
Pete Bacon Darwin b1902db0cb build(docs-infra): render all overloads if they are abstract (#25670)
In an overloaded method, the overload with the function body is the
actual method doc, and this doc is not included in the list of "additional"
overloads.

Moreover, the logic (all in dgeni-packages) is that if none of the items
has a body then we use the first overload as the actual method doc.

In the case of abstract methods, none of the methods have a body. So we
have a situation where the overloads collection does not contain the first
abstract method, even though it is not the "implementation" of the method.
Therefore we need to still render it.

Closes #25610

PR Close #25670
2018-08-27 18:19:08 -04:00
Pete Bacon Darwin a081d207f8 build(docs-infra): remove "annotations" section from API pages (#25677)
PR Close #25677
2018-08-27 18:18:41 -04:00
George Kalpakas f596930c8c fix(docs-infra): ignore server-side redirected URLs in the SW (#19795)
This allows URLs to be passed through to the server (where they are
properly redirected), instead of serving `index.html` from the SW.

Known issue:
`/docs/` will be passed through to the server. `/docs` (without the
trailing slash) will be correctly treated as a navigation URL and
handled by the SW.
We don't link to `/docs/` from within the app, but if there are external
links to `/docs/` they will require a round-trip to the server and will
not work in offline mode.

PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas b3c56f021f build(docs-infra): downgrade @angular-devkit/build-angular to 0.6.7 (#19795)
The is a bug in versions 0.6.8+ that breaks when trying to use Jasmine's
mock clock.

Related to angular/angular-cli#11626.

PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas 864c22fb79 build(docs-infra): update size limits (#19795)
PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas 4d83a0a789 build(docs-infra): upgrade @angular/* to 6.1.0-rc.3 and rxjs to 6.2.2 (#19795)
PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas 2569fd4d75 build(docs-infra): upgrade @angular/cli to 6.1.0-rc.3 and @angular-devkit/build-angular to 0.7.0-rc.3 (#19795)
PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas c73ebe79b3 build(docs-infra): update size limits (#19795)
PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas 110ab2230b build(docs-infra): upgrade @angular/material to 6.0.2 (#19795)
PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas 4a61cb3fab build(docs-infra): upgrade @angular/* to 6.0.2 and rxjs to 6.1.0 (#19795)
PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas 4dc5afb5c6 build(docs-infra): upgrade @angular/cli to 6.0.3 (#19795)
PR Close #19795
2018-08-27 16:30:43 -04:00
George Kalpakas 8c2c6b5d1a build(docs-infra): remove unused dependencies (#19795)
PR Close #19795
2018-08-27 16:30:42 -04:00
George Kalpakas f71cce7f9b build(docs-infra): remove the dependency on `rxjs-compat` (#19795)
PR Close #19795
2018-08-27 16:30:42 -04:00