@@ -71,22 +71,24 @@ function read_tutorials(tutorials_dir)
71
71
72
72
# Iterate over all files named "tutorial.js" in subdirectories
73
73
for subdir in readdir (tutorials_dir)
74
- file_path = joinpath (tutorials_dir, subdir, " tutorial.jl" )
75
- if isfile (file_path)
76
- try
77
- file = open (file_path, " r" )
78
- content = read (file, String)
79
- close (file)
80
- file = open (file_path, " w" )
81
- modified_content = introduce_dropdowns (content)
82
- write (file, modified_content)
83
- close (file)
84
- # Store content in the dictionary
85
- catch e
86
- throw (" Error reading file '$file_path ': $(e) " )
74
+ for tutorial_subdir in readdir (joinpath (tutorials_dir, subdir))
75
+ file_path = joinpath (tutorials_dir, subdir, tutorial_subdir, " tutorial.jl" )
76
+ if isfile (file_path)
77
+ try
78
+ file = open (file_path, " r" )
79
+ content = read (file, String)
80
+ close (file)
81
+ file = open (file_path, " w" )
82
+ modified_content = introduce_dropdowns (content)
83
+ write (file, modified_content)
84
+ close (file)
85
+ # Store content in the dictionary
86
+ catch e
87
+ throw (" Error reading file '$file_path ': $(e) " )
88
+ end
87
89
end
88
90
end
89
- end
91
+ end
90
92
end
91
93
92
94
0 commit comments