Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
f9d5262
Update index.md
BethProedrou Apr 29, 2025
3f47a4f
Update index.md
BethProedrou Apr 29, 2025
ad9bd53
Further updates to the Update index.md
BethProedrou Apr 30, 2025
0aaf778
Improved the "Where to begin" section
BethProedrou Apr 30, 2025
ffff152
improved Installation section
BethProedrou May 1, 2025
12a4821
added some missing commands to install the package
BethProedrou May 1, 2025
9f92084
added link to DAE
BethProedrou May 1, 2025
02f0868
improved the link
BethProedrou May 1, 2025
31f7f96
Improving Mathematical Model
BethProedrou May 1, 2025
27075a5
Impoved the mathematical model text
May 3, 2025
4810a1e
Merge branch 'main' into edit_tutorial_contents
hexaeder May 12, 2025
334d867
remove "diff style" in index.md
hexaeder May 12, 2025
49f8074
replaced the old style of changes with the new one
BethProedrou May 13, 2025
76cf0b4
half-way save
BethProedrou May 13, 2025
8a34eaf
fixed phrasing
BethProedrou May 14, 2025
65dee53
Fixed phrasing
BethProedrou May 14, 2025
728f0b6
improved phrasing
BethProedrou May 14, 2025
f5ba8de
fixed change I made
BethProedrou May 14, 2025
c780541
placed basic complex network systems information in a blockquote
May 26, 2025
5955040
improved readability in IDE
May 26, 2025
c08ceae
improved readability in IDE
May 26, 2025
1f04988
Fixed and added notes
May 26, 2025
ecfac0c
rearranged code to improve readability (work in progress)
May 28, 2025
2e555c6
working
May 28, 2025
bb3993f
working
May 29, 2025
f9e33db
fixed issues causing it not to run
May 29, 2025
c7749de
Merge branch 'main' into edit_tutorial_contents
May 29, 2025
47dfd31
Getting Started Tutorial v.1
May 31, 2025
84f1f2b
address comments
hexaeder Jun 2, 2025
45b002e
address more comments
hexaeder Jun 2, 2025
5da970c
deleted comment
Jun 23, 2025
f79e169
deleted unneeded comment
Jun 23, 2025
1987454
deleted a comment
Jun 23, 2025
3c66526
Merge branch 'edit_tutorial_contents' of https://github.com/JuliaDyna…
Jun 23, 2025
67584ca
Merge branch 'main' into edit_tutorial_contents
Jun 23, 2025
d8855e9
removed comment about a missing image
Jul 1, 2025
b4426e9
incorporated the changes requested
Jul 1, 2025
3bc5b81
Refactored: added simple network image to the file
Jul 9, 2025
2f02a6e
itermediate state
Jul 14, 2025
a719662
intermediate state
Jul 14, 2025
726fcf4
made changes to improve the readability of the page
Jul 17, 2025
fbd941e
made changes to improve the readability of the page
Jul 17, 2025
95d809e
changed plots to make them more understandable
Jul 18, 2025
5dda53f
improved readability
Jul 18, 2025
961ad26
improved readability
Jul 18, 2025
e790cb4
fix link
hexaeder Jul 29, 2025
8d11532
maybe fix darkmode problems
hexaeder Jul 29, 2025
f85e529
update index.md
hexaeder Jul 30, 2025
aac1f65
update localmake
hexaeder Jul 30, 2025
2a59c55
fix spelling and links
hexaeder Jul 30, 2025
21bcc69
fix link
hexaeder Jul 30, 2025
f3b0f5b
fix link
hexaeder Jul 30, 2025
daaec94
fix mathematical model description
hexaeder Jul 30, 2025
ba5b4f3
update network cosntruction
hexaeder Jul 30, 2025
de37a5c
one line imports
hexaeder Jul 30, 2025
be0b5c1
Merge branch 'main' into edit_tutorial_contents
hexaeder Jul 30, 2025
eb054c7
rename inventory
hexaeder Jul 30, 2025
f080955
intermediate state
Aug 3, 2025
a5ea558
Implemented: minor changes to phrasing
Aug 4, 2025
8001f3f
fix darkmode latex theme
hexaeder Aug 4, 2025
30d4923
fix typos
hexaeder Aug 4, 2025
54c8e56
fix spelling
hexaeder Aug 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
291 changes: 219 additions & 72 deletions docs/examples/getting_started_with_network_dynamics.jl

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/examples/heterogeneous_system.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#=
# Modeling a heterogeneous system

This example can be dowloaded as a normal Julia script [here](@__NAME__.jl). #md
This example can be downloaded as a normal Julia script [here](@__NAME__.jl). #md

One of the main purposes of NetworkDynamics.jl is to facilitate
modeling coupled systems with heterogenities. This means that
components can differ in their parameters as well as in their dynamics.
One of the main purposes of NetworkDynamics.jl is to facilitate the
modeling systems whose components can differ in their parameters as well as their dynamics.
These are known as Coupled systems with heterogeneities.

## Heterogenous parameters
## Heterogeneous parameters

