diff --git a/src/components/Home/index.tsx b/src/components/Home/index.tsx index b28b90d..0d4d819 100644 --- a/src/components/Home/index.tsx +++ b/src/components/Home/index.tsx @@ -75,6 +75,7 @@ export const Home: FC = () => { about rules faq + bots resources tech spotlights diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx index a06425b..557b4e8 100644 --- a/src/components/Sidebar/index.tsx +++ b/src/components/Sidebar/index.tsx @@ -41,6 +41,7 @@ export const Sidebar: FC> = (props) => { about rules faq + bots resources tech spotlights diff --git a/src/pages/bots.tsx b/src/pages/bots.tsx new file mode 100644 index 0000000..a90b7fa --- /dev/null +++ b/src/pages/bots.tsx @@ -0,0 +1,42 @@ +import { graphql } from "gatsby" +import React, { Fragment } from "react" +import cx from "classnames" +import { Mdx } from "../../generated/graphql" +import { ComponentQuery } from "../../typings" +import { Markdown } from "../components/Markdown" +import { SEO } from "../components/SEO" +import { PageContent } from "../components/PageContent" +import { HeaderBarebone } from "../components/HeaderBarebone" +import { buildToc } from "../utils" + +function BotPage({ data }: ComponentQuery<{ md: Mdx }>) { + const { md } = data + + const toc = buildToc(md.headings!) + + return ( + + + + + } toc={toc} /> + + ) +} + +export const query = graphql` + query BotPage { + md: mdx(frontmatter: { path: { eq: "/bots" } }) { + body + headings { + depth + value + } + } + } +` + +export default BotPage