Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
only generate thumbs on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Dec 5, 2018
1 parent d83d608 commit c5afd31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const last_evaled = Ref{Symbol}()
Records all examples in the database. If error happen, you can fix them and
start record with `resume = true`, to start at the last example that errored.
"""
function record_examples(folder = ""; resolution = (500, 500), resume = false)
function record_examples(folder = ""; resolution = (500, 500), resume = false, generate_thumbnail = false)
AbstractPlotting.inline!(true)
function output_path(entry, ending)
joinpath(folder, "tmp", string(entry.unique_name, ending))
Expand Down Expand Up @@ -201,7 +201,7 @@ function record_examples(folder = ""; resolution = (500, 500), resume = false)
end
rm(joinpath(folder, "tmp"), recursive = true, force = true)
gallery_from_recordings(folder, joinpath(folder, "index.html"))
generate_thumbnails(folder)
generate_thumbnail && generate_thumbnails(folder)
result
end

Expand Down

0 comments on commit c5afd31

Please sign in to comment.