WilliamKoza
b2a6bf2a80
fix(docs-infra): remove the try catch in the test of the browser's capacities ( #28368 )
...
PR Close #28368
2019-02-05 23:44:56 -05:00
WilliamKoza
0709f8411d
feat(docs-infra): add debouncing in storing scroll position ( #28368 )
...
There is no debouncing when we store the scroll Position.
Currently, we have a message in the console after a while:
>Throttling history state changes to prevent the browser from hanging
see: https://bugs.chromium.org/p/chromium/issues/detail?id=786211 for more informations
PR Close #28368
2019-02-05 23:44:55 -05:00
WilliamKoza
3d522716c4
fix(docs-infra): remove polyfill web-animations since we use Angular > 6 and we don't use AnimationBuilder
( #28514 )
...
PR Close #28514
2019-02-04 14:54:25 -05:00
Jeremy Elbourn
ec6e7303dd
perf: pngcrush all pngs ( #28479 )
...
This is the result of running
```sh
find ./ -iname "*.png" -exec pngcrush -brute -ow -- {} \;
```
[Summary of size reductions](https://docs.google.com/spreadsheets/d/12Qgx7DfKabWw0PJza6ozC1kCHTofi6wyBLWGtwLW7G4/preview )
Last done in July, 2017 in #18243
PR Close #28479
2019-02-01 13:56:02 -05:00
WilliamKoza
b87bf39eb4
fix(docs-infra): add hamburger button to CLI COMMANDS section ( #28418 )
...
Currently, when we navigate in the `CLI COMMANDS` section, the "hamburger button" isn't present because the class css `folder-cli` is missing.
This PR add this class in order to show this button when we are in this section.
PR Close #28418
2019-01-29 11:48:33 -08:00
George Kalpakas
9d81bd39ca
refactor(docs-infra): get rid of on
component input ( #26947 )
...
Compiling with Ivy doesn't seem to allow input names starting with `on`.
PR Close #26947
2019-01-28 14:01:12 -08:00
WilliamKoza
f7c551e16b
fix(docs-infra): upgrade codelyzer to 4.5.0 ( #28389 )
...
PR Close #28389
2019-01-28 11:51:56 -08:00
Carlos Schneider
02975e9166
docs(docs-infra): show top menu at 992px screen width ( #26418 )
...
Show top menu at 992px screen width. The JS expression was checking just for screen widths
strictly greater than 992px to show the menu, while the CSS media query was showing the hamburger
icon just for screen widths strictly smaller than 992px, so there was a gap of 1px that the user
could't navigate through the top menu.
closes #24324
PR Close #26418
2019-01-24 10:26:54 -08:00
WilliamKoza
3414316fc8
feat(docs-infra): saves the scroll position before the change of location ( #28037 )
...
Issue #27916 , #17308
PR Close #28037
2019-01-24 10:24:43 -08:00
George Kalpakas
67a41d8bff
fix(docs-infra): align property names to the top ( #28104 )
...
This looks better when the property descriptions span multiple lines;
especially when scrolling to a specific property (e.g.
[AbstractControl#status][1]).
[1]: https://next.angular.io/api/forms/AbstractControl#status
PR Close #28104
2019-01-24 10:24:03 -08:00
George Kalpakas
e50c5293fc
refactor(docs-infra): remove unused CSS style rule ( #28104 )
...
The `.properties-table` selector does not match any element and the
styles don't look relevant for the similarly named `.property-table`
class.
PR Close #28104
2019-01-24 10:24:03 -08:00
WilliamKoza
351ef2a6de
fix(docs-infra): removal of the use of the ChildNode.remove() method that it isn't supported by IE ( #28188 )
...
fixes #28177
PR Close #28188
2019-01-22 09:48:19 -08:00
WilliamKoza
5b08a880f7
style(docs-infra): Active tslint rule semicolon
( #28282 )
...
PR Close #28282
2019-01-22 09:38:44 -08:00
WilliamKoza
50cf2ac6d8
fix(docs-infra): improve a11y ( #28086 )
...
Issue #27723
PR Close #28086
2019-01-16 17:37:45 -08:00
WilliamKoza
4c0104c846
fix(docs-infra): Add crossed through styling ( #28111 )
...
PR Close #28111
2019-01-14 10:45:46 -08:00
WilliamKoza
d577b8df75
fix(docs-infra): render deprecated
markers for CLI command options ( #28111 )
...
fixes #27563
fixes #27423
PR Close #28111
2019-01-14 10:45:46 -08:00
Pete Bacon Darwin
cd51775390
build(docs-infra): render @see
information in members ( #28069 )
...
Previously `@see` tags were only rendered for top level class-like
docs. Now these tags are rendered for methods and properties too.
PR Close #28069
2019-01-11 14:35:23 -08:00
Adam Plumer
a100472b5d
build: bump year ( #27880 )
...
PR Close #27880
2019-01-11 11:15:59 -08:00
Paul Gschwendtner
c7d1890aaa
build: remove travisci leftovers ( #27979 )
...
PR Close #27979
2019-01-09 10:41:16 -08:00
WilliamKoza
c7346bfdba
fix(aio): Treating some deprecated ( #27981 )
...
PR Close #27981
2019-01-09 10:39:25 -08:00
Zhicheng WANG
171d949d10
fix: 准备换基于 Prerender 库的 prerender 方式
2019-01-05 08:40:10 +08:00
Zhicheng WANG
84fd1e2ee6
fix: rename find-missing-translations
to debug
2019-01-04 15:53:37 +08:00
Zhicheng WANG
d33259520b
fix: don't swap when loading
2019-01-01 21:53:07 +08:00
Zhicheng WANG
8744f17f5d
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/content/cli/index.md
# aio/content/file-not-found.md
# aio/content/guide/architecture-modules.md
# aio/content/guide/architecture-services.md
# aio/content/guide/build.md
# aio/content/guide/deployment.md
# aio/content/guide/elements.md
# aio/content/guide/feature-modules.md
# aio/content/guide/file-structure.md
# aio/content/guide/forms-overview.md
# aio/content/guide/glossary.md
# aio/content/guide/i18n.md
# aio/content/guide/npm-packages.md
# aio/content/guide/releases.md
# aio/content/guide/router.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/service-worker-intro.md
# aio/content/guide/testing.md
# aio/content/guide/upgrade-performance.md
# aio/content/navigation.json
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt5.md
# aio/content/tutorial/toh-pt6.md
# aio/package.json
# aio/src/app/custom-elements/api/api-list.component.ts
# aio/src/app/documents/document.service.ts
# aio/src/app/layout/top-menu/top-menu.component.ts
# aio/src/index.html
# aio/src/styles/2-modules/_api-pages.scss
# aio/tools/transforms/templates/api/base.template.html
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/tools/transforms/templates/cli/cli-container.template.html
# aio/tools/transforms/templates/lib/githubLinks.html
# aio/yarn.lock
# packages/animations/src/animation_metadata.ts
# packages/common/http/src/backend.ts
# packages/common/http/src/client.ts
# packages/common/http/src/headers.ts
# packages/common/http/src/interceptor.ts
# packages/common/http/src/module.ts
# packages/common/http/src/params.ts
# packages/common/http/src/request.ts
# packages/common/http/src/response.ts
# packages/common/src/common_module.ts
# packages/common/src/directives/ng_class.ts
# packages/common/src/directives/ng_style.ts
# packages/common/src/directives/ng_switch.ts
# packages/common/src/i18n/format_date.ts
# packages/common/src/pipes/number_pipe.ts
# packages/core/src/change_detection/change_detection_util.ts
# packages/core/src/change_detection/pipe_transform.ts
# packages/core/src/di/injectable.ts
# packages/core/src/linker/element_ref.ts
# packages/core/src/linker/template_ref.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/directives.ts
# packages/core/src/metadata/lifecycle_hooks.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render/api.ts
# packages/forms/src/directives/form_interface.ts
# packages/forms/src/directives/ng_form.ts
# packages/forms/src/directives/ng_model.ts
# packages/forms/src/directives/reactive_directives/form_control_name.ts
# packages/forms/src/directives/select_control_value_accessor.ts
# packages/forms/src/directives/validators.ts
# packages/forms/src/form_builder.ts
# packages/forms/src/form_providers.ts
# packages/forms/src/model.ts
# packages/forms/src/validators.ts
# packages/platform-browser/src/browser.ts
# packages/platform-browser/src/security/dom_sanitization_service.ts
# packages/router/src/config.ts
# packages/router/src/events.ts
# packages/router/src/router.ts
# packages/router/src/router_module.ts
# packages/router/src/shared.ts
2018-12-29 16:04:37 +08:00
Igor Minar
69198ba37b
build(docs-infra): turn on disableTypeScriptVersionCheck in angularCompilerOptions ( #27536 )
...
We need to do this because we don't yet have a released version of angular
with typescript 3.2 support and on CI we test both against the snapshot and
whatever is in aio/yarn.lock.
Once we have the next rc or a stable relase we should be able to remove
this flag.
PS: I also removed the preserveWhitespace:false because that's the default now.
PR Close #27536
2018-12-18 13:20:02 -08:00
Igor Minar
cdfe8f4d69
fix(docs-infra): workaround for broken 'import as' ( #27536 )
...
It's unclear why `import as` results in the aliases to be undefined.
Plain tsc seems to do the right thing and emits the correct code, so it
might be some kind of interaction in @angular/cli or webpack that are
causing the failure.
This should be investigated separately from the tsc update in
angular/angular. See angular/angular-cli#13212
PR Close #27536
2018-12-18 13:20:01 -08:00
Esteban Marin
e3a2ca5ad9
fix(docs-infra): fix top menu item clickable area ( #27633 )
...
the clickable region of the top menu item is expanded beyond the focused area, so the clickable area is spans the entire height of the navigation
fixes #27618
PR Close #27633
2018-12-13 11:00:34 -08:00
Esteban Marin
fc6dc78fe9
fix(docs-infra): fix top menu item clickable area ( #27620 )
...
the clickable region of the top menu item is reduced to the focused area, so no cursor pointer is shown outside the clickable area
fixes #27618
PR Close #27620
2018-12-12 10:55:28 -08:00
George Kalpakas
4b5cd721c1
refactor(docs-infra): remove unused custom element ( #27250 )
...
PR Close #27250
2018-12-05 13:26:27 -08:00
George Kalpakas
6abbaaed89
fix(docs-infra): do not use an Angular element in hard-coded FETCH_ERROR
document ( #27250 )
...
The `FETCH_ERROR` document is used when we are unable to retrieve a
document (except for 404 errors), which includes when there is no
internet connection. Using the `<current-location>` element in the
document's template to show the path of the page we failed to retrieve
assumes that the element's bundle is available (e.g. cached by the SW)
or can be fetched from the server.
When none of these conditions is met, the `DocViewer` is unable to
prepare the document and fails, never showing the `FETCH_ERROR` page to
the user.
Furthermore, the path we are looking to retrieve via
`<current-location>` is essentially the document ID, which we already
have. Thus, loading and instantiating a whole component just for that is
overkill.
This commit addresses both issues by getting rid of the
`<current-location>` component and directly embedding the document ID
into the `FETCH_ERROR` content.
PR Close #27250
2018-12-05 13:26:27 -08:00
George Kalpakas
dfdc2adbc6
fix(docs-infra): fix sidenav positioning when notification is shown ( #27250 )
...
_Before:_

_After:_

PR Close #27250
2018-12-05 13:26:27 -08:00
George Kalpakas
fa0c65efe5
build(docs-infra): remove dependency on FontAwesome ( #27250 )
...
We were only using two FontAwesome icons (`link` and `twitter`). The
twitter icon is already available as an SVG (used in the topbar) and a
similar link icon is available via 'Material Icons', which we are
already brining in.
This commit removes the dependency on FontAwesome and uses the available
icons instead.
_Before:_

_After:_

PR Close #27250
2018-12-05 13:26:27 -08:00
George Kalpakas
271fcb0f3e
fix(docs-infra): correctly cache footer image by the SW ( #27250 )
...
When using relative paths for CSS resources (such as background images),
`@angular/cli` will move them to the root `dist/` directory (and update
the paths in CSS accordingly). This results in the SW being unable to
cache the resource, because it is not where it expects it to be.
This commit fixes this issue for the footer background image, by using
an absolute path for the URL. (It also removes an unused style that
would have been affected by the same issue.)
PR Close #27250
2018-12-05 13:26:27 -08:00
George Kalpakas
af952cad62
fix(docs-infra): ensure material icons are cached for offline access ( #27250 )
...
In order for 'Material Icons' to work offline, their `.woff2` file needs
to have been cached by the SW. This file is not requested by the
browser, until an element needs to use the icon font.
In order to speed up the initial page load and avoid FOUC, we use
inlined SVGs for all icons in the app shell. As a result, the `.woff2`
file may not be requested, when a user visits angular.io. If they go
offline before visiting a page that does actually use 'Material Icons',
then such icons will not work correctly (e.g. the `error_outline` icon
used in the error page for failed requests due to network
unanvailability).
This commit fixes this, by adding a non-visible element that needs the
'Material Icons' font on the main component. Thids ensures that the
`.woff2` file will always be loaded, even if the page does not use any
material icons.
(Note: The element is inserted lazily to avoid affecting the initial
rendering.)
PR Close #27250
2018-12-05 13:26:27 -08:00
George Kalpakas
27b196f585
fix(docs-infra): remove hard-coded color from inlined SVG icons ( #27250 )
...
This allows the icons to inherit the color of their HTMLElement parent.
PR Close #27250
2018-12-05 13:26:27 -08:00
George Kalpakas
2adf03e54a
fix(docs-infra): inline SVG icons used in page load sensitive UI ( #27250 )
...
These icons are part of the app shell and used on every load (on both
desktop and mobile). Inlining them ensures they are rendered asap.
PR Close #27250
2018-12-05 13:26:26 -08:00
George Kalpakas
dca1535cb5
fix(docs-infra): always fetch Roboto font ( #27250 )
...
Previously, we did not load the Roboto font, instead relying on the user
to have it available on their system and falling back to different fonts
otherwise. This resulted in the page being styled slightly differently
for those people that didn't have the font installed locally.
PR Close #27250
2018-12-05 13:26:26 -08:00
George Kalpakas
33977a2ad5
refactor(docs-infra): move minified lunr
script to the generated
directory ( #27250 )
...
PR Close #27250
2018-12-05 13:26:26 -08:00
Zhicheng WANG
f4e35179ea
fix: allow code to auto wrap
2018-12-05 16:25:35 +08:00
onlyflix
4001bb44d2
fix(docs-infra): don't call setSearch when not clicking in the searchBox and no searchResults ( #26590 )
...
Fix to call locationService.setSearch less often to avoid unnecessary
downloading of favicons
Fixes #26544
PR Close #26590
2018-11-26 09:26:34 -08:00
Igor Minar
4f965ad2a1
test(docs-infra): remove reflect-metadata polyfill from aio tests ( #27130 )
...
v7 CLI includes the polyfill automatically whenever JIT compiler is used, so we don't need
to do it explicitly.
PR Close #27130
2018-11-16 12:17:44 -08:00
Zhicheng WANG
f31ef52623
fix: 高亮显示活动
2018-11-13 08:51:28 +08:00
Jonathan Sharpe
edb50a2f51
docs: override code formatting for CLI commands ( #26619 )
...
Closes 26614
PR Close #26619
2018-11-09 09:43:00 -08:00
Brandon Roberts
affcbbdd7e
feat(docs-infra): add getting started widgets ( #26059 )
...
PR Close #26059
2018-11-02 10:34:53 -07:00
Pete Bacon Darwin
18b6d580c5
fix(docs-infra): update overload rendering ( #24976 )
...
Based on the review here:
https://github.com/angular/angular/pull/24976#issuecomment-415535125
PR Close #24976
2018-11-01 14:17:11 -07:00
Pete Bacon Darwin
61cd5f7c0f
build(docs-infra): fix individual API overload templates ( #24976 )
...
* 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 #24976
2018-11-01 14:17:11 -07:00
Stefanie Fluin
6902977665
build(docs-infra): improve API overload templates ( #24976 )
...
PR Close #24976
2018-11-01 14:17:10 -07:00
Zhicheng Wang
deeeaa9647
docs: 修正坏链
2018-10-22 18:47:41 +08:00
Zhicheng Wang
a9ac90d3df
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/content/guide/ajs-quick-reference.md
# aio/content/guide/animations.md
# aio/content/guide/aot-compiler.md
# aio/content/guide/architecture-components.md
# aio/content/guide/architecture-modules.md
# aio/content/guide/architecture-next-steps.md
# aio/content/guide/architecture-services.md
# aio/content/guide/architecture.md
# aio/content/guide/attribute-directives.md
# aio/content/guide/bootstrapping.md
# aio/content/guide/browser-support.md
# aio/content/guide/cheatsheet.md
# aio/content/guide/comparing-observables.md
# aio/content/guide/component-interaction.md
# aio/content/guide/component-styles.md
# aio/content/guide/dependency-injection-in-action.md
# aio/content/guide/dependency-injection-pattern.md
# aio/content/guide/dependency-injection.md
# aio/content/guide/deployment.md
# aio/content/guide/displaying-data.md
# aio/content/guide/dynamic-component-loader.md
# aio/content/guide/elements.md
# aio/content/guide/feature-modules.md
# aio/content/guide/form-validation.md
# aio/content/guide/forms.md
# aio/content/guide/glossary.md
# aio/content/guide/hierarchical-dependency-injection.md
# aio/content/guide/i18n.md
# aio/content/guide/lazy-loading-ngmodules.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/ngmodule-vs-jsmodule.md
# aio/content/guide/ngmodules.md
# aio/content/guide/npm-packages.md
# aio/content/guide/observables-in-angular.md
# aio/content/guide/observables.md
# aio/content/guide/pipes.md
# aio/content/guide/practical-observable-usage.md
# aio/content/guide/providers.md
# aio/content/guide/quickstart.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/router.md
# aio/content/guide/rx-library.md
# aio/content/guide/security.md
# aio/content/guide/service-worker-communications.md
# aio/content/guide/service-worker-getting-started.md
# aio/content/guide/service-worker-intro.md
# aio/content/guide/setup-systemjs-anatomy.md
# aio/content/guide/setup.md
# aio/content/guide/singleton-services.md
# aio/content/guide/structural-directives.md
# aio/content/guide/styleguide.md
# aio/content/guide/template-syntax.md
# aio/content/guide/testing.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/universal.md
# aio/content/guide/updating.md
# aio/content/guide/upgrade.md
# aio/content/guide/user-input.md
# aio/content/guide/visual-studio-2015.md
# aio/content/marketing/docs.md
# aio/content/navigation.json
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt1.md
# aio/content/tutorial/toh-pt2.md
# aio/content/tutorial/toh-pt3.md
# aio/content/tutorial/toh-pt4.md
# aio/content/tutorial/toh-pt5.md
# aio/content/tutorial/toh-pt6.md
# aio/ngsw-manifest.json
# aio/package.json
# aio/src/app/custom-elements/api/api-list.component.html
# aio/src/app/custom-elements/api/api-list.component.ts
# aio/src/index.html
# aio/tools/transforms/templates/api/base.template.html
# aio/tools/transforms/templates/api/class.template.html
# aio/tools/transforms/templates/api/directive.template.html
# aio/tools/transforms/templates/api/enum.template.html
# aio/tools/transforms/templates/api/includes/class-overview.html
# aio/tools/transforms/templates/api/includes/deprecation.html
# aio/tools/transforms/templates/api/includes/export-as.html
# aio/tools/transforms/templates/api/includes/info-bar.html
# aio/tools/transforms/templates/api/includes/interface-overview.html
# aio/tools/transforms/templates/api/includes/selectors.html
# aio/tools/transforms/templates/api/lib/directiveHelpers.html
# aio/tools/transforms/templates/api/lib/githubLinks.html
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/tools/transforms/templates/api/package.template.html
# aio/yarn.lock
# packages/common/http/src/module.ts
# packages/common/src/common_module.ts
# packages/common/src/directives/ng_for_of.ts
# packages/common/src/directives/ng_if.ts
# packages/common/src/directives/ng_template_outlet.ts
# packages/common/src/location/location.ts
# packages/common/src/pipes/async_pipe.ts
# packages/common/src/pipes/json_pipe.ts
# packages/common/src/pipes/number_pipe.ts
# packages/common/src/pipes/slice_pipe.ts
# packages/core/src/change_detection/change_detector_ref.ts
# packages/core/src/di/injectable.ts
# packages/core/src/linker/template_ref.ts
# packages/core/src/linker/view_container_ref.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render/api.ts
# packages/forms/src/directives/form_interface.ts
# packages/forms/src/directives/ng_form.ts
# packages/forms/src/directives/ng_model.ts
# packages/forms/src/directives/reactive_directives/form_control_name.ts
# packages/forms/src/directives/select_control_value_accessor.ts
# packages/forms/src/directives/validators.ts
# packages/forms/src/form_providers.ts
# packages/forms/src/model.ts
# packages/forms/src/validators.ts
# packages/router/src/config.ts
# packages/router/src/router.ts
# packages/router/src/router_module.ts
# packages/router/src/router_state.ts
2018-10-21 17:43:29 +08:00
Pete Bacon Darwin
2a78dcbd5a
feat(docs-infra): remove stable & experimental from status selector ( #26595 )
...
PR Close #26595
2018-10-19 14:35:52 -07:00