Skip to content

Commit

Permalink
Unlink the PDE tutorial (#142)
Browse files Browse the repository at this point in the history
* Unlink the PDE tutorial

* add ipopt
  • Loading branch information
tmigot authored Oct 11, 2024
1 parent 58d89b6 commit 21b52b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
5 changes: 0 additions & 5 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -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"
27 changes: 0 additions & 27 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down

0 comments on commit 21b52b3

Please sign in to comment.