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

Commit 98efced

Browse files
chalinwardbell
authored andcommitted
docs(lang/latest): parameterize landing page Jade by language (#2389)
ng2.io preparatory work.
1 parent 0c678c2 commit 98efced

File tree

4 files changed

+20
-102
lines changed

4 files changed

+20
-102
lines changed

public/docs/dart/latest/index.jade

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
.clearfix
2-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html")
3-
h2.text-headline.text-uppercase Quickstart
4-
p A short beginner guide explaining the basic concepts of Angular
5-
6-
footer View Quickstart
7-
8-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/")
9-
h2.text-headline.text-uppercase Developer Guide
10-
p An intermediate development guide covering all major features of Angular
11-
12-
footer View Guide
13-
14-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/api/")
15-
h2.text-headline.text-uppercase API Reference
16-
p An advanced reference of all Angular Classes, Methods, etc.
17-
18-
footer View API
19-
1+
include ../../ts/latest/index
202

213
div.c12.l-space-top-3
224
.alert.is-helpful.

public/docs/index.jade

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
p <a href="/docs/js/latest">Angular 2 JS - Latest Version</a>
1010

11-
1211
h3 Dart
1312

1413
p: <a href="/docs/dart/latest">Angular 2 Dart - Latest Version</a>

public/docs/js/latest/index.jade

+1-67
Original file line numberDiff line numberDiff line change
@@ -1,67 +1 @@
1-
.clearfix
2-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html")
3-
h2.text-headline.text-uppercase Quickstart
4-
p A short beginner guide explaining the basic concepts of Angular
5-
6-
footer View Quickstart
7-
8-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/")
9-
h2.text-headline.text-uppercase Developer Guide
10-
p An intermediate development guide covering all major features of Angular
11-
12-
footer View Guide
13-
14-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/api/")
15-
h2.text-headline.text-uppercase API Reference
16-
p An advanced reference of all Angular Classes, Methods, etc.
17-
18-
footer View API
19-
20-
21-
.c4.secondary-content-list
22-
h4 Advanced Documentation
23-
ul
24-
li
25-
a(href="/docs/js/latest/guide/ngmodule.html") Angular Modules
26-
li
27-
a(href="/docs/js/latest/guide/animations.html") Animations
28-
li
29-
a(href="/docs/js/latest/guide/attribute-directives.html") Attribute Directives
30-
li
31-
a(href="/docs/js/latest/guide/browser-support.html") Browser Support
32-
li
33-
a(href="/docs/js/latest/guide/component-styles.html") Component Styles
34-
li
35-
a(href="/docs/js/latest/guide/ngmodule.html") View All...
36-
37-
.c4.secondary-content-list
38-
h4 Cookbook
39-
ul
40-
li
41-
a(href="/docs/js/latest/cookbook/a1-a2-quick-reference.html") Angular 1 to Angular 2
42-
li
43-
a(href="/docs/js/latest/cookbook/ngmodule-faq.html") Angular Module FAQ
44-
li
45-
a(href="/docs/js/latest/cookbook/component-communication.html") Component Interaction
46-
li
47-
a(href="/docs/js/latest/cookbook/component-relative-paths.html") Component-Relative Paths
48-
li
49-
a(href="/docs/js/latest/cookbook/dependency-injection.html") Dependency Injection
50-
li
51-
a(href="/docs/js/latest/cookbook/") View All...
52-
53-
.c4.secondary-content-list
54-
h4 Tools & Libraries
55-
ul
56-
li
57-
a(target="_blank" href="https://github.com/angular/universal") Angular Universal
58-
li
59-
a(target="_blank" href="https://augury.angular.io/") Augury
60-
li
61-
a(target="_blank" href="https://github.com/jaxio/celerio-angular-quickstart") Celerio Angular Quickstart
62-
li
63-
a(target="_blank" href="https://github.com/mgechev/codelyzer") Codelyzer
64-
li
65-
a(target="_blank" href="https://github.com/johnpapa/lite-server") Lite-server
66-
li
67-
a(target="_blank" href="/resources/") View All...
1+
include ../../ts/latest/index

public/docs/ts/latest/index.jade

+18-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1+
- var lang = current.path[1]
2+
- var vers = current.path[2]
3+
14
.clearfix
2-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/quickstart.html")
5+
a.card.c4(href="/docs/#{lang}/#{vers}/quickstart.html")
36
h2.text-headline.text-uppercase Quickstart
47
p A short beginner guide explaining the basic concepts of Angular
58

69
footer View Quickstart
710

8-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/guide/")
11+
a.card.c4(href="/docs/#{lang}/#{vers}/guide/")
912
h2.text-headline.text-uppercase Developer Guide
1013
p An intermediate development guide covering all major features of Angular
1114

1215
footer View Guide
1316

14-
a.card.c4(href="/docs/#{current.path[1]}/#{current.path[2]}/api/")
17+
a.card.c4(href="/docs/#{lang}/#{vers}/api/")
1518
h2.text-headline.text-uppercase API Reference
1619
p An advanced reference of all Angular Classes, Methods, etc.
1720

@@ -21,33 +24,33 @@
2124
h4 Advanced Documentation
2225
ul
2326
li
24-
a(href="/docs/ts/latest/guide/ngmodule.html") Angular Modules
27+
a(href="/docs/#{lang}/#{vers}/guide/ngmodule.html") Angular Modules
2528
li
26-
a(href="/docs/ts/latest/guide/animations.html") Animations
29+
a(href="/docs/#{lang}/#{vers}/guide/animations.html") Animations
2730
li
28-
a(href="/docs/ts/latest/guide/attribute-directives.html") Attribute Directives
31+
a(href="/docs/#{lang}/#{vers}/guide/attribute-directives.html") Attribute Directives
2932
li
30-
a(href="/docs/ts/latest/guide/browser-support.html") Browser Support
33+
a(href="/docs/#{lang}/#{vers}/guide/browser-support.html") Browser Support
3134
li
32-
a(href="/docs/ts/latest/guide/component-styles.html") Component Styles
35+
a(href="/docs/#{lang}/#{vers}/guide/component-styles.html") Component Styles
3336
li
34-
a(href="/docs/ts/latest/guide/ngmodule.html") View All...
37+
a(href="/docs/#{lang}/#{vers}/guide/ngmodule.html") View All...
3538

3639
.c4.secondary-content-list
3740
h4 Cookbook
3841
ul
3942
li
40-
a(href="/docs/ts/latest/cookbook/aot-compiler.html") Ahead-of-Time Compilation
43+
a(href="/docs/#{lang}/#{vers}/cookbook/aot-compiler.html") Ahead-of-Time Compilation
4144
li
42-
a(href="/docs/ts/latest/cookbook/a1-a2-quick-reference.html") Angular 1 to Angular 2
45+
a(href="/docs/#{lang}/#{vers}/cookbook/a1-a2-quick-reference.html") Angular 1 to Angular 2
4346
li
44-
a(href="/docs/ts/latest/cookbook/ngmodule-faq.html") Angular Module FAQ
47+
a(href="/docs/#{lang}/#{vers}/cookbook/ngmodule-faq.html") Angular Module FAQ
4548
li
46-
a(href="/docs/ts/latest/cookbook/component-communication.html") Component Interaction
49+
a(href="/docs/#{lang}/#{vers}/cookbook/component-communication.html") Component Interaction
4750
li
48-
a(href="/docs/ts/latest/cookbook/component-relative-paths.html") Component-Relative Paths
51+
a(href="/docs/#{lang}/#{vers}/cookbook/component-relative-paths.html") Component-Relative Paths
4952
li
50-
a(href="/docs/ts/latest/cookbook/") View All...
53+
a(href="/docs/#{lang}/#{vers}/cookbook/") View All...
5154

5255
.c4.secondary-content-list
5356
h4 Tools & Libraries

0 commit comments

Comments
 (0)