// 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 for each language import MDX, { frontmatter } from 'markdown/{{{ slug }}}/en.md' const intro = `{{{ introEN }}}` /* * 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 }) => { return ( {frontmatter.title} - FreeSewing.dev
{frontmatter.toc && (
{/* FIXME: Implement toc plugin that adds it to 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 }}}, }, }, } }