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