File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
echo " Generating Jupyter notebooks from .qmd files..."
8
8
9
- # Get the directory where this script is located
10
- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
11
-
12
9
# Find all .qmd files in tutorials, usage, and developers directories
13
10
find tutorials usage developers -name " index.qmd" | while read qmd_file; do
14
11
dir=$( dirname " $qmd_file " )
@@ -17,7 +14,8 @@ find tutorials usage developers -name "index.qmd" | while read qmd_file; do
17
14
echo " Converting $qmd_file to $ipynb_file "
18
15
19
16
# Convert qmd to ipynb using our custom Python script
20
- python3 " ${SCRIPT_DIR} /qmd_to_ipynb.py" " $qmd_file " " $ipynb_file "
17
+ # Use relative path from repo root (assets/scripts/qmd_to_ipynb.py)
18
+ python3 assets/scripts/qmd_to_ipynb.py " $qmd_file " " $ipynb_file "
21
19
22
20
# Check if conversion was successful
23
21
if [ -f " $ipynb_file " ]; then
You can’t perform that action at this time.
0 commit comments