@@ -15,15 +15,16 @@ function replace_includes(str, included)
1515 return str
1616end
1717
18- for (example, included) in [
19- (" ODE.jl" , [" ODE_BVP.jl" , " ODE_increaseprec.jl" ]),
20- (" PDE.jl" , [" PDE_Poisson.jl" , " PDE_Helmholtz.jl" ]),
21- (" Sampling.jl" , [" Sampling1.jl" ]),
22- (" Periodic.jl" , [" Periodic1.jl" ]),
23- (" Eigenvalue.jl" , [" Eigenvalue_standard.jl" , " Eigenvalue_symmetric.jl" ]),
24- (" NonlinearBVP.jl" , [" NonlinearBVP1.jl" , " NonlinearBVP2.jl" ]),
25- (" system_of_eqn.jl" , [" System1.jl" ])
26- ]
18+ function get_included_files (filename)
19+ v = [l for l in eachline (joinpath (example_dir, filename)) if contains (l, " include" )]
20+ strip .(getindex .(split .(getindex .(split .(v, " include(" ), 2 ), " )" ), 1 ), ' \" ' )
21+ end
22+
23+ file_with_includes (filename) = (filename, get_included_files (filename))
24+
25+ for (example, included) in map (file_with_includes,
26+ [" ODE.jl" , " PDE.jl" , " Sampling.jl" , " Periodic.jl" ,
27+ " Eigenvalue.jl" , " NonlinearBVP.jl" , " system_of_eqn.jl" ])
2728 filename = joinpath (example_dir, example)
2829 Literate. markdown (filename, output_dir, documenter= true ,
2930 preprocess = str -> replace_includes (str, included))
3233makedocs (
3334 format = Documenter. HTML (),
3435 sitename = " ApproxFun.jl" ,
35- authors = " Sheehan Olver" ,
36+ authors = " Sheehan Olver, Jishnu Bhattacharya and contributors " ,
3637 pages = Any[
3738 " Home" => " index.md" ,
3839 " Usage" => Any[
0 commit comments