Skip to content

Commit

Permalink
remove gitmodule examples (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye authored Sep 16, 2024
1 parent 3016dcd commit 33d78c7
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ docs/build/**
examples/jdp.mplstyle
docs/node_modules/**
docs/package-lock.json
*.ipynb
examples/parametron_result.jld2
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

5 changes: 3 additions & 2 deletions docs/make_md_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ using Literate

### Process examples
# Always rerun examples
const EXAMPLES_IN = joinpath(@__DIR__, "src", "examples")
const OUTPUT_MD_DIR = joinpath(@__DIR__, "src/examples")
const EXAMPLES_IN = joinpath(@__DIR__, "..", "examples")
const OUTPUT_MD_DIR = joinpath(@__DIR__, "src", "examples")

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

if isempty(get(ENV, "CI", ""))
# only needed when building docs locally; set automatically when built under CI
Expand Down
1 change: 0 additions & 1 deletion examples
Submodule examples deleted from adccfa
14 changes: 14 additions & 0 deletions examples/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
HarmonicBalance = "e13b9ff6-59c3-11ec-14b1-f3d2cc6c135e"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
SteadyStateDiffEq = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"

[compat]
Documenter = "1"
julia = "1.9"
9 changes: 9 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# HarmonicBalance notebooks

This repo contains a collection of example Jupyter notebooks using [HarmonicBalance.jl](https://github.com/NonlinearOscillations/HarmonicBalance.jl)

A detailed description of each example can be found at the [documentation](https://nonlinearoscillations.github.io/HarmonicBalance.jl/).

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)


16 changes: 16 additions & 0 deletions examples/make_nb_examples.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Literate

using HarmonicBalance, Plots
default(; fmt=:png)

### Process examples
# Always rerun examples
const EXAMPLES_IN = @__DIR__
const OUTPUT_NB_DIR = @__DIR__

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

for example in examples
Literate.notebook(example, OUTPUT_NB_DIR; documenter=false, execute=true)
end
File renamed without changes.
File renamed without changes.

2 comments on commit 33d78c7

@oameye
Copy link
Member Author

@oameye oameye commented on 33d78c7 Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/115244

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.4 -m "<description of version>" 33d78c7f35a4745ca425b4b8a4aceda273a5bcc5
git push origin v0.10.4

Please sign in to comment.