You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/website/pages/commands/[[...page]].jsx

34 lines
735 B

import { productName, productSlug } from 'data/metadata'
import order from 'data/commands-navigation.js'
import DocsPage from '@hashicorp/react-docs-page'
import {
generateStaticPaths,
generateStaticProps,
} from '@hashicorp/react-docs-page/server'
const subpath = 'commands'
export default function CommandsLayout(props) {
return (
<DocsPage
product={{ name: productName, slug: productSlug }}
subpath={subpath}
order={order}
mainBranch="master"
staticProps={props}
/>
)
}
export async function getStaticPaths() {
return generateStaticPaths(subpath)
}
export async function getStaticProps({ params }) {
return generateStaticProps({
subpath,
productName,
params,
})
}