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 11use crate :: api:: cms:: { DocType , Document } ;
22use crate :: { templates:: docs:: TocLink , utils:: config} ;
33use anyhow:: Context ;
4- use comrak:: { format_html_with_plugins, parse_document, ComrakPlugins } ;
54use std:: cell:: RefCell ;
65use std:: collections:: HashMap ;
76use std:: path:: PathBuf ;
@@ -17,7 +16,6 @@ use comrak::{
1716use convert_case;
1817use itertools:: Itertools ;
1918use regex:: Regex ;
20- use serde:: Deserialize ;
2119use std:: fmt;
2220use std:: sync:: Mutex ;
2321use url:: Url ;
@@ -1221,13 +1219,6 @@ pub async fn get_document(path: &PathBuf) -> anyhow::Result<String> {
12211219 Ok ( tokio:: fs:: read_to_string ( path) . await ?)
12221220}
12231221
1224- #[ derive( Deserialize ) ]
1225- struct SearchResultWithoutSnippet {
1226- title : String ,
1227- contents : String ,
1228- path : String ,
1229- }
1230-
12311222pub struct SearchResult {
12321223 pub title : String ,
12331224 pub path : String ,
You can’t perform that action at this time.
0 commit comments