Create a markdown file with optional Handlebars variables:
// docs/getting-started.md---title: Getting Starteddescription: Quick start guide---# Welcome to {{projectName}}Version: {{version}}Get started with {{projectName}} in just a few minutes.## Prerequisites- Node.js {{nodeVersion}} or higher- npm or yarn## Installation\`\`\`bashnpm install {{projectName}}\`\`\`## Your First Request{{#if hasApiKey}}Use your API key to make authenticated requests:\`\`\`javascriptconst client = new {{projectName}}Client({ apiKey: '{{apiKey}}'});\`\`\`{{else}}Sign up to get your API key at {{signupUrl}}{{/if}}
edgit components add getting-started docs/getting-started.md docsedgit tag create getting-started v1.0.0edgit tag set getting-started production v1.0.0edgit push --tags --force
// Automatically available in your codeimport { docs } from 'virtual:conductor-docs'// docs contains all .md files from docs/ directorydocs.forEach(doc => { console.log(doc.name) // File name without extension console.log(doc.content) // Raw markdown content})
Docs work exactly like prompts/ with the same infrastructure:
Feature
Prompts
Docs
Auto-discovery
✅
✅
Handlebars
✅
✅
Frontmatter
✅
✅
Caching
✅
✅
Versioning
✅
✅
Component refs
✅
✅
// Both use the same patternconst prompt = await promptManager.renderByName('summarize', vars)const docs = await docsLoader.get('getting-started', vars)
Major (v2.0.0): Breaking changes to examples or structure
Minor (v1.1.0): New sections, backwards compatible
Patch (v1.0.1): Typo fixes, clarifications
# Bug fixedgit tag create getting-started v1.0.1# New section addededgit tag create getting-started v1.1.0# Restructured guideedgit tag create getting-started v2.0.0
# Developmentdocs: docs/getting-started@latest# Productiondocs: docs/getting-started@production# Lock to specific versiondocs: docs/getting-started@v1.2.3
The docs/ directory is a first-class component in Conductor. Markdown files are auto-discovered and served by the built-in docs-serve ensemble. To customize configuration, create a custom docs ensemble:
---title: {{productName}} User Guideaudience: end-users---# Getting Started with {{productName}}{{#if userTier}}You're on the **{{userTier}}** plan.{{/if}}## Quick Setup1. Create an account at {{signupUrl}}2. Install the {{productName}} client3. Configure your API key{{#if isPremium}}## Premium FeaturesAs a premium user, you have access to:{{#each premiumFeatures}}- {{this.name}}: {{this.description}}{{/each}}{{/if}}