d4003452c7
fix(docs-infra): do not include GitHub links in Table of Content ( #32418 )
...
The docs template for cli commands ([cli-command.template.html][1])
includes an `h2` element with GitHub links for [long description][2].
Since the content of `h2` elements is replicated in the auto-generated
Table of Contents, the GitHub links were replicated as well (which is
undesirable).
This commit fixes it by explicitly excluding `.github-links` elements,
when extracting the content for the ToC (in
[TocService#extractHeadingSafeHtml()][3]). This is similar to what we do
for the auto-generated `.header-link` anchors.
[1]: https://github.com/angular/angular/blob/1537791f0/aio/tools/transforms/templates/cli/cli-command.template.html
[2]: https://github.com/angular/angular/blob/1537791f0/aio/tools/transforms/templates/cli/cli-command.template.html#L18
[3]: https://github.com/angular/angular/blob/1537791f0/aio/src/app/shared/toc.service.ts#L56
PR Close #32418
2019-09-05 13:33:06 -04:00
007282d2bb
fix(docs-infra): exclude heading anchor icon text from ToC tooltips ( #32418 )
...
The Table of Contents (ToC) is auto-generated based on the content of
heading elements on the page. At the same time, anchor links are
auto-generated and added to each heading element. Note that the Material
Icons used for the anchor icon make use of ligatures, which means that
the icons are specified by using their textual name as text content of
the icon element. As a result, the name of the icon is included in the
parent element's `textContent`.
Previously, the `TocService` used to strip off these anchor elements
when generating the content of ToC items, but not when generating the
content of their tooltips. Thus, tooltips for ToC items would
confusingly include a `link` suffix (`link` is the textual name of the
icon used in heading anchor links).
This commit fixes this by deriving the tooltip content from the
transformed text content (which already has anchor links stripped off),
instead of from the original heading content.
PR Close #32418
2019-09-05 13:33:06 -04:00
01e0f58dd6
docs: Updating the Ignite UI for Angular url ( #32417 )
...
PR Close #32417
2019-09-04 11:51:40 -07:00
cfa09b84dd
docs: fix typo in structural directive example ( #32459 )
...
Fixes #32458
PR Close #32459
2019-09-04 11:36:02 -07:00
e213080c0b
docs: add app-shell production reference ( #32471 )
...
PR Close #32471
2019-09-04 11:34:17 -07:00
04d4fea3e8
docs: correct @ngtools/webpack url ( #32407 )
...
Fixes #32385
PR Close #32407
2019-09-03 12:00:19 -07:00
89434e09c2
refactor(core): move Meta methods that only have one version from DomAdapter ( #32408 )
...
PR Close #32408
2019-09-03 11:59:39 -07:00
d0b3688a23
docs: removed duplicate "compilerOptions" property ( #32449 )
...
PR Close #32449
2019-09-03 11:57:32 -07:00
c507e4907d
test(docs-infra): expand select glob patterns in verify-docs-codeownership.js
( #32360 )
...
This allows the script to recognise some matches that it would miss
before and avoid listing them as missing.
Ideally, the script should be able to understand the globs in
`CODEOWNERS` and correctly find matching file-system paths.However, for
the limited purposes of the script (and for just a couple of relevant
globs), implementing this would be an overkill.
Implemented the "manual expansion" instead.
(We might revisit, if the needs change.)
PR Close #32360
2019-08-30 12:48:24 -07:00
afc6ab5442
test(docs-infra): modify verify-guide-codeownership.js
to also check API docs examples ( #32360 )
...
This script can be used for manually checking that all docs
guides/examples/images have owners in `.github/CODEOWNERS`.
This commit adds support for also checking codeownership of API docs
examples (in `packages/examples/*`). The script is also renamed to the
more generic (and accurate) `verify-docs-codeownership.js`.
PR Close #32360
2019-08-30 12:48:24 -07:00
8c388e3730
build(docs-infra): upgrade cli command docs sources to d68a96224 ( #32413 )
...
Updating [angular#master](https://github.com/angular/angular/tree/master ) from [cli-builds#master](https://github.com/angular/cli-builds/tree/master ).
##
Relevant changes in [commit range](0d56c1f5f...d68a96224
):
**Modified**
- help/e2e.json
##
PR Close #32413
2019-08-30 13:54:46 -04:00
9bbe67f286
docs: add clarification regarding development in older browsers in Deployment guide ( #32210 )
...
Fixes #32199
PR Close #32210
2019-08-30 13:53:11 -04:00
03cbce8c66
docs: fix typo in compiler options guide ( #32348 )
...
PR Close #32348
2019-08-29 12:35:25 -07:00
3aba7ebe6a
feat(core): Introduce TestBed.inject to replace TestBed.get ( #32200 )
...
TestBed.get is not type safe, fixing it would be a massive breaking
change. The Angular team has proposed replacing it with TestBed.inject
and deprecate TestBed.get.
Deprecation from TestBed.get will come as a separate commit.
Issue #26491
Fixes #29905
BREAKING CHANGE: Injector.get now accepts abstract classes to return
type-safe values. Previous implementation returned `any` through the
deprecated implementation.
PR Close #32200
2019-08-28 21:26:46 -07:00
4b1251106e
build: bump yarn requirement to 1.17.3 ( #32344 )
...
PR Close #32344
2019-08-28 17:13:05 -07:00
f3e4cb491e
refactor(core): remove testing-only event utilities from DomAdapters ( #32291 )
...
PR Close #32291
2019-08-28 17:10:30 -07:00
3e52e32dce
build(docs-infra): add empty codeGenApi
JSDoc tag definition ( #32207 )
...
This avoids warning such as the following ([example][1]):
```
warn: Invalid tags found -
doc "platform-browser/ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__" (const)
from file "platform-browser/src/browser.ts"
```
[1]: https://circleci.com/gh/angular/angular/427064
PR Close #32207
2019-08-28 09:41:21 -07:00
0a09fb1432
docs: fix a minor typo in the HTTP guide ( #32359 )
...
"of typed" should be "of type"
PR Close #32359
2019-08-28 09:40:09 -07:00
2f6062f632
docs: fix callout header ( #32325 )
...
PR Close #32325
2019-08-28 09:06:07 -07:00
066b281979
docs(docs-infra): add note about setting up examples on Windows ( #32355 )
...
Closes #32321
PR Close #32355
2019-08-28 09:04:39 -07:00
125ef0a0ec
build(docs-infra): upgrade cli command docs sources to 0d56c1f5f ( #32367 )
...
Updating [angular#master](https://github.com/angular/angular/tree/master ) from [cli-builds#master](https://github.com/angular/cli-builds/tree/master ).
##
Relevant changes in [commit range](59722208a...0d56c1f5f
):
**Modified**
- help/update.json
##
PR Close #32367
2019-08-28 09:04:02 -07:00
e3f42818e9
docs: add detail to router event doc ( #32140 )
...
PR Close #32140
2019-08-27 16:17:06 -07:00
ef2047555a
docs: clean up formats in template syntax guide ( #32197 )
...
PR Close #32197
2019-08-27 16:14:24 -07:00
d953c1cee3
docs: update marketing resources.json with ExtAngular ( #32126 )
...
PR Close #32126
2019-08-27 16:12:31 -07:00
7c7fcd7ab8
docs: change lite-server baseDir path to output folder ( #32164 )
...
In lite-server baseDir, path should be the output folder path, So need to change `baseDir="dist"` to `baseDir="dist/project-name"`
PR Close #32164
2019-08-27 15:53:37 -07:00
55eaa5fb6d
docs: Use ngOnInit to fetch data from services in the getting started guide ( #32273 )
...
Call data services inside ngOnInit interface implementation of components.
closes #32048
PR Close #32273
2019-08-27 09:08:25 -07:00
70cf8ed05d
docs: Fix typo in singleton-services.md page ( #32330 )
...
There is a typo in the first sentence of the singleton-service.md documentation page.
PR Close #32330
2019-08-27 09:07:18 -07:00
c7c7f9fbe8
style: align i18n angular config ( #32334 )
...
PR Close #32334
2019-08-27 09:06:51 -07:00
1cb62346e4
docs: update i18n docs sample to cater for latest raw-loader version ( #32334 )
...
`raw-loader` version 2+ which is used in the CLI version 8 introduced a breaking change and now uses `export default` instead of `module.exports`.
See: https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md#200-2019-03-18
Closes #32333
PR Close #32334
2019-08-27 09:06:51 -07:00
3a4839c97e
docs: reference articles specifically ( #32221 )
...
PR Close #32221
2019-08-26 15:03:04 -07:00
82abbecddf
docs: add links to web.dev sw articles ( #32221 )
...
resolves issue 32218
PR Close #32221
2019-08-26 15:03:04 -07:00
860b5d0efa
docs: convert Ivy opt-in doc to opt-out ( #31858 )
...
PR Close #31858
2019-08-26 12:23:07 -07:00
9bc9685911
docs: fix typo in compiler options guide ( #32312 )
...
PR Close #32312
2019-08-26 11:47:39 -07:00
cf4b944865
refactor(core): remove misc dom utils from DomAdapters ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
24127a2492
refactor(core): remove misc, completely unused functions from DomAdapter ( #32278 )
...
PR Close #32278
2019-08-26 10:39:09 -07:00
25f31f2a14
docs: Update the aria-valuemax attr of the sample ( #32261 )
...
In order to be the same value as the one use here : https://stackblitz.com/edit/angular-kn5jdi?file=src%2Fapp%2Fprogress-bar.ts
PR Close #32261
2019-08-26 10:21:09 -07:00
ae9960be53
docs: remove universalProject option from app shell docs ( #32281 )
...
This option has been deprecated in verson 9 as it has no effect
https://github.com/angular/angular-cli/pull/15394
PR Close #32281
2019-08-26 09:40:07 -07:00
c7f4d500db
build(docs-infra): upgrade cli command docs sources to 59722208a ( #32297 )
...
Updating [angular#master](https://github.com/angular/angular/tree/master ) from [cli-builds#master](https://github.com/angular/cli-builds/tree/master ).
##
Relevant changes in [commit range](70e761c12...59722208a
):
**Modified**
- help/generate.json
##
PR Close #32297
2019-08-26 09:33:49 -07:00
e188c9703c
docs: fix animations reference links to api pages ( #32267 )
...
The automated links for state() and group() are currently going to the
wrong api pages. Edit directs them to the correct animations api pages.
PR Close #32267
2019-08-26 09:31:24 -07:00
b9fbd9bb03
docs: fix wrong HttpEventType of HttpResponse class ( #32296 )
...
PR Close #32296
2019-08-26 09:28:56 -07:00
a58a5fd7bb
build(docs-infra): upgrade cli command docs sources to 70e761c12 ( #32285 )
...
Updating [angular#master](https://github.com/angular/angular/tree/master ) from [cli-builds#master](https://github.com/angular/cli-builds/tree/master ).
##
Relevant changes in [commit range](d2489aeda...70e761c12
):
**Modified**
- help/add.json
- help/deploy.json
- help/generate.json
##
PR Close #32285
2019-08-23 11:02:53 -07:00
9bb5f05cb9
docs: fix http example to use correct property ( #32288 )
...
Fixes #31814
PR Close #32288
2019-08-23 09:02:05 -07:00
21bb74d16f
docs: improve structure ( #32227 )
...
PR Close #32227
2019-08-22 13:29:48 -07:00
1d1ab37546
docs: fix typo ( #32227 )
...
PR Close #32227
2019-08-22 13:29:48 -07:00
a00824c986
docs: restructure the ng deploy section ( #32227 )
...
PR Close #32227
2019-08-22 13:29:48 -07:00
d5aca7ef51
docs: address comments in the ng deploy guide ( #32227 )
...
PR Close #32227
2019-08-22 13:29:47 -07:00
47cc92f004
docs: fix broken links to deployment packages ( #32227 )
...
PR Close #32227
2019-08-22 13:29:47 -07:00
e21e01ca22
docs: add ng deploy to the deployment guide ( #32227 )
...
PR Close #32227
2019-08-22 13:29:47 -07:00
21edc6a82e
docs: update http guide ( #32045 )
...
PR Close #32045
2019-08-22 06:39:56 -07:00
b85ac03136
docs(upgrade): position old setup guide as legacy until it can be removed ( #32193 )
...
PR Close #32193
2019-08-21 15:20:48 -07:00