Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf490e5

Browse files
committed
checkpoint
1 parent3548698 commitaf490e5

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎pgml-dashboard/src/api/cms.rs‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -842,9 +842,15 @@ This is the end of the markdown
842842

843843
asyncfnrocket() ->Rocket<Build>{
844844
dotenv::dotenv().ok();
845+
846+
let site_search =crate::utils::markdown::SiteSearch::new()
847+
.await
848+
.expect("Error initializing site search");
849+
// site_search.build().await.expect("Error building site search");
850+
845851
rocket::build()
846-
//.manage(crate::utils::markdown::SearchIndex::open().unwrap())
847-
.mount("/",crate::api::cms::routes())
852+
.manage(site_search)
853+
.mount("/",routes())
848854
}
849855

850856
fngitbook_test(html:String) ->Option<String>{
@@ -887,7 +893,7 @@ This is the end of the markdown
887893
}
888894
}
889895

890-
// Ensure Docs render andther are no unparsed gitbookcompnents.
896+
// Ensure Docs render andthere are no unparsed gitbookcomponents.
891897
#[sqlx::test]
892898
asyncfnrender_guides_test(){
893899
let client =Client::tracked(rocket().await).await.unwrap();

‎pgml-dashboard/src/components/layouts/head/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ mod default_head_template_test {
134134

135135
#[test]
136136
fnset_head(){
137-
letmuthead =Head::new()
137+
let head =Head::new()
138138
.title("test title")
139139
.description("test description")
140140
.image("image/test_image.jpg");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp