File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ cd(joinpath(@__DIR__, "src")) do
24
24
Base. rm (" stdlib" ; recursive= true , force= true )
25
25
mkdir (" stdlib" )
26
26
for dir in readdir (STDLIB_DIR)
27
+ if (dir == " SuiteSparse" ) && (! Base. USE_GPL_LIBS)
28
+ @info " Excluding SuiteSparse from the docs because Base.USE_GPL_LIBS is false"
29
+ continue
30
+ end
27
31
sourcefile = joinpath (STDLIB_DIR, dir, " docs" , " src" )
28
32
if dir in EXT_STDLIB_DOCS
29
33
sourcefile = joinpath (sourcefile, " basedocs.md" )
@@ -236,12 +240,14 @@ DocMeta.setdocmeta!(
236
240
maybe_revise (:(using SparseArrays, LinearAlgebra));
237
241
recursive= true , warn= false ,
238
242
)
239
- DocMeta. setdocmeta! (
240
- SuiteSparse,
241
- :DocTestSetup ,
242
- maybe_revise (:(using SparseArrays, LinearAlgebra, SuiteSparse));
243
- recursive= true , warn= false ,
244
- )
243
+ if Base. USE_GPL_LIBS
244
+ DocMeta. setdocmeta! (
245
+ SuiteSparse,
246
+ :DocTestSetup ,
247
+ maybe_revise (:(using SparseArrays, LinearAlgebra, SuiteSparse));
248
+ recursive= true , warn= false ,
249
+ )
250
+ end
245
251
DocMeta. setdocmeta! (
246
252
UUIDs,
247
253
:DocTestSetup ,
You can’t perform that action at this time.
0 commit comments