Skip to content

Commit

Permalink
Move build script to example folder
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 30, 2024
1 parent fc94ab5 commit b17ff74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions deps/.gitignore

This file was deleted.

11 changes: 6 additions & 5 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
2 changes: 1 addition & 1 deletion deps/build.jl → examples/build.jl
Original file line number Diff line number Diff line change
@@ -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"))

0 comments on commit b17ff74

Please sign in to comment.