File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: api:: cms:: { DocType , Document } ;
2
2
use crate :: { templates:: docs:: TocLink , utils:: config} ;
3
3
use anyhow:: Context ;
4
- use comrak:: { format_html_with_plugins, parse_document, ComrakPlugins } ;
5
4
use std:: cell:: RefCell ;
6
5
use std:: collections:: HashMap ;
7
6
use std:: path:: PathBuf ;
@@ -17,7 +16,6 @@ use comrak::{
17
16
use convert_case;
18
17
use itertools:: Itertools ;
19
18
use regex:: Regex ;
20
- use serde:: Deserialize ;
21
19
use std:: fmt;
22
20
use std:: sync:: Mutex ;
23
21
use url:: Url ;
@@ -1221,13 +1219,6 @@ pub async fn get_document(path: &PathBuf) -> anyhow::Result<String> {
1221
1219
Ok ( tokio:: fs:: read_to_string ( path) . await ?)
1222
1220
}
1223
1221
1224
- #[ derive( Deserialize ) ]
1225
- struct SearchResultWithoutSnippet {
1226
- title : String ,
1227
- contents : String ,
1228
- path : String ,
1229
- }
1230
-
1231
1222
pub struct SearchResult {
1232
1223
pub title : String ,
1233
1224
pub path : String ,
You can’t perform that action at this time.
0 commit comments