Skip to content

Commit cd62bf2

Browse files
authored
Finish and tag v1 (#2)
* remove old files * export Syxtems * make compilable * add docs * better read me and module * buildable docs * tests pass as far as I can tell * ad cairomakie to the docbuild
1 parent f8a9e74 commit cd62bf2

File tree

9 files changed

+44
-374
lines changed

9 files changed

+44
-374
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ docs/build
55
deps/build.log
66
Manifest.toml
77
*.scss
8-
*.css
8+
*.css
9+
*style.jl

CHANGELOG.md

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

CITATION.bib

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

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ version = "1"
77
DynamicalSystemsBase = "6e36e845-645a-534a-86f2-f5d4aa5a06b4"
88
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
99
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
10+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
11+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1012

1113
[compat]
1214
DynamicalSystemsBase = "3"

README.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
# DynamicalSystemsBase.jl
1+
# PredefinedDynamicalSystems.jl
22

3-
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaDynamics.github.io/DynamicalSystemsBase.jl/dev)
4-
[![](https://img.shields.io/badge/DOI-10.1007/978-3-030-91032-7-purple)](https://link.springer.com/book/10.1007/978-3-030-91032-7)
5-
[![CI](https://github.com/JuliaDynamics/DynamicalSystemsBase.jl/workflows/CI/badge.svg)](https://github.com/JuliaDynamics/DynamicalSystemsBase.jl/actions?query=workflow%3ACI)
6-
[![codecov](https://codecov.io/gh/JuliaDynamics/DynamicalSystemsBase.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaDynamics/DynamicalSystemsBase.jl)
7-
[![Package Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/DynamicalSystemsBase)](https://pkgs.genieframework.com?packages=DynamicalSystemsBase)
3+
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaDynamics.github.io/PredefinedDynamicalSystems.jl/dev)
4+
[![CI](https://github.com/JuliaDynamics/PredefinedDynamicalSystems.jl/workflows/CI/badge.svg)](https://github.com/JuliaDynamics/PredefinedDynamicalSystems.jl/actions?query=workflow%3ACI)
5+
[![Package Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/PredefinedDynamicalSystems)](https://pkgs.genieframework.com?packages=PredefinedDynamicalSystems)
86

9-
A Julia package that defines the `DynamicalSystem` interface and many concrete implementations used in the [DynamicalSystems.jl](https://juliadynamics.github.io/DynamicalSystems.jl/dev/) ecosystem.
7+
Module which contains pre-defined dynamical systems that can be used by the [DynamicalSystems.jl](https://juliadynamics.github.io/DynamicalSystems.jl/dev/) library.
8+
To install it, run `import Pkg; Pkg.add("PredefinedDynamicalSystems")`.
109

11-
To install it, run `import Pkg; Pkg.add("DynamicalSystemsBase")`.
12-
Typically, you do not want to use `DynamicalSystemsBase` directly,
13-
as downstream analysis packages re-export it.
10+
Predefined systems exist as functions that
11+
return a `DynamicalSystem` instance. They are accessed like:
12+
```julia
13+
ds = PredefinedDynamicalSystems.lorenz(u0; ρ = 32.0)
14+
```
15+
The alias `Systems` is also exported as a deprecation.
1416

15-
All further information is provided in the documentation, which you can either find [online](https://juliadynamics.github.io/DynamicalSystemsBase.jl/dev/) or build locally by running the `docs/make.jl` file.
17+
**This module is provided purely as a convenience.
18+
Nothing here is tested, nor guaranteed to be stable in future versions.
19+
It is not recommended to use this module for anything else besides
20+
on-the-spot demonstrative examples.**
21+
22+
For some systems, a Jacobian function is also defined.
23+
The naming convention for the Jacobian function is `\$(name)_jacob`.
24+
So, for the above example we have `J = Systems.lorenz_jacob`.
25+
26+
All available systems are provided in the documentation, which you can either find [online](https://juliadynamics.github.io/PredefinedDynamicalSystems.jl/dev/) or build locally by running the `docs/make.jl` file.

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"
45
PredefinedDynamicalSystems = "31e2f376-db9e-427a-b76e-a14f56347a14"

docs/make.jl

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
11
cd(@__DIR__)
2-
CI = get(ENV, "CI", nothing) == "true" || get(ENV, "GITHUB_TOKEN", nothing) !== nothing
3-
using PredefinedDynamicalSystems # comes from global environment in CI
4-
using Documenter
5-
using DocumenterTools: Themes
6-
ENV["JULIA_DEBUG"] = "Documenter"
72

8-
# %% JuliaDynamics theme
9-
# It includes themeing for the HTML build
10-
# and themeing for the Makie plotting
11-
12-
using DocumenterTools: Themes
13-
for file in ("juliadynamics-lightdefs.scss", "juliadynamics-darkdefs.scss", "juliadynamics-style.scss")
14-
filepath = joinpath(@__DIR__, file)
15-
if !isfile(filepath)
16-
download("https://raw.githubusercontent.com/JuliaDynamics/doctheme/master/$file", joinpath(@__DIR__, file))
17-
end
18-
end
19-
# create the themes
20-
for w in ("light", "dark")
21-
header = read(joinpath(@__DIR__, "juliadynamics-style.scss"), String)
22-
theme = read(joinpath(@__DIR__, "juliadynamics-$(w)defs.scss"), String)
23-
write(joinpath(@__DIR__, "juliadynamics-$(w).scss"), header*"\n"*theme)
24-
end
25-
# compile the themes
26-
Themes.compile(joinpath(@__DIR__, "juliadynamics-light.scss"), joinpath(@__DIR__, "src/assets/themes/documenter-light.css"))
27-
Themes.compile(joinpath(@__DIR__, "juliadynamics-dark.scss"), joinpath(@__DIR__, "src/assets/themes/documenter-dark.css"))
28-
29-
# %% Build docs
30-
ENV["JULIA_DEBUG"] = "Documenter"
3+
import Downloads
4+
Downloads.download(
5+
"https://raw.githubusercontent.com/JuliaDynamics/doctheme/master/apply_style.jl",
6+
joinpath(@__DIR__, "apply_style.jl")
7+
)
8+
include("apply_style.jl")
319

32-
include("style.jl")
10+
using PredefinedDynamicalSystems
3311

3412
makedocs(
3513
modules = [PredefinedDynamicalSystems],

0 commit comments

Comments
 (0)