File tree Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Expand file tree Collapse file tree 4 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 5df44bd06669bef20959572a7c6a5b18759bec44
5
+ refs/heads/try: 3cd8c57a54139948b95a4f12940994fb07b444f0
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ type itemdoc = {
33
33
34
34
type moddoc = {
35
35
item: itemdoc ,
36
- items : [ itemtag ]
36
+ items : [ itemtag ] ,
37
+ index : option < index >
37
38
} ;
38
39
39
40
type nmoddoc = {
@@ -109,6 +110,29 @@ type tydoc = {
109
110
sig : option < str >
110
111
} ;
111
112
113
+ type index = {
114
+ entries : [ index_entry ]
115
+ } ;
116
+
117
+ #[ doc = "
118
+
119
+ A single entry in an index
120
+
121
+ Fields:
122
+
123
+ * kind - The type of thing being indexed, e.g. 'Module'
124
+ * name - The name of the thing
125
+ * brief - A description
126
+ * link - A format-specific string representing the link target
127
+
128
+ " ]
129
+ type index_entry = {
130
+ kind : str ,
131
+ name : str ,
132
+ brief : str ,
133
+ link : str
134
+ } ;
135
+
112
136
#[ doc = "Some helper methods on moddoc, mostly for testing" ]
113
137
impl util for moddoc {
114
138
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ fn moddoc_from_mod(
102
102
none
103
103
}
104
104
}
105
- }
105
+ } ,
106
+ index: none
106
107
}
107
108
}
108
109
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ fn test_run_passes() {
57
57
name: doc. topmod . name ( ) + "two"
58
58
with doc. topmod . item
59
59
} ,
60
- items : [ ]
60
+ items : [ ] ,
61
+ index : none
61
62
}
62
63
}
63
64
}
@@ -71,7 +72,8 @@ fn test_run_passes() {
71
72
name: doc. topmod . name ( ) + "three"
72
73
with doc. topmod . item
73
74
} ,
74
- items : [ ]
75
+ items : [ ] ,
76
+ index : none
75
77
}
76
78
}
77
79
}
You can’t perform that action at this time.
0 commit comments