Welcome! This is the repo for Directus' documentation.
- Node.js 22.18 or later
- pnpm
pnpm installCopy the example environment file:
cp .env.example .envUpdate the environment variables in the .env file with proper secret keys for the different
services.
Start the development server on http://localhost:3000:
pnpm devpnpm buildThe repository includes scripts that keep docs routes stable when files move.
pnpm stable-ids:ensure # Add missing stableId frontmatter
pnpm stable-ids:check # Validate stableId frontmatter
pnpm redirects:sync # Update redirects.json for moved pages
pnpm redirects:check # Check redirect coverage without writing files
pnpm typecheck:scripts # Type check repository scriptspnpm install configures .githooks for the repository when no custom core.hooksPath is set. The pre-commit hook can add missing stableId values to staged docs files. The pre-push hook checks redirects when docs content, redirect configuration, or content configuration changes.
Pages live as Markdown files under content/. Frontmatter fields are validated by the schema in content.config.ts.
Framework guides live under content/frameworks/<framework>/. The numeric prefix on filenames (01., 02., …) controls sidebar sort order only — it has no semantic meaning, renumber freely.
The section frontmatter field controls grouping on the /frameworks/<framework> hub page:
section: start-here— appears in the "Start Here" block at the top.section: guides(or unset) — appears in the "Guides" block below.
Minimal frontmatter for a new framework guide:
---
title: Fetch Data from Directus with Foo
description: Learn how to integrate Directus in your Foo app.
section: start-here
technologies:
- foo
navigation:
title: Data Fetching
---The documentation automatically deploys to Vercel when changes are merged into the main branch. Simply:
- Open a Pull Request with your changes
- This should trigger a deploy preview as well.
- Once PR is approved and merged to main, Vercel will automatically build and deploy the updated documentation
- Community Platform (Questions, Live Discussions)
- GitHub Issues (Report Bugs)
- Roadmap (Roadmap & Feature Requests)
The docs make use of the Algolia Crawler to index the content. The crawler is found at the bottom left in the Algolia dashboard under Data Sources > Crawler > directus. To make changes on how the crawler works, go to the Editor tab and make your changes. By default the crawler runs once a day but you can also manually run it. In order to tweak the ranking of search results, go to the Search > Configure > Index > Configuration > Ranking and Sorting tab.
© 2004-2024, Monospace, Inc.
