Skip to content

Latest commit

Β 

History

History
65 lines (47 loc) Β· 2.21 KB

File metadata and controls

65 lines (47 loc) Β· 2.21 KB

Graft Documentation Portal

Built with Starlight

This repository contains a community documentation portal for Graft β€” the open-source context layer for AI coding agents.

The site is built with Astro Starlight and structured using the Diataxis framework, organizing content into Tutorials, How-To Guides, Reference, and Explanation.

πŸš€ Quick Start

Ensure you have Node.js installed, then run:

# Install dependencies
npm install

# Start the local development server
npm run dev

The site will be available at http://localhost:4321.

πŸ“ Repository Structure

All documentation content lives in src/content/docs/. The structure follows Diataxis:

src/content/docs/
β”œβ”€β”€ index.mdx                       # Landing page
β”œβ”€β”€ tutorials/                      # Learning-oriented: step-by-step guides
β”‚   β”œβ”€β”€ getting-started.mdx
β”‚   └── your-first-graph.mdx
β”œβ”€β”€ how-to/                         # Task-oriented: solving specific problems
β”‚   β”œβ”€β”€ integrate-claude-code.mdx
β”‚   β”œβ”€β”€ set-up-mcp-server.mdx
β”‚   └── ...
β”œβ”€β”€ reference/                      # Information-oriented: technical descriptions
β”‚   β”œβ”€β”€ cli.mdx
β”‚   β”œβ”€β”€ graph-structure.mdx
β”‚   └── ...
└── explanation/                    # Understanding-oriented: concepts and background
    β”œβ”€β”€ why-graft-exists.mdx
    β”œβ”€β”€ how-the-graph-works.mdx
    └── ...

πŸ› οΈ Development & Testing

This project uses Vitest to ensure the documentation structure remains intact.

# Run the test suite
npm run test:run

# Build the site for production
npm run build

# Preview the production build locally
npm run preview

🌐 Deployment

This site is configured for static deployment on Vercel via the @astrojs/vercel adapter.

Any pushes to the main branch will automatically build and deploy using the npm run build command. The Vercel configuration is defined in vercel.json and astro.config.mjs.