Pete Bacon Darwin
c13901f4c8
build(docs-infra): remove stability labels from API docs ( #25453 )
...
PR Close #25453
2018-08-14 13:17:15 -07:00
Pete Bacon Darwin
6a2130117f
build(docs-infra): clean up API package template ( #25453 )
...
PR Close #25453
2018-08-14 13:17:15 -07:00
Pete Bacon Darwin
4e45f2c481
build(docs-infra): include packages in API template breadcrumbs ( #25453 )
...
PR Close #25453
2018-08-14 13:17:15 -07:00
Pete Bacon Darwin
78f477652e
build(docs-infra): change breadcrumb delimiter to `>` ( #25453 )
...
PR Close #25453
2018-08-14 13:17:15 -07:00
Zhicheng Wang
54a47e84dc
fix: 文字微调
2018-08-08 15:32:37 +08:00
Zhicheng Wang
d3f9534441
fix: point to angular.cn
2018-08-08 15:27:40 +08:00
Zhicheng Wang
cb84b1d1c6
feat: 汉化 API 模板
2018-08-08 15:15:56 +08:00
Eve
937641f462
修订语法
2018-08-08 10:26:44 +08:00
George Kalpakas
dc0715142f
test(docs-infra): log docs examples e2e spec paths to aid debugging ( #25293 )
...
It seems that occasionally the sharding of docs examples e2e tests gets
messed up resulting in some tests not being run. This can cause CI to be
green on a PR, when they shouldn't (because the failing tests didn't run
at all).
It is unclear under what circumstances this happens, so printing the
paths of found e2e specs will help debug the issue when it comes up
again.
PR Close #25293
2018-08-03 15:30:31 -07:00
George Kalpakas
f1223628a6
docs(elements): add link to full example in `elements` guide ( #25219 )
...
PR Close #25219
2018-08-02 08:32:59 -07:00
Zhicheng Wang
83e1c89d2c
fix: 修复 TypeScript 最新版本报的编译错误
2018-07-27 16:34:19 +08:00
Zhicheng Wang
2d485c6589
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/content/guide/animations.md
# aio/content/guide/aot-compiler.md
# aio/content/guide/api-page-class.md
# aio/content/guide/architecture-components.md
# aio/content/guide/architecture-modules.md
# aio/content/guide/architecture-services.md
# aio/content/guide/architecture.md
# aio/content/guide/attribute-directives.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-pattern.md
# aio/content/guide/dependency-injection.md
# aio/content/guide/deployment.md
# aio/content/guide/displaying-data.md
# aio/content/guide/elements.md
# aio/content/guide/form-validation.md
# aio/content/guide/forms.md
# aio/content/guide/frequent-ngmodules.md
# aio/content/guide/glossary.md
# aio/content/guide/hierarchical-dependency-injection.md
# aio/content/guide/http.md
# aio/content/guide/i18n.md
# aio/content/guide/language-service.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-api.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/npm-packages.md
# aio/content/guide/observables.md
# aio/content/guide/pipes.md
# aio/content/guide/providers.md
# aio/content/guide/quickstart.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/releases.md
# aio/content/guide/router.md
# aio/content/guide/rx-library.md
# aio/content/guide/security.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/service-worker-getting-started.md
# aio/content/guide/set-document-title.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-observables.md
# aio/content/guide/testing.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/universal.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/marketing/resources.json
# aio/content/navigation.json
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt1.md
# aio/content/tutorial/toh-pt4.md
# aio/content/tutorial/toh-pt5.md
# aio/content/tutorial/toh-pt6.md
# aio/src/app/custom-elements/api/api-list.component.ts
# aio/src/app/custom-elements/live-example/live-example.component.html
# aio/src/app/custom-elements/live-example/live-example.component.ts
# aio/src/app/layout/doc-viewer/doc-viewer.component.ts
# aio/src/styles/main.scss
# aio/tools/transforms/remark-package/services/renderMarkdown.js
2018-07-27 10:51:18 +08:00
Pete Bacon Darwin
edef58f466
build(docs-infra): ensure all API headings are sentence cased ( #24949 )
...
Closes #24880
PR Close #24949
2018-07-23 08:43:07 -07:00
George Kalpakas
3cd9645daa
fix(docs-infra): fix table header layout in API pages ( #24919 )
...
PR Close #24919
2018-07-20 10:48:42 -07:00
George Kalpakas
1c533c913d
build(docs-infra): add support for examples of type `elements` ( #24840 )
...
Examples using `@angular/elements` need to transpile to es2015 for
Custom Elements to work (on browsers that natively support them).
Alternatively, a polyfill would need to be loaded. For now, changing the
transpilation target to es2015 is the simplest solution.
PR Close #24840
2018-07-20 10:34:47 -07:00
Jan De Wilde
9be222f448
docs: fix `elements` example ( #24840 )
...
PR Close #24840
2018-07-20 10:34:47 -07:00
Pete Bacon Darwin
d8c828c9b1
build(docs-infra): implement the 'package' API template ( #24631 )
...
PR Close #24631
2018-07-13 19:45:54 -04:00
Pete Bacon Darwin
d876700c26
build(docs-infra): render short description of parameters in API docs ( #24537 )
...
PR Close #24537
2018-06-28 15:03:14 -07:00
Brandon Roberts
3db9d57de3
fix(docs-infra): use clean package.json template when generating zips ( #24691 )
...
Closes #24689
PR Close #24691
2018-06-28 15:01:00 -07:00
Brandon Roberts
66e50f28d2
docs: include ts-loader as shared example dependency ( #24691 )
...
Closes #24671
PR Close #24691
2018-06-28 15:01:00 -07:00
Pete Bacon Darwin
cf0968f98e
build(docs-infra): support hiding constructors of injectable classes ( #24529 )
...
Classes that are injectable often have constructors that should not be
called by the application developer. It is the responsibility of the
injector to instantiate the class and the constructor often contains
private implementation details that may need to change.
This commit removes constructors from the docs for API items that are
both:
a) Marked with an injectable decorator (e.g. Injectable, Directive,
Component, Pipe), and
b) Have no constructor description
This second rule allows the developer to override the removal if there
is something useful to say about the constructor.
Note that "normal" classes such as `angimations/HttpHeaders` do not have
their constructor removed, despite (at this time) having no description.
PR Close #24529
2018-06-26 10:58:11 -07:00
George Kalpakas
941d2cdaaf
test(aio): fix upgrade-phonecat examples e2e tests ( #24583 )
...
Closes #19625
PR Close #24583
2018-06-25 09:30:46 -07:00
Pete Bacon Darwin
8c51ce6f3b
build(docs-infra): move overload short description above syntax ( #24526 )
...
PR Close #24526
2018-06-25 07:56:36 -07:00
Brandon Roberts
794584e353
docs: Remove outdated Webpack guide and example ( #24478 )
...
A supporting Webpack guide will be introduced as part of the guidance
for ejecting from the Angular CLI.
Closes #23937
PR Close #24478
2018-06-18 15:03:22 -07:00
Pete Bacon Darwin
45862d0812
build(docs-infra): ensure all headings are sentence cased ( #24527 )
...
PR Close #24527
2018-06-15 09:13:45 -07:00
Pete Bacon Darwin
39af314e29
build(aio): add github links to API doc members ( #24000 )
...
This change adds Github edit and view links to methods
and decorator options.
It is possible to add these to properties also but the
UI is rather tight as these are displayed in a table.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
8daadf360c
build(aio): compute breadcrums for all API doc types ( #24000 )
...
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
859a3d5784
build(aio): fix decorator doc "inherited from" heading ( #24000 )
...
We should not include the package path in the inherited
from heading for decorator API docs
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
8a4c577917
build(aio): fix broken doc-gen unit test ( #24000 )
...
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
2b15108f7e
build(aio): remove invalid H3 usage notes heading ( #24000 )
...
This heading is too high for the section because the
method name is a H3 but it cannot be a H4 because
usage notes may contain H4 headings.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
bc4f10ca20
build(aio): rearrange processors to ensure we catch all content errors ( #24000 )
...
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
77309e2ea4
build(aio): map H3 headings into H4 headings for certain templates ( #24000 )
...
The sections such as methods and decorator options are already headed
by a H3 heading so we need to map the H3 headings in the API doc source
down to H4 headings.
This commit includes general heading mapping functionality accessible via
the `marked` Nunjucks filter.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
e371b226fa
build(aio): rearrange decorator API doc template ( #24000 )
...
The overview of the decorator options is now a table.
The detailed description of each option is now a full section.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
ccb19fea68
build(aio): remove unused `@linkDocs` alias for `@link` jsdoc tag ( #24000 )
...
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
e7b392bf3a
build(aio): improve automatic linking of code items ( #24000 )
...
This commit adds new link disambiguators that mean that more
code links can be generated automatically in a sensible way.
The best example is the use of properties within class, interface and
enum documentation.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
d4d8125b2d
build(aio): refactor the decorator doc processing ( #24000 )
...
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
62443b04a0
build(aio): do not allow `@usageNotes` on properties ( #24000 )
...
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
4168c946c6
build(aio): add content rule to prevent usageNotes in non-export API docs ( #24000 )
...
This commit also factors out `API_CONTAINED_DOC_TYPES` to be used by
both `filterContainedDocs` and `addAllowedPropertiesRules`.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
293ec78069
build(aio): don't constrain `checkContentRules` to run before another processor ( #24000 )
...
We don't really care when this processor runs as long as it happens
after the tags have been extracted.
By not constraining its `runBefore` property we can ensure that other
processors can be run before it.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
131d0d8e8a
build(aio): do not try to auto-link to internal API items ( #24000 )
...
This would cause dangling links since the target, being internal,
would not exist in the docs.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
5fb0b567ce
build(aio): don't render `@Annotation` tags ( #24000 )
...
Because we were "ignoring" these tags they were being
rendered as part of the previous tag.
What we really want to do is know about them, so that we
don't break the doc-gen but then ignore them when rendering.
PR Close #24000
2018-06-13 16:47:40 -07:00
Pete Bacon Darwin
9f877f4416
build(docs-infra): ensure stability is computed before the API list ( #24356 )
...
Previously the API list was being generated before the stability had
been computed. This meant that the API list page showed no API docs
when filtering by `stable` stability status.
Closes #24329
PR Close #24356
2018-06-08 13:33:32 -07:00
Pete Bacon Darwin
700e55ce14
build(docs-infra): log warning rather than error if content errors are not fatal ( #24320 )
...
PR Close #24320
2018-06-06 10:25:04 -07:00
Pete Bacon Darwin
68d37ef0c1
build(aio): ensure the correct decorator properties are merged ( #24289 )
...
Previously only the `description` and `usageNotes` were being copied over
from the call-member of the decorator interface. Important properties such
as `shortDescription` were missed.
These are now added and the code has been refactored to make it simpler and
clearer to update which properties get copied as the requirements change.
PR Close #24289
2018-06-06 10:23:47 -07:00
thebyteman
fb906a87e8
docs(aio): fix typo ( #23925 )
...
PR Close #23925
2018-05-22 16:35:17 -04:00
Brandon Roberts
db2329ef6a
docs(aio): Add missing dependencies and files to testing zip file download ( #23948 )
...
Closes #23060
PR Close #23948
2018-05-21 16:12:40 -04:00
Chris Yu
d6e2a8f614
fixed some translation errors and typo
2018-05-19 10:53:47 +08:00
Brandon Roberts
20d76374ed
docs(aio): Expose server and CLI configuration for universal in guide ( #23842 )
...
Closes #23795
PR Close #23842
2018-05-16 17:21:44 -04:00
Zhicheng Wang
8136953a09
Merge branch 'en-master' into aio
...
# Conflicts:
# aio/content/examples/dynamic-component-loader/src/app/ad-banner.component.ts
# aio/content/examples/reactive-forms/src/app/hero-list/hero-list.component.ts
# aio/content/examples/upgrade-module/src/systemjs.config.1.js
# 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/bootstrapping.md
# aio/content/guide/cheatsheet.md
# aio/content/guide/comparing-observables.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/docs-style-guide.md
# aio/content/guide/dynamic-component-loader.md
# aio/content/guide/elements.md
# aio/content/guide/glossary.md
# aio/content/guide/hierarchical-dependency-injection.md
# aio/content/guide/http.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/npm-packages.md
# aio/content/guide/observables.md
# aio/content/guide/providers.md
# aio/content/guide/quickstart.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/releases.md
# aio/content/guide/router.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/service-worker-devops.md
# aio/content/guide/service-worker-getting-started.md
# aio/content/guide/service-worker-intro.md
# aio/content/guide/setup.md
# aio/content/guide/singleton-services.md
# aio/content/guide/styleguide.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/marketing/features.html
# aio/content/navigation.json
# aio/content/tutorial/toh-pt0.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/app/documents/document.service.ts
# aio/src/app/layout/doc-viewer/doc-viewer.component.ts
# aio/src/app/shared/toc.service.ts
# aio/tools/transforms/templates/api/base.template.html
# aio/yarn.lock
2018-05-15 23:26:31 +08:00
Zhicheng Wang
d3ed81064b
chore: extract dict
2018-05-15 23:10:30 +08:00
Pete Bacon Darwin
02acb5e3e5
build(aio): improve `enum` API rendering ( #23872 )
...
* The member details section is now called "Members", rather
than "Properties".
* The property table now displays appropriate table headings:
"Member", "Value", "Description".
* The "Value" column is not shown if none of the members have
a value.
Closes #22678
PR Close #23872
2018-05-14 10:37:42 -07:00
Pete Bacon Darwin
a2e8b3a6a8
build(aio): ensure usageNotes are copied into decorator API docs ( #23901 )
...
PR Close #23901
2018-05-14 10:35:33 -07:00
Pete Bacon Darwin
d889f57ae2
build(aio): display types of API const docs correctly ( #23850 )
...
Previously these docs always displayed `any` as the type
of the const export. Now the type is computed correctly from
the declared type or initializer of the constant.
PR Close #23850
2018-05-11 16:44:50 -04:00
Pete Bacon Darwin
61170856ee
build(aio): include `navigation.json` changes in docs-watch ( #23698 )
...
Closes #23582
PR Close #23698
2018-05-09 11:45:18 -07:00
Brandon Roberts
d01ec03f54
docs(aio): Upgrade example dependencies to Angular V6 ( #23660 )
...
PR Close #23660
2018-05-08 13:56:48 -07:00
Brandon Roberts
9e2d87f5b8
docs(aio): Update i18n example to Angular V6 ( #23660 )
...
PR Close #23660
2018-05-08 13:56:48 -07:00
Zhicheng Wang
a0c16c7b54
chore: re-extract dict
2018-05-04 12:26:06 +08:00
Brandon Roberts
2cf6244b1d
docs(aio): Upgrade server-side rendering example to Angular V6 ( #23649 )
...
PR Close #23649
2018-05-02 16:51:03 -07:00
Brandon Roberts
fd9d1888ce
build(aio): align stackblitz files with Angular CLI V6 ( #23521 )
...
Also cleans up legacy references to `.angular-cli.json`
PR Close #23521
2018-05-02 15:00:57 -07:00
Brandon Roberts
fe312ccb4c
docs(aio): Cleanup examples with edits from Igor/George ( #23234 )
...
PR Close #23234
2018-04-17 14:09:02 -07:00
Brandon Roberts
5a2ee7a6f5
docs(aio): Bump shared yarn.lock file for examples ( #23234 )
...
PR Close #23234
2018-04-17 14:09:02 -07:00
Brandon Roberts
529d4fc9ee
docs(aio): Bump shared dependencies to RC5 ( #23234 )
...
PR Close #23234
2018-04-17 14:09:02 -07:00
Brandon Roberts
1f005908a4
docs(aio): Fix failing boilerplate tests ( #23234 )
...
PR Close #23234
2018-04-17 14:09:02 -07:00
Brandon Roberts
2278fe8f0e
docs(aio): Upgrade examples to Angular 6 ( #23234 )
...
PR Close #23234
2018-04-17 14:09:02 -07:00
Igor Minar
fc5af69fb2
build(aio): update to @angular/cli@6.0.0-rc.2 + project layout update ( #23234 )
...
project layout was updated using:
yarn ng update @angular/cli --migrate-only --from=1.7.3
PR Close #23234
2018-04-17 14:09:02 -07:00
Pete Bacon Darwin
aae437cb1e
build(aio): implement rules to prevent short parameter names ( #22759 )
...
PR Close #22759
2018-04-12 00:06:49 -07:00
Pete Bacon Darwin
fa11d7822c
build(aio): create minLength content rule ( #22759 )
...
This rule can be used to ensure that properties contain a minimum
number of characters.
PR Close #22759
2018-04-12 00:06:49 -07:00
Pete Bacon Darwin
1619160c8a
build(aio): implement rules to prevent headings in content ( #22759 )
...
* No headings are allowed in `description` and `shortDescription`
* Only heading level 3 is allowed in `usageNotes`
PR Close #22759
2018-04-12 00:06:49 -07:00
Pete Bacon Darwin
7a8c58162c
build(aio): create noMarkdownHeadings content rule ( #22759 )
...
This content rule can check what markdown headings
appear in content properties.
PR Close #22759
2018-04-12 00:06:49 -07:00
Pete Bacon Darwin
e0ae74d40e
build(aio): add checkContentRules processor ( #22759 )
...
This processor will enable us to write rules about
how the content should appear, such as:
* no headings in markdown content
* only one sentence per line
* no single character parameter names
* etc.
PR Close #22759
2018-04-12 00:06:49 -07:00
Pete Bacon Darwin
381da1af45
build(aio): move "optional" and "default" to end of param description ( #23062 )
...
PR Close #23062
2018-04-05 09:25:15 -07:00
Pete Bacon Darwin
5b6e59cfb3
build(aio): fail the doc-gen if the nav is invalid ( #23175 )
...
PR Close #23175
2018-04-04 14:32:14 -07:00
JiaLi.Passion
c560423b52
build: upgrade zone.js ( #23108 )
...
PR Close #23108
2018-04-04 08:24:02 -07:00
Veres Lajos
de90314304
style: typos fixed - https://github.com/vlajos/misspell-fixer ( #22975 )
...
PR Close #22975
2018-03-27 14:51:53 -04:00
Zhicheng Wang
b433d2148c
fix: change some angular.io to angular.cn
2018-03-26 16:34:57 +08:00
Zhicheng Wang
948854fcd2
chore: regenerate dict
2018-03-26 14:57:48 +08:00
Zhicheng Wang
e167fa5229
refactor: 重构自动翻译代码
2018-03-24 20:03:10 +08:00
Zhicheng Wang
6c3d57aee9
fix: 合并了最新版本
2018-03-24 13:12:42 +08:00
Zhicheng Wang
ac300b3db1
fix: 重新收集翻译文本
2018-03-24 11:31:31 +08:00
Zhicheng Wang
8a17495616
fix: 不再拆解单行的 header 元素
2018-03-24 11:31:12 +08:00
Igor Minar
3a30f5d937
build(aio): remove rxjs-compat dependency from examples ( #22872 )
...
we should not longer need it.
PR Close #22872
2018-03-23 12:53:58 -04:00
Igor Minar
0f88fc73db
build(aio): update examples to angular-in-memory-web-api@0.6.0 ( #22872 )
...
PR Close #22872
2018-03-23 12:53:58 -04:00
Zhicheng Wang
67cb21e6c1
fix: 翻译完了服务端渲染部分
2018-03-22 10:52:52 +08:00
Igor Minar
3cc5c2e4d0
build: update to rxjs@6.0.0-beta.0 ( #22887 )
...
PR Close #22887
2018-03-20 15:26:49 -07:00
Zhicheng Wang
37e19cd50b
feat: 自动在中英文之间添加空格,以改善排版
2018-03-20 17:15:36 +08:00
Zhicheng Wang
545d4b6c69
feat: 自动在中英文之间添加空格,以改善排版
2018-03-20 17:09:18 +08:00
Igor Minar
b43f8bc7d3
feat(core): upgrade rxjs to 6.0.0-alpha.4 ( #22573 )
...
PR Close #22573
2018-03-19 21:51:51 -07:00
George Kalpakas
e5fcf650f8
build(aio): temporarily use RxJS from root `node_modules/` when using local packages ( #22573 )
...
PR Close #22573
2018-03-19 21:51:51 -07:00
Igor Minar
243c86cd04
ci: improve logging when running aio/examples e2e tests ( #22854 )
...
PR Close #22854
2018-03-18 14:03:26 -07:00
Zhicheng Wang
e0fc873240
fix: minor fix and auto translate based on previous result
2018-03-18 07:44:33 +08:00
Andrew Seguin
22b96b9690
feat(elements): add support for creating custom elements ( #22413 )
...
PR Close #22413
2018-03-16 12:39:07 -07:00
Pete Bacon Darwin
19e6b8dad5
build(aio): fix `addNotYetDocumentedProperty` processor ( #22770 )
...
It was running too late and so was being confused by the
description being split into `shortDescription` and `description`
properties.
Closes #22748
PR Close #22770
2018-03-15 11:37:31 -07:00
Zhicheng Wang
8a711cba59
refactor: 提供模糊匹配的功能(未完成)
2018-03-15 16:40:11 +08:00
Pete Bacon Darwin
d509bd6849
build(aio): improve the API Pipe pages ( #22702 )
...
This change adds:
* an impure badge for Pipes that are marked as `pure: false`
* a pipe specific overview that shows the syntax for using a pipe in a template.
* an "input value" section describing the type of the value that the pipe expects.
* a "pipe params" section describing any additional params that a pipe expects.
PR Close #22702
2018-03-14 14:21:11 -07:00
Pete Bacon Darwin
6f0dad1710
build(aio): render doc-gen issues in overview dump ( #22675 )
...
Related to #22138
PR Close #22675
2018-03-14 10:20:30 -07:00
Pete Bacon Darwin
48636f3e85
build(aio): compute stability and deprecate `@stable` tag ( #22674 )
...
Closes #22635
PR Close #22674
2018-03-13 19:55:00 -07:00
Pete Bacon Darwin
cd58c0a6d9
build(aio): remove unwanted overview headings ( #22681 )
...
PR Close #22681
2018-03-12 11:23:47 -07:00
Pete Bacon Darwin
38fef1588d
build(aio): move "see also" block to export-base template ( #22681 )
...
This makes it easier for all the API docs to display "see also" links
in a consitent manner.
PR Close #22681
2018-03-12 11:23:46 -07:00
Alex Eagle
1e6cc42a01
test: migrate remaining public-api tests to Bazel ( #22639 )
...
We now create npm packages to cover all the public api assertions in tools/public_api_guard.
We no longer depend on ts-api-guardian from npm - it is now stale since the repository was archived.
There is no longer a gulp task to enforce or accept the public API, this is in CircleCI as part of running all bazel test targets.
PR Close #22639
2018-03-09 09:11:40 -08:00
Zhicheng Wang
0976dfe54c
fix: 更新翻译字典
2018-03-09 13:36:16 +08:00
Zhicheng Wang
d24f7c74f2
fix: 一级标题没有隐藏原始标题
...
fix: 中文标题的 id 应该只按照英文版生成,英文内容不再设置 id
2018-03-08 12:47:55 +08:00
Zhicheng Wang
8af121ee8f
翻译文档首页
2018-03-08 09:28:04 +08:00
Zhicheng Wang
8f74eecc96
fix: 更新字典
2018-03-07 16:16:33 +08:00
Zhicheng Wang
f906fa5b29
fix: 翻译合并完毕,去掉以前版本的字典,只使用上一版
2018-03-07 15:55:33 +08:00
Zhicheng Wang
20d593d067
fix: 修正残留错误
2018-03-07 15:48:58 +08:00
Zhicheng Wang
ba33ee016a
fix: 修正第一版和第二版的字典
...
fix: 修正原文过滤逻辑
2018-03-07 14:19:47 +08:00
Zhicheng Wang
c618678281
fix: 人工修订自动翻译
...
fix: 标准化原文中的异常语句
2018-03-07 13:29:22 +08:00
Zhicheng Wang
73eb2d2d73
fix: 拆解单行的 td/th
2018-03-07 13:09:36 +08:00
Zhicheng Wang
77c2e039f6
fix: 人工修订自动翻译
...
fix: 只忽略 <div class="alert 元素
2018-03-07 12:57:17 +08:00
Zhicheng Wang
a94e7cba14
fix: 人工修订自动翻译
...
fix: 拆解 tr
fix: 特殊拆解 back to top
2018-03-07 12:45:12 +08:00
Zhicheng Wang
9adeb14f3a
fix: 人工修订自动翻译
2018-03-07 12:26:05 +08:00
Zhicheng Wang
abb1f1321b
fix: a 不再自动换行
...
fix: 修正自动翻译结果
2018-03-07 11:28:22 +08:00
Zhicheng Wang
38af562aff
fix: 对 section 和 code-tabs 换行
2018-03-07 11:25:41 +08:00
Zhicheng Wang
d7d3589052
fix: 修正匹配#标题的正则表达式
2018-03-07 10:47:14 +08:00
Zhicheng Wang
076cd7940b
fix: 全面改用环视进行匹配,以免“吃掉”回车,影响下一个匹配
...
fix: html 标签中的属性匹配允许空格
2018-03-07 10:43:12 +08:00
Zhicheng Wang
43e7e9fe8c
fix: 为单行拆解成多行结果增加缩进
2018-03-07 10:13:16 +08:00
Zhicheng Wang
400a6d0b8e
fix: 在正文首尾添加换行,以便统一处理
...
fix: 拆解 li
2018-03-07 10:08:37 +08:00
Zhicheng Wang
4c6b614064
fix: 拆解单行 li
2018-03-07 09:33:42 +08:00
Zhicheng Wang
4c10eb42b5
fix: 拆解单行 br
2018-03-07 09:29:06 +08:00
Zhicheng Wang
8dcffab9c8
fix: 拆解 div
2018-03-07 09:21:16 +08:00
Zhicheng Wang
16bd6edca0
fix: 错误的忽略了单行的 a 标签
2018-03-07 09:08:44 +08:00
Zhicheng Wang
151d8824ee
fix: 忽略更多字符
2018-03-07 08:48:31 +08:00
Zhicheng Wang
4ddf7348a4
fix: 解决其他元素的拆解问题
2018-03-07 08:42:26 +08:00
Pete Bacon Darwin
b3d1761825
build(aio): compute and display short descriptions in methods ( #22583 )
...
Previously only export docs were displaying a short description.
Now methods in classes and interfaces also compute and render
the short description.
Closes #22500
PR Close #22583
2018-03-06 11:05:21 -08:00
Zhicheng Wang
f89d728818
fix: 拆解其它单行块标签
2018-03-06 17:32:21 +08:00
Zhicheng Wang
fee2468d41
fix: 拆解单行自封闭 tag
2018-03-06 17:18:33 +08:00
Zhicheng Wang
73e4efa80d
fix: header 的拆解
2018-03-06 17:08:10 +08:00
Pete Bacon Darwin
8ea4c57174
fix(aio): reposition and shrink the API badges ( #22570 )
...
Closes #22130
PR Close #22570
2018-03-05 21:25:09 -08:00
Pete Bacon Darwin
58932c7f38
build(aio): indicate whether properties are read-only in API pages ( #22584 )
...
PR Close #22584
2018-03-05 10:15:37 -08:00
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
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
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
80e318584a
feat: 批量翻译目录下的所有 markdown 文件
2018-03-03 12:00: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
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