We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6ba605d commitb3b5f03Copy full SHA for b3b5f03
pgml-dashboard/src/utils/markdown.rs
@@ -1,7 +1,6 @@
1
usecrate::api::cms::{DocType,Document};
2
usecrate::{templates::docs::TocLink, utils::config};
3
use anyhow::Context;
4
-use comrak::{format_html_with_plugins, parse_document,ComrakPlugins};
5
use std::cell::RefCell;
6
use std::collections::HashMap;
7
use std::path::PathBuf;
@@ -17,7 +16,6 @@ use comrak::{
17
16
use convert_case;
18
use itertools::Itertools;
19
use regex::Regex;
20
-use serde::Deserialize;
21
use std::fmt;
22
use std::sync::Mutex;
23
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
1224
-#[derive(Deserialize)]
1225
-structSearchResultWithoutSnippet{
1226
-title:String,
1227
-contents:String,
1228
-path:String,
1229
-}
1230
-
1231
pubstructSearchResult{
1232
pubtitle:String,
1233
pubpath:String,