From b17ff748dbb2af69efc21ec08ea7c3738fdc7725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Wed, 30 Oct 2024 17:17:44 +0100 Subject: [PATCH] Move build script to example folder --- deps/.gitignore | 2 -- examples/README.md | 11 ++++++----- {deps => examples}/build.jl | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 deps/.gitignore rename {deps => examples}/build.jl (76%) diff --git a/deps/.gitignore b/deps/.gitignore deleted file mode 100644 index aa10a156..00000000 --- a/deps/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -build.log - diff --git a/examples/README.md b/examples/README.md index 76ce6cd2..3d3cd5d4 100644 --- a/examples/README.md +++ b/examples/README.md @@ -10,9 +10,10 @@ You can also generate Jupyter notebooks and run them locally by performing the f 1. [install RigidBodyDynamics.jl](http://www.juliarobotics.org/RigidBodyDynamics.jl/stable/#Installation-1) 2. [install IJulia](https://github.com/JuliaLang/IJulia.jl) (`add` it to the default project) 3. in the Julia REPL, run - ``` - using Pkg - Pkg.build("RigidBodyDynamics") - using IJulia, RigidBodyDynamics - notebook(dir=joinpath(dirname(pathof(RigidBodyDynamics)), "..", "examples")) + ```julia + using RigidBodyDynamics + exampledir = joinpath(dirname(pathof(RigidBodyDynamics)), "..", "examples") + include(joinpath(exampledir, "build.jl")) + using IJulia + notebook(dir=exampledir) ``` diff --git a/deps/build.jl b/examples/build.jl similarity index 76% rename from deps/build.jl rename to examples/build.jl index 3a0aa9b5..a3f8cd58 100644 --- a/deps/build.jl +++ b/examples/build.jl @@ -1,6 +1,6 @@ append!(empty!(LOAD_PATH), Base.DEFAULT_LOAD_PATH) using Pkg -exampledir = joinpath(@__DIR__, "..", "examples") +exampledir = @__DIR__ Pkg.activate(exampledir) Pkg.instantiate() include(joinpath(exampledir, "generate_notebooks.jl"))