Skip to content

Commit a397e12

Browse files
authored
Fix spacing in @docs blocks; don't expand details admonition by default (#2847)
* Fix spacing in `@docs` blocks * Don't expand admonition by default
1 parent 050ce55 commit a397e12

File tree

9 files changed

+16
-12
lines changed

9 files changed

+16
-12
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
* The `-g` is now passed to `curl` when checking links, to disable globbing, which could cause undesirable behavior when checking links containing characters like for example `[`, `{`, `&` or `?`. ([#2839], [#2842])
1111

12+
### Fixed
13+
14+
* Fixed insufficient paragraph spacing in HTML output for `@docs` blocks. ([#2845, #2847])
15+
* Don't expand `details` admonition by default. ([#2846, #2847])
16+
1217
## Version [v1.16.0] - 2025-11-14
1318

1419
### Added
@@ -2221,6 +2226,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22212226
[#2816]: https://github.com/JuliaDocs/Documenter.jl/issues/2816
22222227
[#2817]: https://github.com/JuliaDocs/Documenter.jl/issues/2817
22232228
[#2827]: https://github.com/JuliaDocs/Documenter.jl/issues/2827
2229+
[#2845]: https://github.com/JuliaDocs/Documenter.jl/issues/2845
2230+
[#2846]: https://github.com/JuliaDocs/Documenter.jl/issues/2846
2231+
[#2847]: https://github.com/JuliaDocs/Documenter.jl/issues/2847
22242232
[JuliaLang/julia#36953]: https://github.com/JuliaLang/julia/issues/36953
22252233
[JuliaLang/julia#38054]: https://github.com/JuliaLang/julia/issues/38054
22262234
[JuliaLang/julia#39841]: https://github.com/JuliaLang/julia/issues/39841

assets/html/js/collapse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ window.addEventListener("load", openTarget);
2323

2424
function accordion() {
2525
document.body
26-
.querySelectorAll("details")
26+
.querySelectorAll("details.docstring")
2727
.forEach((e) => e.setAttribute("open", "true"));
2828
}
2929

3030
function noccordion() {
3131
document.body
32-
.querySelectorAll("details")
32+
.querySelectorAll("details.docstring")
3333
.forEach((e) => e.removeAttribute("open"));
3434
}
3535

assets/html/scss/documenter/components/_docstring.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ details.docstring {
5353
border-bottom: none;
5454
}
5555

56-
> p {
57-
margin: 0 !important;
58-
}
59-
6056
> a.docs-sourcelink {
6157
transition: opacity 0.3s;
6258
opacity: 0;

assets/html/themes/catppuccin-frappe.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/html/themes/catppuccin-latte.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/html/themes/catppuccin-macchiato.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/html/themes/catppuccin-mocha.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/html/themes/documenter-dark.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/html/themes/documenter-light.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)