Skip to content

Commit f33d5ef

Browse files
committed
docs(glossary/dart): recover content
Fixes angular#1918. Follow-up work will be done under angular#2036.
1 parent 6a2cad2 commit f33d5ef

File tree

5 files changed

+31
-41
lines changed

5 files changed

+31
-41
lines changed

public/docs/dart/latest/glossary.jade

+25-35
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,35 @@
11
include _util-fns
2-
// From ts/glossary.jade, the folder ts/latest/_fragments is generated which contains a bunch of partial files.
3-
// These partials comprise the glossary,a subset of these partials should be used to generate the glossary for
4-
// __dart__ under BASICS.
5-
!=partial('../../ts/latest/_fragments/glossary-intro')
6-
!=partial('../../ts/latest/_fragments/glossary-a-2')
7-
!=partial('../../ts/latest/_fragments/glossary-b-c')
8-
!=partial('../../ts/latest/_fragments/glossary-d1')
9-
!=partial('../../ts/latest/_fragments/glossary-d2')
10-
!=partial('../../ts/latest/_fragments/glossary-e1')
11-
!=partial('../../ts/latest/_fragments/glossary-e2')
12-
!=partial('../../ts/latest/_fragments/glossary-f-l')
13-
!=partial('../../ts/latest/_fragments/glossary-m1')
14-
//!=partial('../../ts/latest/_fragments/glossary-m2') not needed in dart
15-
!=partial('../../ts/latest/_fragments/glossary-n-s-1')
2+
3+
block var-def
4+
- var fragPath='../../ts/latest/_fragments/';
5+
6+
!=partial(fragPath + 'glossary-intro')
7+
!=partial(fragPath + 'glossary-a1')
8+
!=partial(fragPath + 'glossary-a-2')
9+
!=partial(fragPath + 'glossary-b-c')
10+
!=partial(fragPath + 'glossary-d1')
11+
!=partial(fragPath + 'glossary-d2')
12+
!=partial(fragPath + 'glossary-e1')
13+
!=partial(fragPath + 'glossary-e2')
14+
!=partial(fragPath + 'glossary-f-l')
15+
!=partial(fragPath + 'glossary-m1')
16+
//partial(fragPath + 'glossary-m2') not needed in dart
17+
!=partial(fragPath + 'glossary-n-s-1')
1618

1719
:marked
1820
## snake_case
21+
1922
.l-sub-section
2023
:marked
21-
The practice of writing compound words or phrases such that each word is separated by an underscore (`_`).
24+
The practice of writing compound words or phrases such that each word is separated by an
25+
underscore (`_`).
2226

23-
Library and file names are often spelled in snake_case. Examples include: `angular2_tour_of_heroes` and `app_component.dart`.
27+
Library and file names are often spelled in snake_case. Examples include:
28+
`angular2_tour_of_heroes` and `app_component.dart`.
2429

2530
This form is also known as **underscore case**.
2631

27-
!=partial('../../ts/latest/_fragments/glossary-n-s-2')
28-
!=partial('../../ts/latest/_fragments/glossary-t1')
29-
//!=partial('../../ts/latest/_fragments/glossary-t2') notneeded in dart
30-
!=partial('../../ts/latest/_fragments/glossary-u-z')
31-
32-
// NOTE: (ericjim): I am almost certain these lines are doing nothing,
33-
// so instead I use `!=partial` to include the glossary fragments.
34-
//+includeShared('{ts}', 'intro')
35-
//+includeShared('{ts}', 'a2')
36-
//+includeShared('{ts}', 'b-c')
37-
//+includeShared('{ts}', 'd1')
38-
//+includeShared('{ts}', 'd2')
39-
//+includeShared('{ts}', 'e1')
40-
//+includeShared('{ts}', 'e2')
41-
//+includeShared('{ts}', 'f-l')
42-
//+includeShared('{ts}', 'm1')
43-
//+includeShared('{ts}', 'n-s')
44-
//+includeShared('{ts}', 't1')
45-
//+includeShared('{ts}', 'u-z')
32+
!=partial(fragPath + 'glossary-n-s-2')
33+
!=partial(fragPath + 'glossary-t1')
34+
//partial(fragPath + 'glossary-t2') notneeded in dart
35+
!=partial(fragPath + 'glossary-u-z')

public/docs/dart/latest/guide/_data.json

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"forms-deprecated": {
4040
"title": "Forms",
4141
"intro": "A form creates a cohesive, effective, and compelling data entry experience. An Angular form coordinates a set of data-bound user controls, tracks changes, validates input, and presents errors.",
42-
"nextable": true,
4342
"basics": true,
4443
"hide": true
4544
},
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include ../_util-fns
22

33
:marked
4-
There is no deprecated forms library in Angular Dart.
5-
The forms guide is [here](forms.html).
4+
This page has no Dart equivalent. Instead, see the [forms guide](forms.html).
+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
include ../glossary
1+
extends ../glossary
2+
3+
block var-def
4+
- var fragPath='../../../ts/latest/_fragments/';
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include ../_util-fns
22

33
:marked
4-
There is no deprecated router library in Angular Dart.
5-
The router guide is [here](router.html).
4+
This page has no Dart equivalent. Instead, see the [router guide](router.html).

0 commit comments

Comments
 (0)