Dave Ebbelaar

How to Build a Company Knowledge Base (Full Tutorial)

Published 2026-09-25 · Duration 34:24

Summary

This tutorial provides a comprehensive guide on building a scalable company knowledge base using Fumadocs as the foundation and integrating Sanity as the Content Operations Platform (COP). The process moves from local Markdown files to a cloud-hosted, editable CMS, enabling advanced features like semantic search and an AI-powered chat widget. Key steps involve setting up the development environment, connecting Sanity via API keys, and deploying the CMS to a live, editable URL.

Download summary

Key takeaways

  1. Initial Setup with Fumadocs

    Start by setting up the open-source Fumadocs framework using Node.js to create a foundational, beautiful documentation website structure. This establishes the basic content rendering pipeline.

  2. Integrating Sanity for CMS Functionality 30:27

    To enable non-technical content owners to edit content and provide robust search, the local content source must be switched to Sanity. This requires setting up the Sanity project, obtaining the API key and Project ID, and running `npm run Sanity setup` and `npm run import`.

  3. Advanced Search and AI Chat Widget

    Sanity automatically generates embeddings, enabling semantic search (searching by meaning, not just keywords). This foundation allows for the integration of an AI chat widget (using an LLM API key, e.g., OpenAI) that answers questions and links back to source pages.

  4. Deployment and Scalability

    The CMS can be deployed to a hosted URL using the Sanity CLI (`npx Sanity deploy`), providing a cloud-based interface for team members and AI agents to manage content.

Technical details

  • Development Environment Setup 0s

    Requires Node.js installation. The initial project setup uses the Fumadocs framework, starting with a basic 'cookie cutter' base install.

  • Project Initialization 534s

    The process involves cloning a GitHub repository and running `npm run setup` to prepare the project structure and install necessary node modules.

  • Sanity Integration 1827s

    To connect to Sanity, the environment variables must be updated with the Sanity API key and Project ID. The connection is established by running `npm run Sanity setup` and `npm run import`.

  • Content Source Switch 2026s

    The system's content source must be switched from local Markdown files to Sanity by updating the environment variable. This switches the data source from the local filesystem to the Sanity data set.

  • CMS Deployment

    The Sanity Studio can be locally run using `npm run studio` and then deployed to a hosted URL using the Sanity CLI: `npx Sanity deploy`.

  • AI Chat Widget Implementation

    The chat widget requires an external LLM API key (e.g., OpenAI) and is responsible for querying the knowledge base, providing answers, and linking back to source pages.

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.