(nextConfig)
| 6 | const { locales, defaultLocale } = pkg.guidebook.i18n |
| 7 | |
| 8 | const withGuidebooks = (nextConfig) => |
| 9 | locales.reduce( |
| 10 | (nextConfig, locale) => |
| 11 | generateGuidebook({ |
| 12 | guidebookDirectory: |
| 13 | locale === defaultLocale ? './pages' : `./pages/${locale}`, |
| 14 | guidebookModulePath: `./guidebook-${locale}.js`, |
| 15 | })(nextConfig), |
| 16 | nextConfig |
| 17 | ) |
| 18 | |
| 19 | const withMDX = require('next-mdx-frontmatter')({ |
| 20 | extension: /\.mdx?$/, |