diff --git a/pgml-dashboard/src/utils/config.rs b/pgml-dashboard/src/utils/config.rs index f943dd3b8..7a3747764 100644 --- a/pgml-dashboard/src/utils/config.rs +++ b/pgml-dashboard/src/utils/config.rs @@ -44,7 +44,7 @@ pub fn blogs_dir() -> String { pub fn docs_dir() -> String { match var("DASHBOARD_DOCS_DIRECTORY") { Ok(dir) => dir, - Err(_) => "../pgml-docs/".to_string(), + Err(_) => "../pgml-docs".to_string(), } } diff --git a/pgml-dashboard/src/utils/markdown.rs b/pgml-dashboard/src/utils/markdown.rs index 7ad9a912a..e708c483c 100644 --- a/pgml-dashboard/src/utils/markdown.rs +++ b/pgml-dashboard/src/utils/markdown.rs @@ -1409,7 +1409,7 @@ impl SearchIndex { .unwrap() .to_string() .replace("README", "") - .replace(&config::docs_dir(), "/"); + .replace(&config::docs_dir(), ""); let mut doc = Document::default(); doc.add_text(title_field, &title_text); doc.add_text(body_field, &body_text); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy