Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Jan 3, 2024
1 parent 635d459 commit 1d068bb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ function build_examples(example_sources, destdir)
# will be stored in the `assets/` directory of the hosted docs.
for source in example_sources
function preprocess(str)
# Ideally, notebooks would use WGLMakie instead of GLMakie. There
# are currently too many bugs to enable by default:
# Ideally, notebooks would use WGLMakie instead of GLMakie, but
# there are currently too many bugs to enable by default:
# https://github.com/SunnySuite/Sunny.jl/issues/211
#=
str = replace(str, r"^using(.*?)GLMakie"m => s"using\1WGLMakie")
=#
if false
str = replace(str, r"^using(.*?)GLMakie"m => s"using\1WGLMakie")
else
str
end
end
# Build notebooks
Literate.notebook(source, notebooks_path; preprocess, execute=false, credit=false)
Expand Down

0 comments on commit 1d068bb

Please sign in to comment.