We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6955542 commit 42c5d70Copy full SHA for 42c5d70
pgml-dashboard/src/utils/config.rs
@@ -44,7 +44,7 @@ pub fn blogs_dir() -> String {
44
pub fn docs_dir() -> String {
45
match var("DASHBOARD_DOCS_DIRECTORY") {
46
Ok(dir) => dir,
47
- Err(_) => "../pgml-docs/".to_string(),
+ Err(_) => "../pgml-docs".to_string(),
48
}
49
50
pgml-dashboard/src/utils/markdown.rs
@@ -1409,7 +1409,7 @@ impl SearchIndex {
1409
.unwrap()
1410
.to_string()
1411
.replace("README", "")
1412
- .replace(&config::docs_dir(), "/");
+ .replace(&config::docs_dir(), "");
1413
let mut doc = Document::default();
1414
doc.add_text(title_field, &title_text);
1415
doc.add_text(body_field, &body_text);
0 commit comments