From 8a816e0b8e23ca11f14e3f91f6ca618c938e7f0e Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Sun, 13 Dec 2020 22:20:31 -0500 Subject: [PATCH] add markdown page component --- website/package-lock.json | 10 ++++++++++ website/package.json | 1 + website/pages/security.jsx | 8 ++++---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/website/package-lock.json b/website/package-lock.json index 9888c0bba..019d389e3 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -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", diff --git a/website/package.json b/website/package.json index 4347ad223..c4922555e 100644 --- a/website/package.json +++ b/website/package.json @@ -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", diff --git a/website/pages/security.jsx b/website/pages/security.jsx index 9913b7ffd..cf08421ab 100644 --- a/website/pages/security.jsx +++ b/website/pages/security.jsx @@ -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 } export const getStaticProps = generateStaticProps({ - pagePath: 'content/community-plugins.mdx', + pagePath: 'content/security.mdx', })