Skip to content

Commit

Permalink
feat: new version 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrxiaozhuox committed Jun 4, 2024
1 parent 4f81cb1 commit a869d8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion karaty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ karaty-blueprint = "0.2.1"
# karaty-template = { path = "../template/", template = true }

karaty-template = { version = "0.2.1", template = true }
karaty-docsite = { version = "0.2.1", template = true }
karaty-docsite = { path = "../docsite/", template = true }

[build-dependencies]
serde = { version = "1.0", features = ["derive"] }
Expand Down
6 changes: 2 additions & 4 deletions karaty/karaty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ mode = "embedded-repository"
data = "karaty/data"

[data-source.local]
mode = "embedded-repository"
data = "karaty/data"
# mode = "custom-url"
# data = { url = "/data", index-file = "_index.json" }
mode = "custom-url"
data = { url = "/data", index-file = "_index.json" }

[navigation]

Expand Down
6 changes: 2 additions & 4 deletions karaty/public/karaty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ mode = "embedded-repository"
data = "karaty/data"

[data-source.local]
mode = "embedded-repository"
data = "karaty/data"
# mode = "custom-url"
# data = { url = "/data", index-file = "_index.json" }
mode = "custom-url"
data = { url = "/data", index-file = "_index.json" }

[navigation]

Expand Down
2 changes: 1 addition & 1 deletion karaty/src/utils/template_loader.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::HashMap;
pub fn loader() -> HashMap<String, karaty_blueprint::Templates> {
let mut templates: HashMap<String, karaty_blueprint::Templates> = HashMap::new();
templates.insert("karaty_docsite".to_string(), karaty_docsite::export());
templates.insert("karaty_template".to_string(), karaty_template::export());
templates.insert("karaty_docsite".to_string(), karaty_docsite::export());
templates
}

0 comments on commit a869d8b

Please sign in to comment.