Skip to content

Commit

Permalink
Fix deprecation messages using the wrong class
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Mar 24, 2024
1 parent efff369 commit 378d86e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/doc_emit/html_value.re
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ let show_preamble = (~options, {description, deprecated, _}) =>
switch (deprecated) {
| None => nil
| Some({deprecation_message}) =>
<div class_="admonition admonition-caution">
<div class_="admonition admonition-warning">
<h5 class_="admonition-heading">
warning_icon
{str("Deprecated")}
Expand Down
6 changes: 3 additions & 3 deletions test/data/doc-emit/deprecated.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2 tabindex="0">Contents</h2>
</div>
<section id="content">
<h1>deprecation</h1>
<div class="admonition admonition-caution">
<div class="admonition admonition-warning">
<h5 class="admonition-heading">
<span aria-hidden="true">🛈</span> Deprecated
</h5>
Expand Down Expand Up @@ -63,7 +63,7 @@ <h5 class="admonition-heading">
<a href="deprecated.lua[6:7-6:7]" class="source-link">Source</a>
</dt>
<dd>
<div class="admonition admonition-caution">
<div class="admonition admonition-warning">
<h5 class="admonition-heading">
<span aria-hidden="true">🛈</span> Deprecated
</h5>
Expand All @@ -75,7 +75,7 @@ <h5 class="admonition-heading">
<a href="deprecated.lua[7:7-7:7]" class="source-link">Source</a>
</dt>
<dd>
<div class="admonition admonition-caution">
<div class="admonition admonition-warning">
<h5 class="admonition-heading">
<span aria-hidden="true">🛈</span> Deprecated
</h5>
Expand Down

0 comments on commit 378d86e

Please sign in to comment.