Update docs [ci skip]

This commit is contained in:
Ines Montani 2020-09-14 10:34:50 +02:00
parent 80754d7065
commit 35156429c4
2 changed files with 5 additions and 2 deletions

View File

@ -27,6 +27,7 @@ const Quickstart = ({
hidePrompts,
small,
codeLang,
Container = Section,
children,
}) => {
const contentRef = useRef()
@ -83,7 +84,7 @@ const Quickstart = ({
}, [data, initialized])
return !data.length ? null : (
<Section id={id}>
<Container id={id}>
<div className={classNames(classes.root, { [classes.hidePrompts]: !!hidePrompts })}>
{title && (
<H2 className={classes.title} name={id}>
@ -249,7 +250,7 @@ const Quickstart = ({
</pre>
{showCopy && <textarea ref={copyAreaRef} className={classes.copyArea} rows={1} />}
</div>
</Section>
</Container>
)
}

View File

@ -87,6 +87,8 @@ export default function QuickstartTraining({ id, title, download = 'base_config.
.sort((a, b) => a.title.localeCompare(b.title))
return (
<Quickstart
id="quickstart-widget"
Container="div"
download={download}
rawContent={content}
data={DATA}