Browse Source

doc: fix word wrapping for api stability boxes

PR-URL: https://github.com/nodejs/node/pull/14809
Fixes: https://github.com/nodejs/nodejs.org/issues/1337
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
v6.x
Saad Quadri 7 years ago
committed by Myles Borins
parent
commit
a63cd82003
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 3
      doc/api_assets/style.css
  2. 2
      tools/doc/html.js

3
doc/api_assets/style.css

@ -93,7 +93,8 @@ em code {
color: white !important;
margin: 0 0 1em 0;
font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
font-weight: 700;
padding: 1em;
line-height: 1.5;
}
.api_stability * {

2
tools/doc/html.js

@ -349,7 +349,7 @@ function parseAPIHeader(text) {
text = text.replace(
STABILITY_TEXT_REG_EXP,
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
`<div class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</div>`
);
return text;
}

Loading…
Cancel
Save