-
Notifications
You must be signed in to change notification settings - Fork 0
129 lines (120 loc) · 6.27 KB
/
Copy pathgh-pages.yml
File metadata and controls
129 lines (120 loc) · 6.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: Build and Deploy GH Pages
on:
push:
branches: [ master ]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build static site from PDFs
run: |
set -euo pipefail
mkdir -p site
cat > site/index.html <<'HTML'
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>DDE‑BifTool Tutorials</title>
<style>
:root { --bg:#0b1020; --fg:#e8ecf1; --muted:#a3adbf; --accent:#6aa1ff; }
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}
.wrap{max-width:900px;margin:0 auto;padding:3rem 1.25rem}
h1{font-size:2rem;line-height:1.2;margin:0 0 1.25rem}
p.lead{color:var(--muted);margin:0 0 2rem}
ul{list-style:none;padding:0;margin:0}
li{background:#121832;border:1px solid #1c2442;border-radius:12px;margin:0 0 .875rem;padding:1rem}
li a{color:var(--fg);text-decoration:none;font-weight:600}
li a:hover{color:var(--accent)}
small{color:var(--muted)}
code{background:#0f1530;border:1px solid #1c2442;padding:.15rem .35rem;border-radius:6px}
footer{margin-top:2rem;color:var(--muted)}
</style>
</head>
<body>
<div class="wrap">
<h1>DDE‑BifTool Tutorials (I–VII)</h1>
<p class="lead">Seven tutorials on numerical bifurcation analysis of delay‑differential equations using DDE‑BifTool. Click a chapter to view the embedded PDF.</p>
<ul>
<li><a href="I/">I — Numerical simulation of DDEs</a><br><small>dde23 (MATLAB/Octave), pydelay (Python), equilibria and cycle bifurcations.</small></li>
<li><a href="II/">II — Equilibria continuation and stability</a><br><small>Codim‑1 (fold, Hopf) equilibrium bifurcations.</small></li>
<li><a href="III/">III — Codim‑2 equilibrium bifurcations</a><br><small>Fold/Hopf continuation in two parameters; detect codim‑2 points.</small></li>
<li><a href="IV/">IV — Periodic orbits and cycle bifurcations</a><br><small>Continuation in one parameter; fold, period‑doubling, torus; initialize cycles at Hopf.</small></li>
<li><a href="V/">V — Cycle bifurcations in two parameters</a><br><small>Continuation of homoclinic orbits to equilibria.</small></li>
<li><a href="VI/">VI — Normal forms for codim‑2</a><br><small>Compute normal forms; initialize homoclinic orbits.</small></li>
<li><a href="VII/">VII — Nonhyperbolic cycles; Bogdanov–Takens</a><br><small>Switching from codim‑2 equilibria; homoclinic initialization.</small></li>
</ul>
<footer>
<p>Source: <a href="https://github.com/${{ github.repository }}" style="color:var(--accent)">GitHub repo</a>. PDFs are rendered inline; you can also <a href="https://github.com/${{ github.repository }}/tree/master" style="color:var(--accent)">download them</a>.</p>
</footer>
</div>
</body>
</html>
HTML
build_page() {
local d=$1
local title=$2
local pdf="tutorial_${d}.pdf"
mkdir -p "site/${d}"
if [ -f "${d}/${pdf}" ]; then
cp "${d}/${pdf}" "site/${d}/${pdf}"
else
echo "Warning: ${d}/${pdf} not found; page will show a placeholder." >&2
fi
cat > "site/${d}/index.html" <<HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>${title}</title>
<style>
:root { --bg:#0b1020; --fg:#e8ecf1; --muted:#a3adbf; --accent:#6aa1ff; }
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}
.wrap{max-width:1000px;margin:0 auto;padding:2rem 1rem}
a{color:var(--accent);text-decoration:none}
header{display:flex;align-items:baseline;gap:1rem;margin-bottom:1rem}
header h1{font-size:1.4rem;margin:0}
header a.back{color:var(--muted)}
.viewer{background:#121832;border:1px solid #1c2442;border-radius:12px;overflow:hidden}
.viewer iframe{width:100%;height:80vh;border:0}
.download{margin:.75rem 0}
.note{color:var(--muted);font-size:.95rem}
</style>
</head>
<body>
<div class="wrap">
<header>
<a class="back" href="../">← All tutorials</a>
<h1>${title}</h1>
</header>
<div class="download">
<a href="${pdf}" download>Download PDF</a>
</div>
<div class="viewer">
<iframe src="${pdf}#view=FitH"></iframe>
</div>
<p class="note">If the PDF doesn’t display, use the download link above.</p>
</div>
</body>
</html>
HTML
}
build_page I "Tutorial I — Numerical simulation of DDEs"
build_page II "Tutorial II — Equilibria continuation and stability"
build_page III "Tutorial III — Codim‑2 equilibrium bifurcations"
build_page IV "Tutorial IV — Periodic orbits and cycle bifurcations"
build_page V "Tutorial V — Cycle bifurcations in two parameters"
build_page VI "Tutorial VI — Normal forms for codim‑2"
build_page VII "Tutorial VII — Nonhyperbolic cycles; Bogdanov–Takens"
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site
force_orphan: true