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
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
Pete Bacon Darwin
71ea931df5
build(aio): blacklist unwanted URLs from the generated sitemap.xml ( #22061 )
...
Closes #22017
PR Close #22061
2018-02-07 12:02:01 -08:00
Pete Bacon Darwin
9a0700f5bd
build(aio): add API static members to search index ( #21988 )
...
Previously searching for `compose` did not include `Validators`
in the search results because we were not including all the
`static` members of API docs in the index.
PR Close #21988
2018-02-05 13:00:47 -08:00
Pete Bacon Darwin
a64af40c0b
build(aio): generate sitemap from the generated pages ( #21689 )
...
Closes #21684
PR Close #21689
2018-01-22 12:55:15 -08:00
Peter Bacon Darwin
e2b76bb386
build(aio): filter out ambiguous directives from auto code linking ( #20512 )
...
Closes #20466
PR Close #20512
2017-11-21 22:28:16 -06:00
Peter Bacon Darwin
7c44637fbf
build(aio): tighten up code autolinking ( #20468 )
...
Do not match code "words" that are part of a hyphenated
string of characters: e.g. `platform-browser-dynamic` should
not auto-link `browser`.
Do not match code "words" that correspond to pipe names
but are not preceded by a pipe `|` character. E.g. `package.json` should
not auto link `json` to the `JsonPipe`.
Closes #20187
PR Close #20468
2017-11-16 16:20:03 -06:00
George Kalpakas
7e38f4fd1f
fix(aio): fix window title on Home page ( #20440 )
...
Using `display: none` on the `<h1>` causes `innerText` to not work as expected
and include the icon ligature (`link`) in the title. This caused the window
title on the angular.io Home page to appear as "Angular - link".
This commit fixes it by not generating anchors at all for headings with the
`no-anchor` class.
Fixes #20427
PR Close #20440
2017-11-15 18:25:58 -06:00
Peter Bacon Darwin
9ab1f4a9c9
style(aio): fix docs linting issues ( #19702 )
...
These issues appeared after upgrade of eslint jasmine plugin
PR Close #19702
2017-11-01 15:24:46 -07:00
Peter Bacon Darwin
8b571309ed
build(aio): append information about links in and out of docs ( #19583 )
...
Closes #19560
PR Close #19583
2017-10-10 17:06:51 -07: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
Pete Bacon Darwin
97e02c2fa0
build(aio): render class/interface "descendants" in API docs ( #19343 )
...
For classes, the tree of subclasses is rendered, recursively.
For interfaces, the descendants are separated into child interfaces, which
extend the interface, and classes, which implement the interface.
Closes #19306
2017-09-25 11:59:44 -07:00
Peter Bacon Darwin
9ab9437319
build(aio): auto-link more code items
...
We now parse all code blocks, after they have been rendered by dgeni
and insert links to API docs that match "words" in the code.
2017-09-12 13:58:43 -04: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
Peter Bacon Darwin
b8a3736275
build(aio): do not auto-link code elements already inside a link ( #18776 )
...
Closes #18769
PR Close #18776
2017-08-18 17:13:16 -05: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
Georgios Kalpakas
cc2a4c41f9
build(aio): fix warning about missing <h1>
...
Fixes #17549
2017-07-31 13:40:07 -07: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
c002fddabe
fix: many of broken links
2017-07-30 12:32:56 +08:00
Peter Bacon Darwin
c453b7bcfa
build(aio): fail doc-gen if referenced images are missing
2017-07-18 11:45:05 +01:00
Peter Bacon Darwin
f06ce9adc8
build(aio): truncate API overview parameters at one line
2017-07-13 12:16:20 -07:00
Peter Bacon Darwin
998049ec9b
build(aio): truncate API overview parameters at one line
2017-07-13 12:16:20 -07:00
Peter Bacon Darwin
e8bbf86e66
build(aio): add terms from heading to the search index
2017-07-11 15:04:37 +01:00
Peter Bacon Darwin
3a0886dc12
build(aio): capture all the headings from a doc in the vFile.headings property
2017-07-11 15:04:37 +01:00
Victor Berchet
c723d42d0a
refactor: fix typos ( #18000 )
2017-07-07 16:55:17 -07:00
Peter Bacon Darwin
dfbbbb5e3e
build(aio): the the captured h1 as the title for the search index
...
If there is no title already provided, use the one captured from the renderedContent.
2017-05-31 08:45:31 +03:00
Peter Bacon Darwin
89f317915d
build(aio): use the captured h1 as the title if necessary
...
If the doc does not already have a `title` tag
then use the one captured from the renderedContent in
the final JSON output, instead.
2017-05-31 08:45:31 +03:00
Peter Bacon Darwin
4d5fa5c855
build(aio): capture the h1 title and attach it to the document
...
The HTML post-processing now collects any h1
that is found in the renderedContent and attaches
it to the doc via the `doc.vFile.title` property.
2017-05-31 08:45:31 +03:00
Peter Bacon Darwin
a9d9aa18a0
build(aio): automatically link code blocks to API docs
2017-05-15 10:56:38 +01:00
Peter Bacon Darwin
bcbee13e26
build(aio): fail build if more than h1 is found in a doc
...
Closes #16193
2017-05-11 08:15:19 +01:00
Peter Bacon Darwin
978376a46e
build(aio): doc.searchTitle
can override name in search results
2017-05-04 13:45:04 +01:00
Peter Bacon Darwin
ca17d4f639
build(aio): auto-fill width/height to all image tags
...
Parse all `<img>` tags, during doc-gen, and insert the width and height of
the sourceed image, if neither are already specified.
Warnings are reported if the `<img>` tag has no `src` attribute or the image
cannot be loaded.
The work is done in the `addImageDimensions` post-processor, which must be
configured with a `basePath` so that it knows where to find the images.
Closes #15888
2017-05-01 15:52:51 -07:00
Peter Bacon Darwin
64335d3521
build(aio): capture and log errors and warnings when post-processing HTML
2017-05-01 15:52:51 -07:00
Peter Bacon Darwin
9945ce2259
build(aio): move copyContentAssets processor to the base package
...
This allows other processors who need to know about the copyContentAssets
processors to ensure that the runs after the content has been copied.
2017-05-01 15:52:51 -07:00
Peter Bacon Darwin
de25cfc0cb
build(aio): move autolink-headings to post-processing ( #16336 )
...
The autolinking is now done on the `renderedContent` which means it also
captures and autolinks headings that were generated outside of markdown.
PR Close #16336
2017-04-27 23:42:04 -05:00
Peter Bacon Darwin
1ceb2f9c79
build(aio): add new post-process dgeni package
...
This package will allow us to do complex post-processing
on the HTML that is rendered by Nunjucks.
2017-04-27 23:42:04 -05:00
Peter Bacon Darwin
5331fc1aab
build(aio): turn on dangling link checking
2017-04-25 14:09:08 +01:00
Peter Bacon Darwin
3cad5da5a4
build(aio): refactor dgeni packages
...
This is to tidy up the `author-packagse`, which currently duplicates a
lot of the configuration in the main packages. We need to
DRY this up so that we don't fall foul of a change in one being missed in
the other.
2017-04-23 22:50:33 +01:00