Skip to content

Commit 42c5d70

Browse files
authored
Remove trailing slash from path (#1081)
1 parent 6955542 commit 42c5d70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pgml-dashboard/src/utils/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn blogs_dir() -> String {
4444
pub fn docs_dir() -> String {
4545
match var("DASHBOARD_DOCS_DIRECTORY") {
4646
Ok(dir) => dir,
47-
Err(_) => "../pgml-docs/".to_string(),
47+
Err(_) => "../pgml-docs".to_string(),
4848
}
4949
}
5050

pgml-dashboard/src/utils/markdown.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ impl SearchIndex {
14091409
.unwrap()
14101410
.to_string()
14111411
.replace("README", "")
1412-
.replace(&config::docs_dir(), "/");
1412+
.replace(&config::docs_dir(), "");
14131413
let mut doc = Document::default();
14141414
doc.add_text(title_field, &title_text);
14151415
doc.add_text(body_field, &body_text);

0 commit comments

Comments
 (0)