From a748e26166e25f825477071673f362abaedd8624 Mon Sep 17 00:00:00 2001 From: elmaester <54346168+elmaester@users.noreply.github.com> Date: Sat, 15 Jan 2022 20:04:40 +0200 Subject: [PATCH] Integrating Remark42 with Gatsby (documentation) (#1222) * add sample Gatsby/React component with comments md * fix typo * remove semicolons * add link to gatsby doc in nav.json * fix typo * make comment actually a comment in the return * improve comment syntax Co-authored-by: Ben --- .../integration-with-gatsby/index.md | 98 +++++++++++++++++++ site/src/docs/nav.json | 4 + 2 files changed, 102 insertions(+) create mode 100644 site/src/docs/getting-started/integration-with-gatsby/index.md diff --git a/site/src/docs/getting-started/integration-with-gatsby/index.md b/site/src/docs/getting-started/integration-with-gatsby/index.md new file mode 100644 index 00000000..bf62c6b2 --- /dev/null +++ b/site/src/docs/getting-started/integration-with-gatsby/index.md @@ -0,0 +1,98 @@ +# Using Remark42 in Gatsby projects +## Sample Comments.js React component: + +```js + +import * as React from "react" + +// This function will insert the usual