Skip to content

Commit 8f37aa5

Browse files
committed
docs: handle Literate.jl in nested dirs
1 parent 9e646d3 commit 8f37aa5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ using Literate: Literate
33
# Function to process literate blocks in test files
44
function process_literate_blocks(base_path="test")
55
test_dir = joinpath(@__DIR__, "..", base_path)
6-
for file in readdir(test_dir)
7-
if endswith(file, ".jl")
8-
process_file(joinpath(test_dir, file))
6+
for (dirpath, _, files) in walkdir(test_dir)
7+
for file in files
8+
endswith(file, ".jl") && process_file(joinpath(dirpath, file))
99
end
1010
end
1111
end

0 commit comments

Comments
 (0)