File tree Expand file tree Collapse file tree 6 files changed +33
-3
lines changed Expand file tree Collapse file tree 6 files changed +33
-3
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: c0a5e21b29ca6a9901180451f0b31210b9a5bc84
5
+ refs/heads/try: 95099cddcf2691fcbb389db657c70cf80d776918
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -122,14 +122,12 @@ Fields:
122
122
123
123
* kind - The type of thing being indexed, e.g. 'Module'
124
124
* name - The name of the thing
125
- * brief - A description
126
125
* link - A format-specific string representing the link target
127
126
128
127
" ]
129
128
type index_entry = {
130
129
kind : str ,
131
130
name : str ,
132
- brief : str ,
133
131
link : str
134
132
} ;
135
133
Original file line number Diff line number Diff line change
1
+ #[ doc = "Build indexes as appropriate for the markdown pass" ] ;
2
+
3
+ export mk_pass;
4
+
5
+ fn mk_pass ( ) -> pass {
6
+ {
7
+ name: "markdown_index" ,
8
+ f: run
9
+ }
10
+ }
11
+
12
+ fn run ( _srv : astsrv:: srv , doc : doc:: cratedoc ) -> doc:: cratedoc {
13
+ doc
14
+ }
15
+
16
+ #[ test]
17
+ fn should_index_mod_contents ( ) {
18
+
19
+ }
20
+
21
+ #[ cfg( test) ]
22
+ mod test {
23
+ fn mk_doc ( source : str ) -> doc:: cratedoc {
24
+ astsrv:: from_str ( source) { |srv|
25
+ let doc = extract:: from_srv ( srv, "" ) ;
26
+ run ( srv, doc) ;
27
+ }
28
+ }
29
+ }
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ mod parse;
17
17
mod extract;
18
18
mod attr_parser;
19
19
mod doc;
20
+ mod markdown_index_pass;
20
21
mod markdown_pass;
21
22
mod markdown_writer;
22
23
mod fold;
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ fn run(config: config::config) {
147
147
unindent_pass:: mk_pass ( ) ,
148
148
sort_item_name_pass:: mk_pass ( ) ,
149
149
sort_item_type_pass:: mk_pass ( ) ,
150
+ markdown_index_pass:: mk_pass ( ) ,
150
151
markdown_pass:: mk_pass ( config)
151
152
] ) ;
152
153
}
Original file line number Diff line number Diff line change
1
+ // xfail-fast - check-fast doesn't understand aux-build
1
2
// aux-build:cci_no_inline_lib.rs
2
3
3
4
use std;
You can’t perform that action at this time.
0 commit comments