This commit is contained in:
2025-04-09 08:51:55 +02:00
parent 84c656983a
commit f938e8ff6b
4 changed files with 34 additions and 3 deletions

19
include_example.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Change to the directory where the script is located
cd "$(dirname "$0")"
# Exit immediately if a command exits with a non-zero status
set -e
cd doctreecmd
# First, scan the collections with a specific doctree name
echo "=== Scanning Collections with doctree name 'include_demo' ==="
cargo run -- scan ../examples --doctree include_demo
# List the collections
echo -e "\n=== Listing Collections ==="
cargo run -- list --doctree include_demo
# Get the document with includes in markdown format
echo -e "\n=== Getting Document with Includes (Markdown) ==="
cargo run -- get -c grid1 -p include_example.md --doctree include_demo