From adb65c4ac9d2a768b600681f9c9a33760986280d Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 4 Jul 2015 23:51:58 +0300 Subject: [PATCH] document generation system updates --- docs/{build.jl => build_api.jl} | 0 docs/build_notebooks.jl | 2 +- docs/index.rst | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) rename docs/{build.jl => build_api.jl} (100%) create mode 100644 docs/index.rst diff --git a/docs/build.jl b/docs/build_api.jl similarity index 100% rename from docs/build.jl rename to docs/build_api.jl diff --git a/docs/build_notebooks.jl b/docs/build_notebooks.jl index 2baed9d..399b792 100644 --- a/docs/build_notebooks.jl +++ b/docs/build_notebooks.jl @@ -11,11 +11,11 @@ for ipynb in readdir("tutorials") println("Running notebook tutorials/$ipynb") try run(`runipy -o tutorials/$ipynb --kernel=julia-0.4 --port=34211`) - runtime = toc() status = 0 catch println("did not work") end + runtime = toc() run(`ipython nbconvert tutorials/$ipynb --to rst --output=tutorials/$(ipynb[1:end-6])`) println("took $runtime seconds") push!(results, Dict("filename" => ipynb, "status" => status, "runtime" => runtime)) diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 0000000..7f984e5 --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,13 @@ +JuliaFEM +======== + +.. include:: ../readme.rst + +Contents: + +.. toctree:: + :maxdepth: 2 + + readme + api/index +