Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Gatsby theme for your knowledge base or help center
Gatsby Theme Help Center is a Gatsby theme for building knowledge base and help center sites; it consumes MDX articles and YAML category definitions and outputs a static help site with SEO metadata, featured and related articles, and full visual customization.
This theme, published as @mlent/gatsby-theme-help-center and authored by Monica Lent, provides a complete help center layout for the Gatsby framework. You give it content in two forms: YAML category definitions in src/data/categories/data.yml and MDX article pages in src/data/pages; it then generates the category landing pages, article pages, a homepage with featured articles, and related-article blocks. The theme is marked as work in progress, and a companion starter (gatsby-starter-help-center) is available for quick setup.
themes/colors.ts file to set a primary color (used for the header stripe and links) and secondary/success/pending/error colors based on Ant Design's color palette.shikiTheme option in gatsby-config.js to any Shiki theme, such as 'nord', for fenced code blocks.Install the theme with npm install --save @mlent/gatsby-theme-help-center (or yarn), then add it to the plugins array in gatsby-config.js with options like basePath and shikiTheme. Next, create src/data/categories/data.yml for categories and src/data/pages/*.mdx for articles; run gatsby develop and the site builds the home page, category pages, and article pages with the configured styling.
The repository explicitly marks the theme as work in progress, and there is a warning that the plugin may generate no Gatsby nodes in some setups. The troubleshooting section documents common issues like a GraphQL error after editing gatsby-config.js, which is resolved by restarting the development server.
Either use the gatsby-starter-help-center starter via gatsby new your-site https://github.com/mlent/gatsby-starter-help-center, or install the theme package directly and add it to your gatsby-config.js plugins with options.
Yes, by shadowing the file src/@mlent/gatsby-theme-help-center/components/CustomHead.tsx with a React component that uses Helmet, enabling site verification tags and external scripts.
Set the htmlLang and contentLang fields in siteMetadata, e.g., 'en' and 'en-us'. These control the lang attribute and content language.
The repository is public on GitHub with 102 stars and no mention of pricing or licenses; it is open source and free to use.
