Skip to content

Commit eefa596

Browse files
authored
Fix non-standard versions in deploydocs (#2722)
1 parent 21dd8c9 commit eefa596

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## Version [v1.11.3] - 2025-05-15
7+
8+
### Fixed
9+
10+
* Fixed the handling of non-standard `versions` arguments of `deploydocs`. ([#2722])
11+
612
## Version [v1.11.2] - 2025-05-14
713

814
### Fixed
915

10-
* Fixed minor issue where `display` function was a Dict config key for KaTex vs. `:display` Symbol ([#2721])
16+
* Fixed minor issue where `display` function was a Dict config key for KaTex vs. `:display` Symbol. ([#2721])
1117

1218
## Version [v1.11.1] - 2025-05-13
1319

@@ -1512,6 +1518,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15121518
[v1.11.0]: https://github.com/JuliaDocs/Documenter.jl/releases/tag/v1.11.0
15131519
[v1.11.1]: https://github.com/JuliaDocs/Documenter.jl/releases/tag/v1.11.1
15141520
[v1.11.2]: https://github.com/JuliaDocs/Documenter.jl/releases/tag/v1.11.2
1521+
[v1.11.3]: https://github.com/JuliaDocs/Documenter.jl/releases/tag/v1.11.3
15151522
[#198]: https://github.com/JuliaDocs/Documenter.jl/issues/198
15161523
[#245]: https://github.com/JuliaDocs/Documenter.jl/issues/245
15171524
[#487]: https://github.com/JuliaDocs/Documenter.jl/issues/487
@@ -2075,6 +2082,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20752082
[#2714]: https://github.com/JuliaDocs/Documenter.jl/issues/2714
20762083
[#2717]: https://github.com/JuliaDocs/Documenter.jl/issues/2717
20772084
[#2721]: https://github.com/JuliaDocs/Documenter.jl/issues/2721
2085+
[#2722]: https://github.com/JuliaDocs/Documenter.jl/issues/2722
20782086
[JuliaLang/julia#36953]: https://github.com/JuliaLang/julia/issues/36953
20792087
[JuliaLang/julia#38054]: https://github.com/JuliaLang/julia/issues/38054
20802088
[JuliaLang/julia#39841]: https://github.com/JuliaLang/julia/issues/39841

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Documenter"
22
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3-
version = "1.11.2"
3+
version = "1.11.3"
44

55
[deps]
66
ANSIColoredPrinters = "a4c015fc-c6ff-483c-b24f-f7ea428134e9"

src/deploydocs.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,17 @@ function determine_deploy_subfolder(deploy_decision, versions::Nothing)
574574
# Non-versioned docs: deploy to root unless it's a preview
575575
return deploy_decision.is_preview ? deploy_decision.subfolder : nothing
576576
end
577-
577+
# Method to handle the standard versions = [...] argument.
578578
function determine_deploy_subfolder(deploy_decision, versions::AbstractVector)
579579
return deploy_decision.subfolder
580580
end
581+
# Fallback determine_deploy_subfolder for any non-standard `versions` arguments.
582+
function determine_deploy_subfolder(deploy_decision, versions::Any)
583+
@warn """
584+
Using a non-standard versions= argument, but determine_deploy_subfolder() is not implemented.
585+
""" typeof(versions) versions
586+
return deploy_decision.subfolder
587+
end
581588

582589
function rm_and_add_symlink(target, link)
583590
if ispath(link) || islink(link)

0 commit comments

Comments
 (0)