Skip to content

Commit b6fe0d7

Browse files
author
Documenter.jl
committed
build based on d480d7b
1 parent 70f4961 commit b6fe0d7

15 files changed

Lines changed: 175 additions & 109 deletions

File tree

dev/.documenter-siteinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.12.2","generation_timestamp":"2025-11-25T14:42:48","documenter_version":"1.16.1"}}
1+
{"documenter":{"documenter_version":"1.17.0","generation_timestamp":"2026-04-16T08:42:45","julia_version":"1.12.6"}}

dev/assets/Manifest.toml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is machine-generated - editing it directly is not advised
22

3-
julia_version = "1.12.2"
3+
julia_version = "1.12.6"
44
manifest_format = "2.0"
55
project_hash = "1658e3b19b8e52ab595646e863056f3962193f29"
66

@@ -16,9 +16,9 @@ version = "0.4.5"
1616

1717
[[deps.Adapt]]
1818
deps = ["LinearAlgebra", "Requires"]
19-
git-tree-sha1 = "7e35fca2bdfba44d797c53dfe63a51fabf39bfc0"
19+
git-tree-sha1 = "0761717147821d696c9470a7a86364b2fbd22fd8"
2020
uuid = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
21-
version = "4.4.0"
21+
version = "4.5.2"
2222

2323
[deps.Adapt.extensions]
2424
AdaptSparseArraysExt = "SparseArrays"
@@ -34,11 +34,12 @@ version = "1.1.2"
3434

3535
[[deps.ArrayInterface]]
3636
deps = ["Adapt", "LinearAlgebra"]
37-
git-tree-sha1 = "d81ae5489e13bc03567d4fbbb06c546a5e53c857"
37+
git-tree-sha1 = "54f895554d05c83e3dd59f6a396671dae8999573"
3838
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
39-
version = "7.22.0"
39+
version = "7.24.0"
4040

4141
[deps.ArrayInterface.extensions]
42+
ArrayInterfaceAMDGPUExt = "AMDGPU"
4243
ArrayInterfaceBandedMatricesExt = "BandedMatrices"
4344
ArrayInterfaceBlockBandedMatricesExt = "BlockBandedMatrices"
4445
ArrayInterfaceCUDAExt = "CUDA"
@@ -53,6 +54,7 @@ version = "7.22.0"
5354
ArrayInterfaceTrackerExt = "Tracker"
5455

5556
[deps.ArrayInterface.weakdeps]
57+
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
5658
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
5759
BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0"
5860
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
@@ -112,9 +114,9 @@ version = "0.9.5"
112114

113115
[[deps.Documenter]]
114116
deps = ["ANSIColoredPrinters", "AbstractTrees", "Base64", "CodecZlib", "Dates", "DocStringExtensions", "Downloads", "Git", "IOCapture", "InteractiveUtils", "JSON", "Logging", "Markdown", "MarkdownAST", "Pkg", "PrecompileTools", "REPL", "RegistryInstances", "SHA", "TOML", "Test", "Unicode"]
115-
git-tree-sha1 = "b37458ae37d8bdb643d763451585cd8d0e5b4a9e"
117+
git-tree-sha1 = "56e9c37b5e7c3b4f080ab1da18d72d5c290e184a"
116118
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
117-
version = "1.16.1"
119+
version = "1.17.0"
118120

119121
[[deps.Downloads]]
120122
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
@@ -168,9 +170,9 @@ version = "3.7.0+0"
168170

169171
[[deps.Git_jll]]
170172
deps = ["Artifacts", "Expat_jll", "JLLWrappers", "LibCURL_jll", "Libdl", "Libiconv_jll", "OpenSSL_jll", "PCRE2_jll", "Zlib_jll"]
171-
git-tree-sha1 = "b6a684587ebe896d9f68ae777f648205940f0f70"
173+
git-tree-sha1 = "dc34a3e3d96b4ed305b641e626dc14c12b7824b8"
172174
uuid = "f8c6e375-362e-5223-8a59-34ff63f689eb"
173-
version = "2.51.3+0"
175+
version = "2.53.0+0"
174176

175177
[[deps.IOCapture]]
176178
deps = ["Logging", "Random"]
@@ -191,9 +193,9 @@ version = "1.7.1"
191193

192194
[[deps.JSON]]
193195
deps = ["Dates", "Logging", "Parsers", "PrecompileTools", "StructUtils", "UUIDs", "Unicode"]
194-
git-tree-sha1 = "5b6bb73f555bc753a6153deec3717b8904f5551c"
196+
git-tree-sha1 = "67c6f1f085cb2671c93fe34244c9cccde30f7a26"
195197
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
196-
version = "1.3.0"
198+
version = "1.5.0"
197199

198200
[deps.JSON.extensions]
199201
JSONArrowExt = ["ArrowTypes"]
@@ -267,13 +269,13 @@ version = "1.11.0"
267269

268270
[[deps.MarkdownAST]]
269271
deps = ["AbstractTrees", "Markdown"]
270-
git-tree-sha1 = "465a70f0fc7d443a00dcdc3267a497397b8a3899"
272+
git-tree-sha1 = "93c718d892e73931841089cdc0e982d6dd9cc87b"
271273
uuid = "d0879d2d-cac2-40c8-9cee-1863dc0c7391"
272-
version = "0.1.2"
274+
version = "0.1.3"
273275

274276
[[deps.MozillaCACerts_jll]]
275277
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
276-
version = "2025.5.20"
278+
version = "2025.11.4"
277279

278280
[[deps.NetworkOptions]]
279281
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
@@ -286,9 +288,9 @@ version = "0.3.29+0"
286288

