Skip to content

Commit 3ff554f

Browse files
authored
replaced SHA.sha with Base.hash (#2688)
1 parent 576cdcf commit 3ff554f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Changed
99

10-
* Added anchor links to admonition blocks, making it possible to create direct links to specific admonitions. ([#2505], [#2676])
10+
* Added anchor links to admonition blocks, making it possible to create direct links to specific admonitions. ([#2505], [#2676], [#2688])
1111
* Added different banners for dev and unreleased docs ([#2382], [#2682])
1212

1313
## Version [v1.10.2] - 2025-04-25

src/html/HTMLWriter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ function domify(dctx::DCtx, node::Node, a::MarkdownAST.Admonition)
23962396
isempty(cat_sanitized) ? "" : ".is-category-$(cat_sanitized)"
23972397
end
23982398
node_repr = sprint(io -> show(io, node))
2399-
content_hash = bytes2hex(SHA.sha1(node_repr))[1:8]
2399+
content_hash = string(hash(node_repr), base = 16)
24002400
admonition_id = if !isempty(a.title)
24012401
base_id = Documenter.slugify(a.title)
24022402
"$(base_id)-$(content_hash)"

0 commit comments

Comments
 (0)