mirror of https://github.com/status-im/consul.git
add markdown page component
This commit is contained in:
parent
171c4143c8
commit
cd4bb347eb
|
@ -1826,6 +1826,16 @@
|
||||||
"is-absolute-url": "^3.0.3"
|
"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": {
|
"@hashicorp/react-product-downloader": {
|
||||||
"version": "4.1.5",
|
"version": "4.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/@hashicorp/react-product-downloader/-/react-product-downloader-4.1.5.tgz",
|
"resolved": "https://registry.npmjs.org/@hashicorp/react-product-downloader/-/react-product-downloader-4.1.5.tgz",
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"@hashicorp/react-head": "1.1.6",
|
"@hashicorp/react-head": "1.1.6",
|
||||||
"@hashicorp/react-image": "3.0.3",
|
"@hashicorp/react-image": "3.0.3",
|
||||||
"@hashicorp/react-inline-svg": "5.0.0",
|
"@hashicorp/react-inline-svg": "5.0.0",
|
||||||
|
"@hashicorp/react-markdown-page": "^0.1.0",
|
||||||
"@hashicorp/react-product-downloader": "4.1.5",
|
"@hashicorp/react-product-downloader": "4.1.5",
|
||||||
"@hashicorp/react-product-features-list": "3.0.0",
|
"@hashicorp/react-product-features-list": "3.0.0",
|
||||||
"@hashicorp/react-section-header": "3.0.1",
|
"@hashicorp/react-section-header": "3.0.1",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import MarkdownPage from 'components/_temporary-markdown-page'
|
import MarkdownPage from '@hashicorp/react-markdown-page'
|
||||||
import generateStaticProps from 'components/_temporary-markdown-page/server'
|
import generateStaticProps from '@hashicorp/react-markdown-page/server'
|
||||||
|
|
||||||
export default function CommunityToolsPage({ staticProps }) {
|
export default function SecurityPage(staticProps) {
|
||||||
return <MarkdownPage {...staticProps} />
|
return <MarkdownPage {...staticProps} />
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps = generateStaticProps({
|
export const getStaticProps = generateStaticProps({
|
||||||
pagePath: 'content/community-plugins.mdx',
|
pagePath: 'content/security.mdx',
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue