mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Update docs [ci skip]
This commit is contained in:
parent
80754d7065
commit
35156429c4
|
@ -27,6 +27,7 @@ const Quickstart = ({
|
||||||
hidePrompts,
|
hidePrompts,
|
||||||
small,
|
small,
|
||||||
codeLang,
|
codeLang,
|
||||||
|
Container = Section,
|
||||||
children,
|
children,
|
||||||
}) => {
|
}) => {
|
||||||
const contentRef = useRef()
|
const contentRef = useRef()
|
||||||
|
@ -83,7 +84,7 @@ const Quickstart = ({
|
||||||
}, [data, initialized])
|
}, [data, initialized])
|
||||||
|
|
||||||
return !data.length ? null : (
|
return !data.length ? null : (
|
||||||
<Section id={id}>
|
<Container id={id}>
|
||||||
<div className={classNames(classes.root, { [classes.hidePrompts]: !!hidePrompts })}>
|
<div className={classNames(classes.root, { [classes.hidePrompts]: !!hidePrompts })}>
|
||||||
{title && (
|
{title && (
|
||||||
<H2 className={classes.title} name={id}>
|
<H2 className={classes.title} name={id}>
|
||||||
|
@ -249,7 +250,7 @@ const Quickstart = ({
|
||||||
</pre>
|
</pre>
|
||||||
{showCopy && <textarea ref={copyAreaRef} className={classes.copyArea} rows={1} />}
|
{showCopy && <textarea ref={copyAreaRef} className={classes.copyArea} rows={1} />}
|
||||||
</div>
|
</div>
|
||||||
</Section>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,8 @@ export default function QuickstartTraining({ id, title, download = 'base_config.
|
||||||
.sort((a, b) => a.title.localeCompare(b.title))
|
.sort((a, b) => a.title.localeCompare(b.title))
|
||||||
return (
|
return (
|
||||||
<Quickstart
|
<Quickstart
|
||||||
|
id="quickstart-widget"
|
||||||
|
Container="div"
|
||||||
download={download}
|
download={download}
|
||||||
rawContent={content}
|
rawContent={content}
|
||||||
data={DATA}
|
data={DATA}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user