287289
[[deps.OpenSSH_jll]]
288290
deps = ["Artifacts", "JLLWrappers", "Libdl", "OpenSSL_jll", "Zlib_jll"]
289-
git-tree-sha1 = "301412a644646fdc0ad67d0a87487466b491e53d"
291+
git-tree-sha1 = "57baa4b81a24c2910afbb6d853aa0685e4312bf7"
290292
uuid = "9bd350c2-7e96-507f-8002-3f2e150b4e1b"
291-
version = "10.2.1+0"
293+
version = "10.3.1+0"
292294

293295
[[deps.OpenSSL_jll]]
294296
deps = ["Artifacts", "Libdl"]
@@ -309,7 +311,7 @@ version = "2.8.3"
309311
[[deps.Pkg]]
310312
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "Random", "SHA", "TOML", "Tar", "UUIDs", "p7zip_jll"]
311313
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
312-
version = "1.12.0"
314+
version = "1.12.1"
313315
weakdeps = ["REPL"]
314316

315317
[deps.Pkg.extensions]
@@ -323,9 +325,9 @@ version = "1.3.3"
323325

324326
[[deps.Preferences]]
325327
deps = ["TOML"]
326-
git-tree-sha1 = "0f27480397253da18fe2c12a4ba4eb9eb208bf3d"
328+
git-tree-sha1 = "8b770b60760d4451834fe79dd483e318eee709c4"
327329
uuid = "21216c6a-2e73-6563-6e65-726566657250"
328-
version = "1.5.0"
330+
version = "1.5.2"
329331

330332
[[deps.Printf]]
331333
deps = ["Unicode"]
@@ -379,16 +381,18 @@ version = "1.4.4"
379381

380382
[[deps.StructUtils]]
381383
deps = ["Dates", "UUIDs"]
382-
git-tree-sha1 = "79529b493a44927dd5b13dde1c7ce957c2d049e4"
384+
git-tree-sha1 = "aab80fbf866600f3299dd7f6656d80e7be177cfe"
383385
uuid = "ec057cc2-7a8d-4b58-b3b3-92acb9f63b42"
384-
version = "2.6.0"
386+
version = "2.7.2"
385387

386388
[deps.StructUtils.extensions]
387389
StructUtilsMeasurementsExt = ["Measurements"]
390+
StructUtilsStaticArraysCoreExt = ["StaticArraysCore"]
388391
StructUtilsTablesExt = ["Tables"]
389392

390393
[deps.StructUtils.weakdeps]
391394
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
395+
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
392396
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
393397

394398
[[deps.StyledStrings]]

dev/assets/documenter.js

Lines changed: 28 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/assets/warner.js

Lines changed: 61 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,40 @@ function maybeAddWarning() {
3737
closer.addEventListener("click", function () {
3838
document.body.removeChild(div);
3939
});
40-
const href = window.documenterBaseURL + "/../" + window.DOCUMENTER_STABLE;
40+
var target_href =
41+
window.documenterBaseURL + "/../" + window.DOCUMENTER_STABLE;
42+
43+
// try to stay on the same page when linking to the stable version
44+
// get the current page path relative to the version root
45+
var current_page = window.location.pathname;
46+
47+
// resolve the documenterBaseURL to an absolute path
48+
// documenterBaseURL is a relative path (usually "."), so we need to resolve it
49+
var base_url_absolute = new URL(documenterBaseURL, window.location.href)
50+
.pathname;
51+
if (!base_url_absolute.endsWith("/")) {
52+
base_url_absolute = base_url_absolute + "/";
53+
}
54+
55+
// extract the page path after the version directory
56+
// e.g., if we're on /stable/man/guide.html, we want "man/guide.html"
57+
var page_path = "";
58+
if (current_page.startsWith(base_url_absolute)) {
59+
page_path = current_page.substring(base_url_absolute.length);
60+
}
61+
62+
// construct the target URL with the same page path
63+
var target_url = target_href;
64+
if (page_path && page_path !== "" && page_path !== "index.html") {
65+
// ensure target_href ends with a slash before appending page path
66+
if (!target_url.endsWith("/")) {
67+
target_url = target_url + "/";
68+
}
69+
target_url = target_url + page_path;
70+
}
71+
72+
// preserve the anchor (hash) from the current page
73+
var current_hash = window.location.hash;
4174

4275
// Determine if this is a development version or an older release
4376
let warningMessage = "";
@@ -51,12 +84,35 @@ function maybeAddWarning() {
5184
"This documentation is for an <strong>older version</strong> that may be missing recent changes.<br>";
5285
}
5386

54-
warningMessage +=
55-
'<a href="' +
56-
href +
57-
'">Click here to go to the documentation for the latest stable release.</a>';
87+
// Create the link element with same-page navigation
88+
const link = document.createElement("a");
89+
link.href = target_url + current_hash;
90+
link.textContent =
91+
"Click here to go to the documentation for the latest stable release.";
92+
93+
// If we're trying to stay on the same page, verify it exists first
94+
if (page_path && page_path !== "" && page_path !== "index.html") {
95+
link.addEventListener("click", function (e) {
96+
e.preventDefault();
97+
// check if the target page exists, fallback to homepage if it doesn't
98+
fetch(target_url, { method: "HEAD" })
99+
.then(function (response) {
100+
if (response.ok) {
101+
window.location.href = target_url + current_hash;
102+
} else {
103+
// page doesn't exist in the target version, go to homepage
104+
window.location.href = target_href;
105+
}
106+
})
107+
.catch(function (error) {
108+
// network error or other failure - use homepage
109+
window.location.href = target_href;
110+
});
111+
});
112+
}
58113

59114
div.innerHTML = warningMessage;
115+
div.appendChild(link);
60116
div.appendChild(closer);
61117
document.body.appendChild(div);
62118
}

0 commit comments

Comments
 (0)