We start by setting up a simple system of Kuramoto oscillators.
=#
Expand Down
47 changes: 23 additions & 24 deletions docs/localmake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ At the end of each run the user is prompted to rerun the make process. Using rev
use the updated `*.md` and source files. This way the Julia session keeps alive and the
individual builds are much faster.
=#

#=
using Pkg
using Revise
using LiveServer

Pkg.activate(@__DIR__)
Pkg.instantiate()
print("Do you want to update docs environment? [y/n] ")
if VERSION ≤ v"1.11-"
Pkg.develop(PackageSpec(path=dirname(@__DIR__))) # adds the package this script is called from
end
print("Do you want to update docs environment? [y/N] ")
answer = readline()
if !isempty(answer) && answer[1] == 'y'
Pkg.update()
end

using Revise
using LiveServer
using REPL.TerminalMenus
Pkg.instantiate()

port = isempty(ARGS) ? 8000 : parse(Int, ARGS[1])
@assert 8000 ≤ port ≤ 9000 "port has to be in range 8000..9000!"

@info "Start server..."
@async serve(;dir=joinpath(@__DIR__, "build"), port)

menu = RadioMenu(["Run again!", "Quit!"])
while true
run = true
while run
revise()
@info "Start building docs..."
try
Expand All @@ -41,23 +41,22 @@ while true
@info "make.jl error" e
end

println("\nDocs are served at http://localhost:$port")

if request("What now?", menu) != 1
break
printstyled("\n\nDocs are served at http://localhost:$port\n\n", color=:blue, bold=true)
println("Run again? Enter! Exit with 'q'.")
if readline() == "q"
global run = false
end
end
=#


using Pkg
Pkg.activate(@__DIR__)
using NetworkDynamics
using LiveServer
# using Pkg
# Pkg.activate(@__DIR__)
# using NetworkDynamics
# using LiveServer

cd(pkgdir(NetworkDynamics))
# cd(pkgdir(NetworkDynamics))

servedocs(
literate_dir = joinpath("docs", "examples"),
skip_dir = joinpath("docs", "src", "generated")
)
# servedocs(
# literate_dir = joinpath("docs", "examples"),
# skip_dir = joinpath("docs", "src", "generated")
# )
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ NDI.get_electron_window()

links = InterLinks(
"DiffEq" => "https://docs.sciml.ai/DiffEqDocs/stable/",
"MTK" => "https://docs.sciml.ai/ModelingToolkit/stable/",
"ModelingToolkit" => "https://docs.sciml.ai/ModelingToolkit/stable/",
"SymbolicIndexingInterface" => "https://docs.sciml.ai/SymbolicIndexingInterface/stable/",
"DiffEqCallbacks" => "https://docs.sciml.ai/DiffEqCallbacks/stable/",
)
Expand Down
281 changes: 281 additions & 0 deletions docs/src/assets/edgemodel-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
281 changes: 281 additions & 0 deletions docs/src/assets/edgemodel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/src/assets/edgemodel.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
% \documentclass[tikz,convert={outfile=\jobname.svg}]{standalone}
\documentclass[tikz,convert=pdf2svg]{standalone}
%\usetikzlibrary{...}% tikz package already loaded by 'tikz' option
\usetikzlibrary{arrows, arrows.meta}
% \tikzset{
% >=stealth',
% }
\usepackage{amsmath,amssymb}
\usepackage{ndtheme}

\begin{document}
\begin{tikzpicture}[\ndtheme]
\node[draw, minimum height=1.5cm](n){
Edge Model
};
\draw[->](n.east)++(0,0.4)--++(1.0,0) node[right]{$y^{\mathrm e}_{\mathrm{src}}$}; \draw[->](n.east)++(0,-0.4)--++(1.0,0) node[right]{$y^{\mathrm e}_{\mathrm{dst}}$};

\draw[<-](n.west)++(0,0.4)--++(-1.0,0) node[left]{$y^{\mathrm v}_{i}=i^{\mathrm e}_{\mathrm{src}}$};
\draw[<-](n.west)++(0,-0.4)--++(-1.0,0) node[left]{$y^{\mathrm v}_{j}=i^{\mathrm e}_{\mathrm{dst}}$};

\node[text width=3.5cm, align=center, font=\scriptsize] at ([xshift=-2.7cm, yshift=-1.2cm]n) {mapping of adjacent node outputs as edge inputs};
\end{tikzpicture}
\end{document}
20 changes: 19 additions & 1 deletion docs/src/assets/makelatexfigs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,23 @@ if ! command_exists pdf2svg; then
exit 1
fi

latexmk -pdflua -shell-escape mathmodel.tex
# List of figures to generate
figures=(mathmodel edgemodel nodemodel)

# Generate light versions (default)
echo "Generating light versions..."
for fig in "${figures[@]}"; do
latexmk -pdflua -shell-escape "${fig}.tex"
done

# Generate dark versions
echo "Generating dark versions..."
for fig in "${figures[@]}"; do
cp "${fig}.tex" "${fig}-dark.tex"
NDTHEME=dark latexmk -pdflua -shell-escape "${fig}-dark.tex"
rm "${fig}-dark.tex"
done

latexmk -C
# Clean up remaining temp files that latexmk -C might miss
rm -f *.aux *.fdb_latexmk *.fls *.log *.pdf
Loading
Loading