Skip to content

Commit a8b1479

Browse files
authored
Removed superfluous vertical space at end of @docs blocks (#2849)
1 parent a397e12 commit a8b1479

File tree

9 files changed

+15
-14
lines changed

9 files changed

+15
-14
lines changed

CHANGELOG.md

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

1414
* Fixed insufficient paragraph spacing in HTML output for `@docs` blocks. ([#2845, #2847])
1515
* Don't expand `details` admonition by default. ([#2846, #2847])
16+
* Removed superfluous vertical space at end of `@docs` blocks. ([#2849])
1617

1718
## Version [v1.16.0] - 2025-11-14
1819

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ details.docstring {
3535
}
3636
}
3737

38-
>summary::before {
38+
> summary::before {
3939
content: '\f054'; // fa-chevron-right
4040
font-family: "Font Awesome 6 Free";
4141
font-weight: 900;
@@ -44,7 +44,7 @@ details.docstring {
4444
display: inline-block;
4545
}
4646

47-
> div {
47+
> section {
4848
position: relative;
4949
padding: $documenter-docstring-body-padding;
5050

@@ -69,19 +69,19 @@ details.docstring {
6969
}
7070
}
7171

72-
&:hover > div > a.docs-sourcelink {
72+
&:hover > section > a.docs-sourcelink {
7373
opacity: 0.2;
7474
}
7575

76-
&:focus-within > div > a.docs-sourcelink {
76+
&:focus-within > section > a.docs-sourcelink {
7777
opacity: 0.2;
7878
}
7979

80-
& > div:hover a.docs-sourcelink {
80+
& > section:hover a.docs-sourcelink {
8181
opacity: 1;
8282
}
8383
}
8484

85-
details.docstring[open]>summary::before {
85+
details.docstring[open] > summary::before {
8686
content: "\f078"; // fa-chevron-down
8787
}

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: 2 additions & 2 deletions
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.

src/html/HTMLWriter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ function domify_doc(dctx::DCtx, node::Node)
19371937
# each markdown object. The `DocStr` contains data such as file and line info that
19381938
# we need for generating correct source links.
19391939
return map(zip(node.element.mdasts, node.element.results)) do (markdown, result)
1940-
ret = div(domify(dctx, markdown))
1940+
ret = section(div(domify(dctx, markdown)))
19411941
# When a source link is available then print the link.
19421942
if !ctx.settings.disable_git
19431943
url = Documenter.source_url(ctx.doc, result)

0 commit comments

Comments
 (0)