Pete Bacon Darwin
5bb9f64218
fixup! feat(aio): allow template to position embedded ToC ( #22565 )
...
PR Close #22565
2018-03-05 10:14:16 -08:00
Pete Bacon Darwin
405d97431f
fixup! feat(aio): allow template to position embedded ToC ( #22565 )
...
PR Close #22565
2018-03-05 10:14:16 -08:00
Pete Bacon Darwin
41064fcb36
fix(aio): reposition and simplify github links ( #22565 )
...
Closes #22379
PR Close #22565
2018-03-05 10:14:16 -08:00
Pete Bacon Darwin
b80fd6be58
build(aio): render whether API classes and members are abstract ( #22563 )
...
Closes #22537
PR Close #22563
2018-03-05 10:13:43 -08:00
SangKa.Z
3aea8fd5f3
docs(aio): fix table header ( #22553 )
...
PR Close #22553
2018-03-05 10:13:16 -08:00
Pete Bacon Darwin
b64139650c
build(aio): class API template once again extends export-base ( #22534 )
...
PR Close #22534
2018-03-05 10:12:55 -08:00
Pete Bacon Darwin
1d2bdcb4d0
build(aio): render param descriptions for function exports ( #22534 )
...
Closes #22501
PR Close #22534
2018-03-05 10:12:55 -08:00
Pete Bacon Darwin
12be311618
fix(aio): remove all links from toc titles ( #22533 )
...
The previous approach just removed the first `a` tag that
was found, but now that the header-link anchor is not at
the start of the heading, it could fail.
Closes #22493
PR Close #22533
2018-03-05 10:12:35 -08:00
Zhicheng Wang
206f6ecc4f
fix: 修正最后一版的全部翻译
2018-03-04 09:07:33 +08:00
Zhicheng Wang
585e377fa8
fix: 处理单 html tag 行的翻译问题
2018-03-03 21:05:33 +08:00
Zhicheng Wang
757526a6ed
fix: 当存在多个翻译时,自动使用最近的一个
2018-03-03 17:53:33 +08:00
Zhicheng Wang
a9132302fd
fix: 支持拆分标题行 "# xxx"
2018-03-03 17:47:09 +08:00
Zhicheng Wang
e6ede6bded
fix: 自动翻译了 http.md
2018-03-03 12:34:00 +08:00
Zhicheng Wang
80e318584a
feat: 批量翻译目录下的所有 markdown 文件
2018-03-03 12:00:01 +08:00
Zhicheng Wang
7f04568b62
fix: 翻译完 forms.md
2018-03-03 11:48:01 +08:00
Zhicheng Wang
eb73ad0027
feat: 抽取 html 标签包裹的单行文本(通常出现于表格中)
2018-03-03 11:45:03 +08:00
Zhicheng Wang
b8400fad7c
feat: 三行简化为两行
...
refactor: 抽取出工具函数
2018-03-03 11:01:57 +08:00
Zhicheng Wang
19f4ad46ae
refactor: extract checker functions
2018-03-03 08:13:52 +08:00
Zhicheng Wang
c2f0045a5e
feat: 只根据核心字符比较
...
feat: 处理列表和标题等不必紧跟换行符的格式
2018-03-02 14:25:07 +08:00
Zhicheng Wang
ee97046824
chore: 测试断言改为中文
2018-03-02 08:08:39 +08:00
Zhicheng Wang
0dbc49c7cc
feat: 提供根据字典翻译功能
2018-03-02 07:55:44 +08:00
Pete Bacon Darwin
0e311e3918
build(aio): improve accuracy of code auto-linking ( #22494 )
...
The new version of `dgeni-packages/typescript` no longer strips
out "namespaces" from types, which was part of the problem of
not autolinking correctly to `HttpEventType.Response`.
Another part of the problem was that we did not include `.`
characters when matching potential code blocks for auto-linking,
which precluded properties of enums from being linked.
Finally, members we not being given a `path` property, which is
needed to effectively autolink to them. This is now set in
the `simplifyMemberAnchors` processor.
Closes #21375
PR Close #22494
2018-03-01 08:11:19 -08:00
Pete Bacon Darwin
997b30a093
build(aio): move link disambiguation from getLinkInfo
to getDocFromAlias
( #22494 )
...
The disambiguation needs to be done earlier so that the auto-link-code
post-processor can benefit from it.
PR Close #22494
2018-03-01 08:11:19 -08:00
Pete Bacon Darwin
94707fe795
build(aio): initialise exampleMap
correctly ( #22502 )
...
The `exampleMap` needs to hold an hash object for each
of the `collectExamples.exampleFolders` paths.
Previously these hash objects were only created if there
was actually an example file the hash's respective
example folder. This could cause crashes during
`yarn docs-watch` (and so also `yarn sync-and-serve`)
if no examples were read in for a particular run of
the doc-gen.
PR Close #22502
2018-03-01 08:10:15 -08:00
Zhicheng Wang
40bd48bb2a
refactor: move to tools/translator
2018-03-01 22:35:54 +08:00
Zhicheng Wang
6642b82445
fix: heads in original and translation must be same level
2018-03-01 22:28:13 +08:00
Zhicheng Wang
53a7a4cbf5
feat: add auto checker
...
fix: some translations found by auto checker
2018-03-01 22:19:59 +08:00
Zhicheng Wang
1b786e0a72
feat: 中英字典收集工具
2018-03-01 20:25:40 +08:00
Zhicheng Wang
6120300d4a
feat: 中英字典收集工具
2018-03-01 20:09:22 +08:00
Kapunahele Wong
c82cef8bc6
docs: fix dynamic component loader example ( #22181 )
...
closes #21903
PR Close #22181
2018-02-28 10:46:37 -08:00
Pete Bacon Darwin
7d65356ae3
build(aio): add @usageNotes
tag def for API docs ( #22401 )
...
PR Close #22401
2018-02-28 10:43:27 -08:00
Pete Bacon Darwin
11f30fc351
style(aio): add newline between test blocks ( #22401 )
...
PR Close #22401
2018-02-28 10:43:27 -08:00
Pete Bacon Darwin
b107131f8a
build(aio): split the description property in API docs ( #22401 )
...
* The first paragraph is now split off into the `shortDescription` property.
* Usage of `howToUse` and `whatItDoes` have been updated.
* The "Overview" heading for class is removed as it is self-evident
* The original horizontal rule styling below the main heading is removed as not part of the new design
Closes #22385
PR Close #22401
2018-02-28 10:43:27 -08:00
Pete Bacon Darwin
11264e2174
fix(aio): remove heading border ( #22401 )
...
PR Close #22401
2018-02-28 10:43:27 -08:00
Pete Bacon Darwin
b924ce3a62
build(aio): add processor to migrate legacy tags @whatItDoes
and @howToUse
( #22401 )
...
See https://github.com/angular/angular/issues/22135#issuecomment-367632372
PR Close #22401
2018-02-28 10:43:27 -08:00
Pete Bacon Darwin
e75f0cee18
build(aio): deprecate @howToUse
and @whatItDoes
tags ( #22401 )
...
See https://github.com/angular/angular/issues/22135#issuecomment-367632372
PR Close #22401
2018-02-28 10:43:27 -08:00
Zhicheng Wang
89060a39df
fix: 不正常的中英文段落合并
2018-02-28 13:44:53 +08:00
Zhicheng Wang
6b1d4a4890
fix: HttpModule => HttpClientModule
2018-02-28 13:22:43 +08:00
Zhicheng Wang
cacdf7b564
fix: 修正多行合并到一起的错误
2018-02-28 13:20:10 +08:00
Zhicheng Wang
f248973faa
fix: polyfills 译为腻子脚本
2018-02-28 13:17:39 +08:00
Zhicheng Wang
c08a3830df
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/bootstrapping.md
# aio/content/guide/browser-support.md
# aio/content/guide/change-log.md
# aio/content/guide/component-styles.md
# aio/content/guide/deployment.md
# aio/content/guide/forms.md
# aio/content/guide/glossary.md
# aio/content/guide/http.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/ngmodule.md
# aio/content/guide/pipes.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/router.md
# aio/content/guide/security.md
# aio/content/guide/set-document-title.md
# aio/content/guide/setup-systemjs-anatomy.md
# aio/content/guide/setup.md
# aio/content/guide/testing.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/upgrade.md
# aio/content/marketing/docs.md
# aio/content/marketing/features.html
# aio/content/marketing/resources.json
# aio/content/navigation.json
# aio/src/app/layout/doc-viewer/doc-viewer.component.ts
2018-02-28 13:13:29 +08:00
Pete Bacon Darwin
83b32a0a0a
build(aio): render heading anchors on the right
...
This approach simplifies the styling needed considerably.
Previously, we had to make room on the left for heading that
are in visual containers. Also we had to apply a `float:right`
when on narrow screens as the gutter not available then.
This float didn't render nicely if the heading text was longer
than could be rendered on a single line.
Closes #22131
2018-02-27 18:32:32 -08:00
Zhicheng Wang
1531b0610d
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/attribute-directives.md
# aio/content/guide/bootstrapping.md
# aio/content/guide/browser-support.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/form-validation.md
# aio/content/guide/forms.md
# aio/content/guide/glossary.md
# aio/content/guide/http.md
# aio/content/guide/i18n.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/structural-directives.md
# aio/content/guide/template-syntax.md
# aio/content/guide/testing.md
# aio/content/marketing/index.html
# 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/src/app/embedded/api/api-list.component.ts
# aio/src/app/layout/doc-viewer/doc-viewer.component.ts
# aio/src/app/layout/footer/footer.component.html
# aio/src/app/layout/toc/toc.component.html
# aio/src/app/search/search.service.ts
# aio/src/styles/1-layouts/_marketing-layout.scss
# aio/yarn.lock
2018-02-28 08:08:59 +08:00
George Kalpakas
142117f6bb
fix(aio): do not show Properties/Methods sections if only internal members ( #22471 )
...
PR Close #22471
2018-02-27 15:17:22 -08:00
Jason Aden
79656e7f96
docs(aio): add Observable and Rx docs ( #21423 )
...
PR Close #21423
2018-02-27 11:24:31 -08:00
George Kalpakas
d100f1b187
build(aio): fix API docs breadcrumbs ( #22446 )
...
This also prevents some extra `<a>` elements inserted by the browser's
trying to fix the HTML structure, which also fixes the `.header-link`
added in ToC.
Fixes #22387
Closes #22437
PR Close #22446
2018-02-27 07:08:07 -08:00
Pete Bacon Darwin
4bd3e5f92f
build(aio): do not render "constructor()" heading in API docs ( #22380 )
...
Closes #22363
PR Close #22380
2018-02-27 07:07:16 -08:00
haoRchen
3f3be429c9
style(aio): updated padding-right for the .alert class in _heading-anchors.scss ( #22431 )
...
The h3 element is overflowing over its surrounding div element. Modified padding-right to align consistently with the remainder of div contents.
fixes : #22407
PR Close #22431
2018-02-26 17:52:29 -08:00
haoRchen
7e4c13f2de
style(aio): added padding-left to h3 in _subsection.scss ( #22431 )
...
The h3 element is overflowing over its surrounding div element. Modified padding-left to align consistently with the remainder of div contents.
fixes : #22407
PR Close #22431
2018-02-26 17:52:29 -08:00
Olivier Combe
82a791223c
docs: update i18n guide for projects that don't use the cli ( #21767 )
...
PR Close #21767
2018-02-26 17:51:58 -08:00