Skip to content

Commit e1f8666

Browse files
committed
fix
1 parent de6e4c6 commit e1f8666

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/MultiDocumenter.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,13 @@ end
7272
function walk_outputs(f, root, docs::Vector{MultiDocRef}, dirs::Vector{String})
7373
for ref in docs
7474
p = joinpath(root, ref.path)
75-
DocumenterTools.walkdocs(p, fileinfo -> fileinfo.filename == "index.html") do fileinfo
76-
f(fileinfo.relpath, fileinfo.fullpath)
75+
for dir in dirs
76+
dirpath = joinpath(p, dir)
77+
isdir(dirpath) || continue
78+
DocumenterTools.walkdocs(dirpath, fileinfo -> fileinfo.filename == "index.html") do fileinfo
79+
f(relpath(dirname(fileinfo.fullpath), root), fileinfo.fullpath)
80+
end
81+
break
7782
end
7883
end
7984
end

0 commit comments

Comments
 (0)