Skip to content

Commit 33d78c7

Browse files
authored
remove gitmodule examples (#239)
1 parent 3016dcd commit 33d78c7

File tree

10 files changed

+44
-7
lines changed

10 files changed

+44
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ docs/build/**
1111
examples/jdp.mplstyle
1212
docs/node_modules/**
1313
docs/package-lock.json
14+
*.ipynb
15+
examples/parametron_result.jld2

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/make_md_examples.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ using Literate
22

33
### Process examples
44
# Always rerun examples
5-
const EXAMPLES_IN = joinpath(@__DIR__, "src", "examples")
6-
const OUTPUT_MD_DIR = joinpath(@__DIR__, "src/examples")
5+
const EXAMPLES_IN = joinpath(@__DIR__, "..", "examples")
6+
const OUTPUT_MD_DIR = joinpath(@__DIR__, "src", "examples")
77

88
examples = filter!(file -> file[(end - 2):end] == ".jl", readdir(EXAMPLES_IN; join=true))
9+
filter!(file -> !contains(file, "make_nb_examples"), examples)
910

1011
if isempty(get(ENV, "CI", ""))
1112
# only needed when building docs locally; set automatically when built under CI

examples

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/Project.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
4+
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
5+
HarmonicBalance = "e13b9ff6-59c3-11ec-14b1-f3d2cc6c135e"
6+
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
7+
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
8+
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
9+
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
10+
SteadyStateDiffEq = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"
11+
12+
[compat]
13+
Documenter = "1"
14+
julia = "1.9"

examples/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# HarmonicBalance notebooks
2+
3+
This repo contains a collection of example Jupyter notebooks using [HarmonicBalance.jl](https://github.com/NonlinearOscillations/HarmonicBalance.jl)
4+
5+
A detailed description of each example can be found at the [documentation](https://nonlinearoscillations.github.io/HarmonicBalance.jl/).
6+
7+
If you would like to contribute your favourite system, feel free to get in touch, or simply open a pull request to this repo and the documentation. Also, if you use HarmonicBalance.jl in your project, we kindly ask you to cite [this paper](https://scipost.org/SciPostPhysCodeb.6)
8+
9+

examples/make_nb_examples.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Literate
2+
3+
using HarmonicBalance, Plots
4+
default(; fmt=:png)
5+
6+
### Process examples
7+
# Always rerun examples
8+
const EXAMPLES_IN = @__DIR__
9+
const OUTPUT_NB_DIR = @__DIR__
10+
11+
examples = filter!(file -> file[(end - 2):end] == ".jl", readdir(EXAMPLES_IN; join=true))
12+
filter!(file -> !contains(file, "make_nb_examples"), examples)
13+
14+
for example in examples
15+
Literate.notebook(example, OUTPUT_NB_DIR; documenter=false, execute=true)
16+
end
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)