diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index 5a674e836..fc8bcae86 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -1,7 +1,6 @@ use crate::api::cms::{DocType, Document}; use crate::{templates::docs::TocLink, utils::config}; use anyhow::Context; -use comrak::{format_html_with_plugins, parse_document, ComrakPlugins}; use std::cell::RefCell; use std::collections::HashMap; use std::path::PathBuf; @@ -17,7 +16,6 @@ use comrak::{ use convert_case; use itertools::Itertools; use regex::Regex; -use serde::Deserialize; use std::fmt; use std::sync::Mutex; use url::Url; @@ -1221,13 +1219,6 @@ pub async fn get_document(path: &PathBuf) -> anyhow::Result { Ok(tokio::fs::read_to_string(path).await?) } -#[derive(Deserialize)] -struct SearchResultWithoutSnippet { - title: String, - contents: String, - path: String, -} - pub struct SearchResult { pub title: String, pub path: String,