From be31e4cfc24a1d8f00aa761dd491d27e1fc7811d Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Wed, 1 Jun 2022 09:48:09 -0400 Subject: [PATCH] separate pages --- docs/make.jl | 19 +++---------------- docs/pages.jl | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 docs/pages.jl diff --git a/docs/make.jl b/docs/make.jl index aa715367e..6ec622d93 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,5 +1,7 @@ using Documenter, NonlinearSolve +include("pages.jl") + makedocs( sitename="NonlinearSolve.jl", authors="Chris Rackauckas", @@ -8,22 +10,7 @@ makedocs( format = Documenter.HTML(analytics = "UA-90474609-3", assets = ["assets/favicon.ico"], canonical="https://nonlinearsolve.sciml.ai/stable/"), - pages=[ - "Home" => "index.md", - "Tutorials" => Any[ - "tutorials/nonlinear.md", - "tutorials/iterator_interface.md" - ], - "Basics" => Any[ - "basics/NonlinearProblem.md", - "basics/NonlinearFunctions.md", - "basics/FAQ.md" - ], - "Solvers" => Any[ - "solvers/NonlinearSystemSolvers.md", - "solvers/BracketingSolvers.md" - ] - ] + pages=pages ) deploydocs( diff --git a/docs/pages.jl b/docs/pages.jl new file mode 100644 index 000000000..5d4903ca2 --- /dev/null +++ b/docs/pages.jl @@ -0,0 +1,18 @@ +# Put in a separate page so it can be used by SciMLDocs.jl + +pages=[ + "Home" => "index.md", + "Tutorials" => Any[ + "tutorials/nonlinear.md", + "tutorials/iterator_interface.md" + ], + "Basics" => Any[ + "basics/NonlinearProblem.md", + "basics/NonlinearFunctions.md", + "basics/FAQ.md" + ], + "Solvers" => Any[ + "solvers/NonlinearSystemSolvers.md", + "solvers/BracketingSolvers.md" + ] +] \ No newline at end of file