Update formatting and styleguide

This commit is contained in:
ines 2017-11-05 23:31:31 +01:00
parent a86a0181b5
commit 6b08aefd0c
2 changed files with 23 additions and 1 deletions

View File

@ -92,7 +92,7 @@ include ../_includes/_mixins
p p
| For a detailed compatibility overview, see the | For a detailed compatibility overview, see the
| #[+a(gh("spacy-models", "compatibility.json")) #[code compatibility.json]] | #[+src(gh("spacy-models", "compatibility.json")) #[code compatibility.json]]
| in the models repository. This is also the source of spaCy's internal | in the models repository. This is also the source of spaCy's internal
| compatibility check, performed when you run the | compatibility check, performed when you run the
| #[+api("cli#download") #[code download]] command. | #[+api("cli#download") #[code download]] command.

View File

@ -346,6 +346,28 @@ include _includes/_mixins
| A new annotation tool for radically efficient machine teaching, | A new annotation tool for radically efficient machine teaching,
| powered by active learning. | powered by active learning.
+h(3, "accordion") Accordion
+aside-code("Usage", "jade").
+accordion("Section 1")
p This text is shown on click.
p
| Accordions are collapsible sections that are mostly used for lengthy
| tables, like the tag and label annotation schemes for different
| languages. They all need to be presented but chances
| are the user doesn't actually care about #[em all] of them,
| especially not at the same time. So it's fairly reasonable to hide
| them begin a click. This particular implementation was inspired by
| the amazing
| #[+a("https://inclusive-components.design/collapsible-sections/") Inclusive Components blog].
.o-block
for i in [1, 2, 3]
+accordion("Section " + i)
p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque enim ante, pretium a orci eget, varius dignissim augue. Nam eu dictum mauris, id tincidunt nisi. Integer commodo pellentesque tincidunt. Nam at turpis finibus tortor gravida sodales tincidunt sit amet est. Nullam euismod arcu in tortor auctor, sit amet dignissim justo congue. Sed varius vel dolor id dapibus. Curabitur pharetra fermentum arcu nec suscipit. Duis aliquet eros lorem, vitae interdum magna tempus quis.
+h(3, "chart") Chart +h(3, "chart") Chart
p p