// Hooks import { serverSideTranslations } from 'next-i18next/serverSideTranslations' // Components import Head from 'next/head' import { MdxWrapper } from 'shared/components/wrappers/mdx.mjs' //import { TocWrapper } from 'shared/components/wrappers/toc.mjs' import { PageWrapper, ns } from 'shared/components/wrappers/page.mjs' // MDX content import MDX, { frontmatter } from 'markdown/{{{ slug }}}/en.md' /* * This page is auto-generated by the prebuild script. * Any changes you make will be overwritten on the next (pre)build. * * See the page-templates folder for more info. */ const DocsPage = ({ page, locale }) => ( {frontmatter.title} - FreeSewing.org
{frontmatter.toc && (
{/* FIXME: Implement toc plugin to add it to the frontmatter */} {/* */}
)}
) export default DocsPage /* * getStaticProps() is used to fetch data at build-time. * To learn more, see: https://nextjs.org/docs/basic-features/data-fetching */ export async function getStaticProps({ locale }) { return { props: { ...(await serverSideTranslations(locale, ['docs', ...ns])), locale, page: { locale, path: {{{ slugArray }}}, }, }, } }