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, 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>
) )
} }

View File

@ -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}