...
This commit is contained in:
parent
19f52a8172
commit
84c656983a
@ -100,7 +100,7 @@ impl DocTree {
|
||||
// Create a new collection
|
||||
let namefixed = name_fix(name);
|
||||
// Clone the storage and set the doctree name
|
||||
let mut storage = self.storage.clone();
|
||||
let storage = self.storage.clone();
|
||||
storage.set_doctree_name(&self.doctree_name);
|
||||
|
||||
let collection = Collection::builder(path, &namefixed)
|
||||
@ -584,7 +584,7 @@ impl DocTreeBuilder {
|
||||
let namefixed = name_fix(name);
|
||||
|
||||
// Clone the storage and set the doctree name
|
||||
let mut storage_clone = storage.clone();
|
||||
let storage_clone = storage.clone();
|
||||
storage_clone.set_doctree_name(&doctree_name);
|
||||
|
||||
let collection = Collection::builder(path.as_ref(), &namefixed)
|
||||
@ -641,7 +641,7 @@ impl DocTreeBuilder {
|
||||
let doctree_name = self.doctree_name.clone().unwrap_or_else(|| "default".to_string());
|
||||
|
||||
// Clone the storage and set the doctree name
|
||||
let mut storage_clone = storage.clone();
|
||||
let storage_clone = storage.clone();
|
||||
storage_clone.set_doctree_name(&doctree_name);
|
||||
|
||||
// Create a temporary DocTree to scan collections
|
||||
@ -686,7 +686,7 @@ impl DocTreeBuilder {
|
||||
let doctree_name = self.doctree_name.unwrap_or_else(|| "default".to_string());
|
||||
|
||||
// Set the doctree name in the storage
|
||||
let mut storage_clone = storage.clone();
|
||||
let storage_clone = storage.clone();
|
||||
storage_clone.set_doctree_name(&doctree_name);
|
||||
|
||||
// Create the DocTree
|
||||
|
@ -22,7 +22,7 @@ pub use include::process_includes;
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::path::Path;
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_doctree_builder() {
|
||||
|
@ -30,10 +30,10 @@ cargo run -- delete-collection grid_documentation --doctree supercollection
|
||||
echo -e "\n=== Listing Remaining Collections ==="
|
||||
cargo run -- list --doctree supercollection
|
||||
|
||||
# Reset all collections
|
||||
echo -e "\n=== Resetting All Collections ==="
|
||||
cargo run -- reset --doctree supercollection
|
||||
# # Reset all collections
|
||||
# echo -e "\n=== Resetting All Collections ==="
|
||||
# cargo run -- reset --doctree supercollection
|
||||
|
||||
# Verify all collections are gone
|
||||
echo -e "\n=== Verifying Reset ==="
|
||||
cargo run -- list --doctree supercollection
|
||||
# # Verify all collections are gone
|
||||
# echo -e "\n=== Verifying Reset ==="
|
||||
# cargo run -- list --doctree supercollection
|
Loading…
Reference in New Issue
Block a user