docs: scroll to widget on load, fix widget navigation history (#3441)

This commit is contained in:
Erez Rokah
2020-03-19 16:07:21 +02:00
committed by GitHub
parent 9087da5850
commit a4a036fe05
3 changed files with 16 additions and 10 deletions

View File

@ -48,7 +48,7 @@ export const DocsTemplate = ({
{filename && <EditLink collection={`docs_${group}`} filename={filename} />}
<h1>{title}</h1>
<Markdown body={body} html={html} />
{showWidgets && <Widgets widgets={widgets} />}
{showWidgets && <Widgets widgets={widgets} location={location} />}
</article>
</SidebarLayout>
</Container>