From 4731d5022021dd22b4e58c72725755608cc6aee2 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 19 Aug 2017 12:44:23 +0200 Subject: [PATCH] Add break utility for long nowrap items (e.g. code) --- website/assets/css/_base/_utilities.sass | 4 ++++ website/docs/api/doc.jade | 6 +++--- website/docs/api/lexeme.jade | 2 +- website/docs/api/span.jade | 4 ++-- website/docs/api/token.jade | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/website/assets/css/_base/_utilities.sass b/website/assets/css/_base/_utilities.sass index 2c40858a8..46c3e84d9 100644 --- a/website/assets/css/_base/_utilities.sass +++ b/website/assets/css/_base/_utilities.sass @@ -112,6 +112,10 @@ .u-nowrap white-space: nowrap +.u-break.u-break + word-wrap: break-word + white-space: initial + .u-no-border border: none diff --git a/website/docs/api/doc.jade b/website/docs/api/doc.jade index 929985144..212f823ba 100644 --- a/website/docs/api/doc.jade +++ b/website/docs/api/doc.jade @@ -216,7 +216,7 @@ p +footrow +cell returns - +cell #[code numpy.ndarray[ndim=2, dtype='int32']] + +cell #[code.u-break numpy.ndarray[ndim=2, dtype='int32']] +cell | The exported attributes as a 2D numpy array, with one row per | token and one column per attribute. @@ -245,7 +245,7 @@ p +row +cell #[code array] - +cell #[code numpy.ndarray[ndim=2, dtype='int32']] + +cell #[code.u-break numpy.ndarray[ndim=2, dtype='int32']] +cell The attribute values to load. +footrow @@ -509,7 +509,7 @@ p +table(["Name", "Type", "Description"]) +footrow +cell returns - +cell #[code numpy.ndarray[ndim=1, dtype='float32']] + +cell #[code.u-break numpy.ndarray[ndim=1, dtype='float32']] +cell A 1D numpy array representing the document's semantics. +h(2, "vector_norm") Doc.vector_norm diff --git a/website/docs/api/lexeme.jade b/website/docs/api/lexeme.jade index a0487be9b..6e3f68493 100644 --- a/website/docs/api/lexeme.jade +++ b/website/docs/api/lexeme.jade @@ -129,7 +129,7 @@ p A real-valued meaning representation. +table(["Name", "Type", "Description"]) +footrow +cell returns - +cell #[code numpy.ndarray[ndim=1, dtype='float32']] + +cell #[code.u-break numpy.ndarray[ndim=1, dtype='float32']] +cell A 1D numpy array representing the lexeme's semantics. +h(2, "vector_norm") Lexeme.vector_norm diff --git a/website/docs/api/span.jade b/website/docs/api/span.jade index 542336714..5b480b280 100644 --- a/website/docs/api/span.jade +++ b/website/docs/api/span.jade @@ -37,7 +37,7 @@ p Create a Span object from the #[code slice doc[start : end]]. +row +cell #[code vector] - +cell #[code numpy.ndarray[ndim=1, dtype='float32']] + +cell #[code.u-break numpy.ndarray[ndim=1, dtype='float32']] +cell A meaning representation of the span. +footrow @@ -270,7 +270,7 @@ p +table(["Name", "Type", "Description"]) +footrow +cell returns - +cell #[code numpy.ndarray[ndim=1, dtype='float32']] + +cell #[code.u-break numpy.ndarray[ndim=1, dtype='float32']] +cell A 1D numpy array representing the span's semantics. +h(2, "vector_norm") Span.vector_norm diff --git a/website/docs/api/token.jade b/website/docs/api/token.jade index 87387e09d..db445d09b 100644 --- a/website/docs/api/token.jade +++ b/website/docs/api/token.jade @@ -250,7 +250,7 @@ p A real-valued meaning representation. +table(["Name", "Type", "Description"]) +footrow +cell returns - +cell #[code numpy.ndarray[ndim=1, dtype='float32']] + +cell #[code.u-break numpy.ndarray[ndim=1, dtype='float32']] +cell A 1D numpy array representing the token's semantics. +h(2, "vector_norm") Span.vector_norm