From e5b97e3a92038df324d9b900ac9b6d1800467c39 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Tue, 21 Feb 2017 13:28:34 +0000 Subject: [PATCH] docs: fix up irregular doc-region tags (#3285) --- .../cb-ajs-quick-reference/ts/src/app/movie-list.component.ts | 1 - .../cb-dependency-injection/ts/src/app/runners-up.ts | 2 +- .../ts/src/app/reactive/hero-form-reactive.component.ts | 2 +- .../ts/src/app/shared/forbidden-name.directive.ts | 2 +- .../cb-ts-to-js/js-es6/src/app/hero-host.component.es6 | 2 +- .../docs/_examples/forms/js/src/app/hero-form.component.html | 1 + .../docs/_examples/forms/ts/src/app/hero-form.component.html | 1 + public/docs/_examples/ngmodule/ts/src/app/app.module.1.ts | 2 +- public/docs/_examples/ngmodule/ts/src/app/app.module.ts | 2 -- .../_examples/pipes/ts/src/app/flying-heroes.component.ts | 2 +- .../router/ts/src/app/admin/admin-routing.module.2.ts | 3 +-- public/docs/_examples/router/ts/src/app/app.component.3.ts | 1 - public/docs/_examples/router/ts/src/app/app.module.4.ts | 4 +--- .../src/app/crisis-center/crisis-center-routing.module.2.ts | 3 +-- .../router/ts/src/app/crisis-center/crisis-center.module.ts | 1 - .../router/ts/src/app/crisis-center/crisis.service.ts | 1 - .../_examples/router/ts/src/app/heroes/hero-list.component.ts | 1 - .../docs/_examples/testing/ts/src/app/app.component.spec.ts | 2 +- public/docs/_examples/toh-5/ts/src/app/app.module.3.ts | 1 - public/docs/_examples/toh-6/ts/src/app/hero.service.ts | 2 +- .../_examples/upgrade-phonecat-2-hybrid/ts/app/app.module.ts | 3 +-- public/docs/_examples/upgrade-phonecat-3-router/ts/index.html | 2 +- public/docs/_examples/upgrade-phonecat-4-final/ts/index.html | 2 +- .../_examples/webpack/ts-snippets/webpack.config.snippets.ts | 1 - 24 files changed, 16 insertions(+), 28 deletions(-) diff --git a/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.ts b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.ts index 2481710bb1..c194bc50bd 100644 --- a/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.ts +++ b/public/docs/_examples/cb-ajs-quick-reference/ts/src/app/movie-list.component.ts @@ -11,7 +11,6 @@ import { MovieService } from './movie.service'; moduleId: module.id, selector: 'movie-list', templateUrl: './movie-list.component.html', -// #enddocregion component // #docregion style-url styleUrls: [ './movie-list.component.css' ], // #enddocregion style-url diff --git a/public/docs/_examples/cb-dependency-injection/ts/src/app/runners-up.ts b/public/docs/_examples/cb-dependency-injection/ts/src/app/runners-up.ts index 0bc3069883..6eb8b195d0 100644 --- a/public/docs/_examples/cb-dependency-injection/ts/src/app/runners-up.ts +++ b/public/docs/_examples/cb-dependency-injection/ts/src/app/runners-up.ts @@ -7,7 +7,7 @@ import { HeroService } from './hero.service'; // #docregion runners-up export const RUNNERS_UP = new OpaqueToken('RunnersUp'); -// #docregion runners-up +// #enddocregion runners-up // #docregion factory-synopsis export function runnersUpFactory(take: number) { diff --git a/public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts b/public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts index d4924e7ef9..4bbefadb96 100644 --- a/public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts +++ b/public/docs/_examples/cb-form-validation/ts/src/app/reactive/hero-form-reactive.component.ts @@ -33,7 +33,7 @@ export class HeroFormReactiveComponent implements OnInit { // to be removed/re-added in a tick via NgIf // TODO: Workaround until NgForm has a reset method (#6822) active = true; -// #docregion +// #docregion class // #docregion add-hero addHero() { this.hero = new Hero(42, '', ''); diff --git a/public/docs/_examples/cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts b/public/docs/_examples/cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts index a8f6c03d33..870f514842 100644 --- a/public/docs/_examples/cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts +++ b/public/docs/_examples/cb-form-validation/ts/src/app/shared/forbidden-name.directive.ts @@ -39,5 +39,5 @@ export class ForbiddenValidatorDirective implements Validator, OnChanges { return this.valFn(control); } } -// #docregion directive +// #enddocregion directive diff --git a/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-host.component.es6 b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-host.component.es6 index 092cd1a1ce..b06701ee8d 100644 --- a/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-host.component.es6 +++ b/public/docs/_examples/cb-ts-to-js/js-es6/src/app/hero-host.component.es6 @@ -46,5 +46,5 @@ HeroHostComponent.annotations = [ styles: ['.active {background-color: yellow;}'] }) ]; -// #docregion metadata +// #enddocregion metadata // #enddocregion diff --git a/public/docs/_examples/forms/js/src/app/hero-form.component.html b/public/docs/_examples/forms/js/src/app/hero-form.component.html index fbe6ee917f..279ded0866 100644 --- a/public/docs/_examples/forms/js/src/app/hero-form.component.html +++ b/public/docs/_examples/forms/js/src/app/hero-form.component.html @@ -81,6 +81,7 @@
+