add markdown page component

This commit is contained in:
Jeff Escalante 2020-12-13 22:20:31 -05:00
parent 0f1075470d
commit 8a816e0b8e
No known key found for this signature in database
GPG Key ID: 32D23C61AB5450DB
3 changed files with 15 additions and 4 deletions

View File

@ -1826,6 +1826,16 @@
"is-absolute-url": "^3.0.3"
}
},
"@hashicorp/react-markdown-page": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@hashicorp/react-markdown-page/-/react-markdown-page-0.1.0.tgz",
"integrity": "sha512-N/4BnlEv2oclmlVjpXnwAcgZn3qcp3F3Uz4SLBdiZG32OPDjaTXNGpfRIRqkTz9rtPNd8LVQ/R1gXC2lMw8bHQ==",
"requires": {
"@hashicorp/react-content": "^6.0.0",
"@hashicorp/react-head": "^1.1.6",
"gray-matter": "4.0.2"
}
},
"@hashicorp/react-product-downloader": {
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/@hashicorp/react-product-downloader/-/react-product-downloader-4.1.5.tgz",

View File

@ -15,6 +15,7 @@
"@hashicorp/react-head": "1.1.6",
"@hashicorp/react-image": "3.0.3",
"@hashicorp/react-inline-svg": "5.0.0",
"@hashicorp/react-markdown-page": "^0.1.0",
"@hashicorp/react-product-downloader": "4.1.5",
"@hashicorp/react-product-features-list": "3.0.0",
"@hashicorp/react-section-header": "3.0.1",

View File

@ -1,10 +1,10 @@
import MarkdownPage from 'components/_temporary-markdown-page'
import generateStaticProps from 'components/_temporary-markdown-page/server'
import MarkdownPage from '@hashicorp/react-markdown-page'
import generateStaticProps from '@hashicorp/react-markdown-page/server'
export default function CommunityToolsPage({ staticProps }) {
export default function SecurityPage(staticProps) {
return <MarkdownPage {...staticProps} />
}
export const getStaticProps = generateStaticProps({
pagePath: 'content/community-plugins.mdx',
pagePath: 'content/security.mdx',
})