From b1917b800f731522e76df4e61bd115fac5369bb2 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 25 Oct 2016 12:26:13 -0700 Subject: [PATCH] chore: remove deprecated liveExample mixins (#2670) `+liveExample` mixins were replaced by `` directives a while ago. This cleanup fixes link issues to the plunker under ng2.io. --- public/docs/dart/latest/_util-fns.jade | 14 -------------- public/docs/ts/_cache/guide/architecture.jade | 2 +- public/docs/ts/latest/_util-fns.jade | 12 ------------ public/docs/ts/latest/guide/architecture.jade | 2 +- 4 files changed, 2 insertions(+), 28 deletions(-) diff --git a/public/docs/dart/latest/_util-fns.jade b/public/docs/dart/latest/_util-fns.jade index e4839cc688..741d5b0c99 100644 --- a/public/docs/dart/latest/_util-fns.jade +++ b/public/docs/dart/latest/_util-fns.jade @@ -29,20 +29,6 @@ include ../../../_includes/_util-fns - var _moduleVsRootComp = 'root component' - var _platformBrowserDynamicVsBootStrap = 'bootstrap' -//- Deprecated -mixin liveExampleLink(linkText, exampleUrlPartName) - - var text = linkText || 'live example'; - - var ex = exampleUrlPartName || getExampleName(); - - var href = 'http://angular-examples.github.io/' + ex; - a(href='#{href}' target="_blank")= text - -//- Deprecated -mixin liveExampleLink2(linkText, exampleUrlPartName) - - var srcText = attributes.srcText || 'view source'; - - var ex = exampleUrlPartName || attributes.example || getExampleName(); - - var href = 'http://github.com/angular-examples/' + ex; - span #[+liveExampleLink(linkText, ex)] (#[a(href='#{href}' target="_blank") #{srcText}]) - - var adjustTsExamplePathForDart = function(_path) { - if(!_path) return _path; - var path = _path.trim(); diff --git a/public/docs/ts/_cache/guide/architecture.jade b/public/docs/ts/_cache/guide/architecture.jade index 3510c864bb..6456f9b46c 100644 --- a/public/docs/ts/_cache/guide/architecture.jade +++ b/public/docs/ts/_cache/guide/architecture.jade @@ -41,7 +41,7 @@ figure Learn these, and we're on our way. .l-sub-section - p The code referenced in this chapter is available as a #[+liveExampleLink2()]. + p The code referenced in this chapter is available as a . .l-main-section :marked diff --git a/public/docs/ts/latest/_util-fns.jade b/public/docs/ts/latest/_util-fns.jade index 1fae0b83ce..7635f5f56f 100644 --- a/public/docs/ts/latest/_util-fns.jade +++ b/public/docs/ts/latest/_util-fns.jade @@ -3,15 +3,3 @@ include ../../../_includes/_util-fns //- See the _util-fns file included above for a description of the use of these variables. - var _docsFor = 'ts'; //- Other values match the defaults. - -//- Deprecated -mixin liveExampleLink(linkText, exampleUrlPartName) - - var text = linkText || 'live example'; - - var ex = exampleUrlPartName || getExampleName(); - - var href = '/resources/live-examples/' + ex + '/ts/plnkr.html'; - a(href='#{href}' target="_blank")= text - -//- Deprecated -mixin liveExampleLink2(linkText, exampleUrlPartName) - //- In Dart this gives 2 links: to the demo and to the source. - +liveExampleLink(linkText, exampleUrlPartName) diff --git a/public/docs/ts/latest/guide/architecture.jade b/public/docs/ts/latest/guide/architecture.jade index c41f8cb8a2..c88ad36aff 100644 --- a/public/docs/ts/latest/guide/architecture.jade +++ b/public/docs/ts/latest/guide/architecture.jade @@ -41,7 +41,7 @@ figure Learn these building blocks, and you're on your way. .l-sub-section - p The code referenced on this page is available as a #[+liveExampleLink2()]. + p The code referenced on this page is available as a . .l-main-section :marked