From 21b52b3b9fb70e825f67deeaa3900765e68a619e Mon Sep 17 00:00:00 2001 From: Tangi Migot Date: Fri, 11 Oct 2024 17:38:39 -0400 Subject: [PATCH] Unlink the PDE tutorial (#142) * Unlink the PDE tutorial * add ipopt --- docs/Project.toml | 5 ----- docs/make.jl | 27 --------------------------- 2 files changed, 32 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index b469dde..6fdfada 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,26 +1,21 @@ [deps] ADNLPModels = "54578032-b7ea-4c30-94aa-7cbd1cce6c9a" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -Gridap = "56d4f2e9-7ea1-5844-9cf6-b9c51ca7ce8e" JSOSolvers = "10dff2fc-5484-5881-a0e0-c90441020f8a" Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" NLPModels = "a4795742-8479-5a88-8948-cc11e1c8c1a6" NLPModelsIpopt = "f4238b75-b362-5c4c-b852-0801c9a21d71" -NLPModelsModifiers = "e01155f1-5c6f-4375-a9d8-616dd036575f" OptimizationProblems = "5049e819-d29b-5fba-b941-0eee7e64c1c6" -PDENLPModels = "80da258d-c172-4540-9646-64f172512520" SolverCore = "ff4d7338-4cf1-434d-91df-b86cb86fb843" Stopping = "c4fe5a9e-e7fb-5c3d-89d5-7f405ab2214f" [compat] ADNLPModels = "0.7" Documenter = "0.27" -Gridap = "0.15.5" JSOSolvers = "0.12" NLPModels = "0.21" NLPModelsIpopt = "0.10" OptimizationProblems = "0.7" -PDENLPModels = "0.3" SolverCore = "0.3" Stopping = "0.6" \ No newline at end of file diff --git a/docs/make.jl b/docs/make.jl index 2a13495..5e241a5 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -3,38 +3,11 @@ using ADNLPModels using Documenter using Printf using FletcherPenaltySolver -using Literate - -EXAMPLE = joinpath(@__DIR__, "assets", "example.jl") -OUTPUT = joinpath(@__DIR__, "src") - -# Generate markdown -binder_badge = "# [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/JuliaSmoothOptimizers/FletcherPenaltySolver.jl/gh-pages?labpath=dev%2Fexample.ipynb)" -function preprocess_docs(content) - return string(binder_badge, "\n\n", content) -end - -Literate.markdown( - EXAMPLE, - OUTPUT; - preprocess = preprocess_docs, - codefence = "```julia" => "```", - execute = true, -) - -link_to_env = "# The environment used in this tutorial is the following [Project.toml](https://github.com/JuliaSmoothOptimizers/FletcherPenaltySolver.jl/blob/gh-pages/Project.toml) and [Manifest.toml](https://github.com/JuliaSmoothOptimizers/FletcherPenaltySolver.jl/blob/gh-pages/Manifest.toml). " -function preprocess_notebook(content) - return string(link_to_env, "\n\n", content) -end -Literate.notebook(EXAMPLE, OUTPUT; preprocess = preprocess_notebook) -Literate.script(EXAMPLE, OUTPUT) pages = [ "Introduction" => "index.md", "Tutorial" => "tutorial.md", - # "Benchmark" => "benchmark.md", "Fine-tune FPS" => "fine-tuneFPS.md", - "Large-scale example" => "example.md", "Reference" => "reference.md", ]