1
0
Fork 0

feat(fs.shared): Added an 'edit this page' link

This commit is contained in:
Joost De Cock 2021-12-28 16:12:39 +01:00
parent 1369241c95
commit 85605a1c1c

View file

@ -35,7 +35,7 @@ import mdxLoader from 'shared/mdx/loader'
*/ */
import MdxWrapper from 'shared/components/wrappers/mdx' import MdxWrapper from 'shared/components/wrappers/mdx'
import ThemePicker from 'shared/components/theme-picker.js' import Popout from 'shared/components/popout.js'
/* /*
* The NextJS page object * The NextJS page object
@ -57,6 +57,13 @@ const MdxPage = props => {
return ( return (
<Page app={app} {...props.page}> <Page app={app} {...props.page}>
<MdxWrapper mdx={props.mdx} app={app}/> <MdxWrapper mdx={props.mdx} app={app}/>
<Popout tip className='max-w-prose'>
<h6>Found a mistake?</h6>
You can <a
href={`https://github.com/freesewing/freesewing/edit/develop/markdown/dev/${props.page.slug}/en.md`}
className="text-secondary font-bold"
>edit this page on Github</a> and help us improve our documentation.
</Popout>
</Page> </Page>
) )
} }