mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-30 18:03:04 +03:00
Add table of contents mixin
This commit is contained in:
parent
fa7e576c57
commit
ec6d2bc81d
|
@ -383,3 +383,14 @@ mixin annotation-row(annots, style)
|
||||||
else
|
else
|
||||||
+cell=cell
|
+cell=cell
|
||||||
block
|
block
|
||||||
|
|
||||||
|
|
||||||
|
//- Table of contents, to be used with +item mixins for links
|
||||||
|
col - [string] width of column (see +grid-col)
|
||||||
|
|
||||||
|
mixin table-of-contents(col)
|
||||||
|
+grid-col(col || "half")
|
||||||
|
+infobox
|
||||||
|
+label.o-block-small Table of contents
|
||||||
|
+list("numbers").u-text-small.o-no-block
|
||||||
|
block
|
||||||
|
|
|
@ -38,10 +38,7 @@ p
|
||||||
| #[strong natural language understanding] systems, or to
|
| #[strong natural language understanding] systems, or to
|
||||||
| pre-process text for #[strong deep learning].
|
| pre-process text for #[strong deep learning].
|
||||||
|
|
||||||
+grid-col("half")
|
+table-of-contents
|
||||||
+infobox
|
|
||||||
+label.o-block-small Table of contents
|
|
||||||
+list("numbers").u-text-small.o-no-block
|
|
||||||
+item #[+a("#features") Features]
|
+item #[+a("#features") Features]
|
||||||
+item #[+a("#annotations") Linguistic annotations]
|
+item #[+a("#annotations") Linguistic annotations]
|
||||||
+item #[+a("#annotations-token") Tokenization]
|
+item #[+a("#annotations-token") Tokenization]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user