From e0dcbd724a15d52c3bef215a220c261ed3d288ba Mon Sep 17 00:00:00 2001 From: Saad Quadri Date: Sun, 13 Aug 2017 12:20:17 -0400 Subject: [PATCH 1/3] doc: fix word wrapping for api stability boxes --- doc/api_assets/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 20845970fbce37..bf9604fde8176c 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -94,6 +94,8 @@ em code { margin: 0 0 1em 0; font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; font-weight: 700; + white-space: pre-wrap; + word-wrap: break-word; } .api_stability * { From 0a6fb2b0fa9fd6235a8e58ebc6c4f4b4865e7d92 Mon Sep 17 00:00:00 2001 From: Saad Quadri Date: Sun, 13 Aug 2017 23:29:03 -0400 Subject: [PATCH 2/3] doc: use div instead of pre for api_stability --- doc/api_assets/style.css | 3 ++- tools/doc/html.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index bf9604fde8176c..5426c4e9b582dd 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -93,9 +93,10 @@ 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; white-space: pre-wrap; word-wrap: break-word; + padding: 1em; + line-height: 1.5; } .api_stability * { diff --git a/tools/doc/html.js b/tools/doc/html.js index a48b04b379da93..b0a3c13c69953d 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -400,7 +400,7 @@ function parseAPIHeader(text) { text = text.replace( STABILITY_TEXT_REG_EXP, - `
$1 $2$3
` + `` ); return text; } From be1c7ca7fa6544ec35efa5501bb5f85f8f454d3d Mon Sep 17 00:00:00 2001 From: Saad Quadri Date: Mon, 14 Aug 2017 05:11:24 -0400 Subject: [PATCH 3/3] Revert "doc: fix word wrapping for api stability boxes" This reverts commit e0dcbd724a15d52c3bef215a220c261ed3d288ba. --- doc/api_assets/style.css | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 5426c4e9b582dd..3761be4031e178 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -93,8 +93,6 @@ em code { color: white !important; margin: 0 0 1em 0; font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; - white-space: pre-wrap; - word-wrap: break-word; padding: 1em; line-height: 1.5; }