Skip to content

Commit add7c36

Browse files
authored
Merge pull request #8 from JuliaComputing/sp/exclude-dotgit
Exclude .git from output
2 parents 699a993 + 85708cd commit add7c36

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/MultiDocumenter.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,13 @@ function make_output_structure(docs::Vector)
9191
dir = mktempdir()
9292

9393
for doc in docs
94-
cp(doc.upstream, joinpath(dir, doc.path))
94+
outpath = joinpath(dir, doc.path)
95+
cp(doc.upstream, outpath)
96+
97+
gitpath = joinpath(outpath, ".git")
98+
if isdir(gitpath)
99+
rm(gitpath, recursive=true)
100+
end
95101
end
96102

97103
open(joinpath(dir, "index.html"), "w") do io

0 commit comments

Comments
 (0)