main
claude/smbcloud-github-app-k9641p
development
feature/apps
feature/build-release
feature/ci-docs
feature/ci-ruby-gems
feature/cicd
feature/completion
feature/dist-nuget
feature/fix-ci-sdk-pypi-rubygem
feature/fix-clippy-on-stable-channel
feature/fix-deployment-script
feature/github-email
feature/gresiq-v1
feature/project-new-structure
feature/rsync-deploy
feature/ruby-runner
feature/sdk-npm
feature/sdk-workflows
feature/smbcloud-cli-release-npm
feature/smbcloud-deploy
feature/wasm
main
release/v0.7.4
| 1 | import { generateStaticParamsFor, importPage } from 'nextra/pages' |
| 2 | import { useMDXComponents as getMDXComponents } from '../../mdx-components' |
| 3 | |
| 4 | export const generateStaticParams = generateStaticParamsFor('mdxPath') |
| 5 | |
| 6 | export async function generateMetadata(props) { |
| 7 | const params = await props.params |
| 8 | const { metadata } = await importPage(params.mdxPath) |
| 9 | return metadata |
| 10 | } |
| 11 | |
| 12 | const Wrapper = getMDXComponents().wrapper |
| 13 | |
| 14 | export default async function Page(props) { |
| 15 | const params = await props.params |
| 16 | const { |
| 17 | default: MDXContent, |
| 18 | toc, |
| 19 | metadata, |
| 20 | sourceCode |
| 21 | } = await importPage(params.mdxPath) |
| 22 | return ( |
| 23 | <Wrapper toc={toc} metadata={metadata} sourceCode={sourceCode}> |
| 24 | <MDXContent {...props} params={params} /> |
| 25 | </Wrapper> |
| 26 | ) |
| 27 | } |