Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit b1917b8

Browse files
chalinfilipesilva
authored andcommitted
chore: remove deprecated liveExample mixins (#2670)
`+liveExample` mixins were replaced by `<live-example>` directives a while ago. This cleanup fixes link issues to the plunker under ng2.io.
1 parent b58e51a commit b1917b8

File tree

4 files changed

+2
-28
lines changed

4 files changed

+2
-28
lines changed

public/docs/dart/latest/_util-fns.jade

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@ include ../../../_includes/_util-fns
2929
- var _moduleVsRootComp = 'root component'
3030
- var _platformBrowserDynamicVsBootStrap = 'bootstrap'
3131

32-
//- Deprecated
33-
mixin liveExampleLink(linkText, exampleUrlPartName)
34-
- var text = linkText || 'live example';
35-
- var ex = exampleUrlPartName || getExampleName();
36-
- var href = 'http://angular-examples.github.io/' + ex;
37-
a(href='#{href}' target="_blank")= text
38-
39-
//- Deprecated
40-
mixin liveExampleLink2(linkText, exampleUrlPartName)
41-
- var srcText = attributes.srcText || 'view source';
42-
- var ex = exampleUrlPartName || attributes.example || getExampleName();
43-
- var href = 'http://github.com/angular-examples/' + ex;
44-
span #[+liveExampleLink(linkText, ex)] (#[a(href='#{href}' target="_blank") #{srcText}])
45-
4632
- var adjustTsExamplePathForDart = function(_path) {
4733
- if(!_path) return _path;
4834
- var path = _path.trim();

public/docs/ts/_cache/guide/architecture.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ figure
4141
Learn these, and we're on our way.
4242

4343
.l-sub-section
44-
p The code referenced in this chapter is available as a #[+liveExampleLink2()].
44+
p The code referenced in this chapter is available as a <live-example></live-example>.
4545

4646
.l-main-section
4747
:marked

public/docs/ts/latest/_util-fns.jade

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,3 @@ include ../../../_includes/_util-fns
33
//- See the _util-fns file included above for a description of the use of these variables.
44
- var _docsFor = 'ts';
55
//- Other values match the defaults.
6-
7-
//- Deprecated
8-
mixin liveExampleLink(linkText, exampleUrlPartName)
9-
- var text = linkText || 'live example';
10-
- var ex = exampleUrlPartName || getExampleName();
11-
- var href = '/resources/live-examples/' + ex + '/ts/plnkr.html';
12-
a(href='#{href}' target="_blank")= text
13-
14-
//- Deprecated
15-
mixin liveExampleLink2(linkText, exampleUrlPartName)
16-
//- In Dart this gives 2 links: to the demo and to the source.
17-
+liveExampleLink(linkText, exampleUrlPartName)

public/docs/ts/latest/guide/architecture.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ figure
4141
Learn these building blocks, and you're on your way.
4242

4343
.l-sub-section
44-
p The code referenced on this page is available as a #[+liveExampleLink2()].
44+
p The code referenced on this page is available as a <live-example></live-example>.
4545

4646
.l-main-section
4747
:marked

0 commit comments

Comments
 (0)