2020-12-08 23:24:36 +00:00
|
|
|
import { productName, productSlug } from 'data/metadata'
|
|
|
|
import order from 'data/api-navigation.js'
|
|
|
|
import DocsPage from '@hashicorp/react-docs-page'
|
|
|
|
import {
|
|
|
|
generateStaticPaths,
|
|
|
|
generateStaticProps,
|
|
|
|
} from '@hashicorp/react-docs-page/server'
|
|
|
|
|
|
|
|
const subpath = 'api-docs'
|
|
|
|
|
|
|
|
export default function ApiDocsLayout(props) {
|
|
|
|
return (
|
|
|
|
<DocsPage
|
|
|
|
product={{ name: productName, slug: productSlug }}
|
|
|
|
subpath={subpath}
|
|
|
|
order={order}
|
2021-01-07 19:00:43 +00:00
|
|
|
mainBranch="master"
|
2020-12-08 23:24:36 +00:00
|
|
|
staticProps={props}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getStaticPaths() {
|
|
|
|
return generateStaticPaths(subpath)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getStaticProps({ params }) {
|
|
|
|
return generateStaticProps({
|
|
|
|
subpath,
|
|
|
|
productName,
|
|
|
|
params,
|
|
|
|
})
|
|
|
|
}
|