Skip to content

Commit

Permalink
doc: work-around the false unresolved link warning for CSS attribut…
Browse files Browse the repository at this point in the history
…e selectors

The warning misfires for `[open]` in the following fragment:

    .admonition-follows + blockquote summary:not([open]):not(:hover) {
        opacity: 0.5;
    }

About CSS attribute selectors:
<http://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors>
  • Loading branch information
yvt committed Jan 30, 2021
1 parent 6edfa40 commit 3bc5d0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/r3/src/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ body.theme-dark span.center img, body.theme-dark center img {
body.theme-ayu span.center img, body.theme-ayu center img {
filter: invert(89%) sepia(90%) hue-rotate(180deg);
}

/* FIXME: rustdoc's intra-doc processor generates a warning when it encounters a
bracketed text with an unknown link target. This misfires for CSS attribute
selectors. Make rustdoc happy by defining a fake link target. I'm not sure if
it's worth reporting.
[open]: #dummy
*/
</style>
<script type="application/javascript">
<!--
Expand Down

0 comments on commit 3bc5d0a

Please sign in to comment.