Peter Bacon Darwin
1279d75f7f
fix(aio): fix SearchService to work with TypeScript 2.4 ( #19511 )
...
The call to `race` required a type parameter to disambiguate the return type.
PR Close #19511
2017-10-06 11:56:40 -07:00
Zhicheng Wang
4308681d7b
fix: 修正编译错误
2017-10-03 12:49:09 +08:00
Zhicheng Wang
d7fd581c37
Merge branch 'master' into aio
...
# Conflicts:
# aio/content/guide/ajs-quick-reference.md
# aio/content/guide/animations.md
# aio/content/guide/browser-support.md
# aio/content/guide/form-validation.md
# aio/content/guide/i18n.md
# aio/content/guide/pipes.md
# aio/content/guide/router.md
# aio/content/guide/set-document-title.md
# aio/content/guide/structural-directives.md
# aio/content/guide/template-syntax.md
# aio/content/guide/testing.md
# aio/content/marketing/resources.json
# 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
2017-10-01 13:22:33 +08:00
Peter Bacon Darwin
5cd0d6ab25
fix(aio): relax search on titles further
...
This change will now match `ControlValueAccessor` for the query `accessor`.
Closes #18872
2017-09-12 13:56:49 -04:00
Peter Bacon Darwin
4a0466e574
feat(aio): include more API results in search
...
By adding a more relaxed search on the title
of docs, we are more likely to catch API docs.
The additional search terms match anything
with a word in the title that starts with the
characters of the first term in the search.
E.g. if the search is "ngCont guide" then
search for "ngCont guide titleWords:ngCont*"
2017-09-08 13:21:21 -04:00
Sam Blowes
1a9d382da9
fix(aio): align footer background image repeat ( #19035 )
...
Refs #17465
PR Close #19035
2017-09-05 15:34:35 -05:00
Peter Bacon Darwin
7ce9e06dab
fix(aio): do not redirect API pages on archive and next deployments ( #18791 )
...
PR Close #18791
2017-08-21 17:32:10 -05:00
Zhicheng Wang
0e1fa4581a
fix: a null point exception
2017-08-21 09:05:59 +08:00
Zhicheng Wang
de34171fa2
Merge remote-tracking branch 'origin/master' into aio
...
# Conflicts:
# aio/content/guide/aot-compiler.md
# aio/content/guide/change-log.md
# aio/content/guide/ts-to-js.md
# aio/content/marketing/docs.md
# aio/content/navigation.json
# aio/src/app/documents/document.service.ts
2017-08-20 19:39:38 +08:00
Georgios Kalpakas
60c803649b
test(aio): fix error logged during tests ( #18659 )
...
The fixed test expected there to be a doc version without a URL. This used to be
the case but not any more. As a result, an error was logged in the test output
(but no failure).
This commit fixes it by ensuring that a version without a URL exists.
PR Close #18659
2017-08-18 13:23:16 -05:00
Zhicheng Wang
5fef0dae9c
fix: minor improvement
2017-08-18 20:53:42 +08:00
Zhicheng Wang
255c410d5d
fix: minor improvement
2017-08-16 10:44:00 +08:00
Zhicheng Wang
e99af93a24
fix: can't update title with translation result
...
fix: display h1 as block element
2017-08-16 09:06:29 +08:00
Zhicheng Wang
f24553a6f8
fix: don't toggle translate-result in homepage
2017-08-16 07:39:03 +08:00
Ward Bell
697c6ed0fe
docs: remove TypeScript to JavaScript guide & sample
2017-08-15 16:31:31 -07:00
Georgios Kalpakas
38addacda0
build(aio): switch from @angular/http
to @angular/common/http
...
```
$ ls -l dist/*.js
14942 dist/0.b19e913fbdd6507d346b.chunk.js
1535 dist/inline.a1b446562b36eebb766d.bundle.js
524385 (+ 682) dist/main.19fec4390ff7837ee6ef.bundle.js
37402 dist/polyfills.9f7e0e53bce2a6c8326e.bundle.js
54001 dist/worker-basic.min.js
632265 (+ 682) total
```
2017-08-15 15:13:47 -07:00
Zhicheng Wang
1d757f330b
fix: don't toggle translate-result
2017-08-15 23:14:00 +08:00
Georgios Kalpakas
6fb5250185
ci(aio): fix deploying the stable branch to Firebase
...
The `deploy-to-firebase.sh` always expects there to be a
`src/extra-files/<mode>` directory and breaks if it doesn't exist.
2017-08-09 14:18:33 -07:00
Zhicheng Wang
a70679fb5a
fix: "toggle origin" can not apply to the children of translation result
...
refactor: extract to standalone functions
2017-08-08 21:29:23 +08:00
Zhicheng Wang
a6df16f891
Merge branch 'master' into aio
...
# Conflicts:
# aio/content/guide/form-validation.md
# aio/content/guide/i18n.md
# aio/content/guide/reactive-forms.md
# aio/content/marketing/index.html
# aio/content/navigation.json
# aio/src/environments/environment.stable.ts
2017-08-08 13:10:17 +08:00
Zhicheng Wang
7e5fb1d5fa
fix: minor improvement
2017-08-06 13:47:26 +08:00
Zhicheng Wang
de6cfeeee3
clean: remove useless codes
2017-08-06 13:42:51 +08:00
Zhicheng Wang
0eaf9156de
fix: use new translation logic
2017-08-06 13:37:25 +08:00
Peter Bacon Darwin
340837aa46
feat(aio): add "archive" and "next" color themes
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
42ef1be75c
feat(aio): redirect marketing pages to docs
if deploy mode is archive
...
See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
a5801b6020
feat(aio): add deploy mode to version picker
...
See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
70b62949de
feat(aio): enable deployment mode to be set via URL query
...
The deployment mode set from the environment provided at build time;
or overridden by the `mode` query parameter: e.g. `...?mode=archive`
See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
36161d99f6
feat(aio): update UI based on deployment mode
...
* Add a banner if the mode is "archive"
* Add a `mode-...` class to the `aio-shell` element to enable
mode based theming.
See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
0714139e37
ci(aio): include extra files in AIO deployment based on mode
...
Any files that are inside the `extra-files/{mode}` folder
will be copied over to the `dist` folder before deployment
to Firebase.
See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
bcb36d9b6d
ci(aio): compute AIO deployment mode
...
There are now 3 modes for deployment: next, stable, archive.
We compute which mode (and other deployment properties)
from the `TRAVIS_BRANCH` and the `STABLE_BRANCH`.
If the TRAVIS_BRANCH is master we deploy as "next".
Otherwise if the branch is the highest of its minor versions
we deploy as "stable" if the `TRAVIS_BRANCH` matches the `STABLE_BRANCH` or
else "archive".
For "archive" deployments we compute the firebase project and deployment
url based on the major version of the `TRAVIS_BRANCH`.
As well as choosing where to deploy the build, we also use this
to select the environment file for the AIO Angular app.
This will enable the app to change its rendering and behaviour
based on its mode.
See #18287
2017-08-04 09:13:34 -07:00
Zhicheng Wang
8f950c26f2
fix: change v2's link to v2.angular.cn
2017-08-03 15:30:35 +08:00
Zhicheng Wang
2a0c436347
fix: translate more
...
fix: a NPE
2017-08-01 13:05:28 +08:00
Zhicheng Wang
92a739099d
fix: a NPE
2017-07-31 09:29:32 +08:00
Zhicheng Wang
1ec5c6a82f
fix: minor improvements
2017-07-30 17:40:53 +08:00
Zhicheng Wang
f2a9db82c0
fix: translate more content
2017-07-30 16:52:20 +08:00
Zhicheng Wang
855dc19bdd
fix: replace gaId with angular.cn's
2017-07-30 16:23:40 +08:00
Zhicheng Wang
2c9e783817
fix: translate homepage.
2017-07-30 14:29:26 +08:00
Zhicheng Wang
3fe722490a
fix: don't hide translation-origin if there is not translation-result
...
fix: translate more.
2017-07-30 14:10:08 +08:00
Zhicheng Wang
747ea2a287
fix: retranslate navigation
2017-07-30 13:35:27 +08:00
Zhicheng Wang
f2059b445c
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.md
# aio/content/guide/attribute-directives.md
# aio/content/guide/bootstrapping.md
# aio/content/guide/browser-support.md
# aio/content/guide/cb-index.md
# aio/content/guide/change-log.md
# aio/content/guide/cheatsheet.md
# aio/content/guide/cli-quickstart.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.md
# aio/content/guide/deployment.md
# aio/content/guide/displaying-data.md
# aio/content/guide/dynamic-component-loader.md
# aio/content/guide/dynamic-form.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/index.md
# aio/content/guide/learning-angular.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/ngmodule.md
# aio/content/guide/npm-packages.md
# aio/content/guide/pipes.md
# aio/content/guide/quickstart.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/router.md
# aio/content/guide/security.md
# aio/content/guide/server-communication.md
# aio/content/guide/set-document-title.md
# aio/content/guide/setup-systemjs-anatomy.md
# aio/content/guide/setup.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/ts-to-js.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/upgrade.md
# aio/content/guide/user-input.md
# aio/content/guide/visual-studio-2015.md
# aio/content/guide/webpack.md
# aio/content/navigation.json
# aio/content/tutorial/index.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/package.json
# aio/src/styles/main.scss
# aio/transforms/angular.io-package/index.js
2017-07-30 00:09:50 +08:00
Zhicheng Wang
9db14beb5d
feat: add documents of "About Chinese version"
2017-07-29 13:42:14 +08:00
Zhicheng Wang
a5fc2f430c
feat: add translator
2017-07-29 07:56:17 +08:00
Georgios Kalpakas
0fb7484d51
refactor(aio): move content-specific images to content/images/
...
Fixes #17053
2017-07-28 15:06:49 -07:00
Georgios Kalpakas
6a3454e81e
refactor(aio): rename unused
directories to _unused
2017-07-28 15:06:49 -07:00
Georgios Kalpakas
24117d7a49
refactor(aio): move unused images to unused
directories
...
This prevents the ServiceWorker from prefetching unnecessary files.
2017-07-28 15:06:49 -07:00
Jeremy Elbourn
1bfc77bf8c
docs(aio): pngcrush all pngs ( #18243 )
...
PR Close #18243
2017-07-20 17:47:06 -05:00
Pete Bacon Darwin
4cd4f7a208
aio: debounce search and delay index building ( #18134 )
...
* feat(aio): debounce search requests
* feat(aio): delay loading search worker and index
2017-07-20 09:51:40 -07:00
Peter Bacon Darwin
7d0f2cd51e
fix(aio): remove title attribute from CodeExampleComponent
...
This was causing browser to add an unwanted tooltip that appeared
when the user hovers over the code.
See #17524
2017-07-18 17:55:28 +01:00
Georgios Kalpakas
92179bcc64
fix(aio): do not wrap <code-tabs>
tab labels
...
Fixes #17751
2017-07-18 17:43:59 +01:00
Peter Bacon Darwin
cdb069ab0e
docs(aio): fix cheatsheet layout for narrow screens
...
* Tell the app that this will have no Table of Contents, since we have no
h2 headings anyway.
* Remove all the `nbsp;` from the code since that doesn't help with layout
* Remove side padding from sidenav-content when screen is narrow
* Restyle the cheatsheet table when the screen is narrow
2017-07-18 17:32:43 +01:00