Documentation Maintenance Guide
This guide helps maintainers keep the ButterStack documentation up-to-date and high-quality.
Table of contents
- Quick Reference
- Content Guidelines
- Version Management
- Team Training
- Performance Optimization
- Feedback Loop
- Emergency Procedures
- Resources
Quick Reference
Common Tasks
Content Guidelines
Writing Style
ButterStack Documentation Principles
- Clear - Use simple, direct language
- Actionable - Focus on what users need to do
- Visual - Include screenshots and diagrams
- Complete - Cover all common scenarios
Integration Documentation Template
---
layout: default
title: [Integration Name]
parent: Integrations
nav_order: [number]
---
# [Integration Name]
{: .no_toc }
Brief description of what this integration does.
{: .fs-6 .fw-300 }
## Table of contents
{: .no_toc .text-delta }
1. TOC
{:toc}
---
## Overview
Detailed explanation of the integration's purpose and benefits.
## Prerequisites
<div class="callout callout-info">
<h4>Before you begin</h4>
<ul>
<li>Requirement 1</li>
<li>Requirement 2</li>
</ul>
</div>
## Setup Steps
### Step 1: [Action]
{: .text-blue-300 }
Detailed instructions...
### Step 2: [Action]
{: .text-blue-300 }
More instructions...
## Configuration
| Setting | Description | Default |
|---------|-------------|---------|
| option_1 | What it does | value |
## Testing
How to verify the integration is working.
## Troubleshooting
### Common Issues
<details>
<summary>Issue: [Problem description]</summary>
Solution steps...
</details>
## API Reference
### Webhooks
```json
{
"event": "example",
"data": {}
}
## Metrics and Analytics
### Documentation Health Dashboard
Access metrics at: `/docs/metrics` (internal only)
Key metrics tracked:
- **Page Views** - Most visited pages
- **Search Queries** - What users are looking for
- **Time on Page** - Content engagement
- **Scroll Depth** - How much users read
- **Feedback Score** - Helpful vs not helpful
- **404 Errors** - Broken links
### Monthly Review Checklist
<div class="callout callout-warning">
<h4>Monthly Tasks</h4>
<ul>
<li>Review top search queries without results</li>
<li>Update screenshots for UI changes</li>
<li>Check for outdated version numbers</li>
<li>Review and respond to feedback</li>
<li>Update integration status (new/deprecated)</li>
</ul>
</div>
## Automation Tools
### Link Checker
```bash
# Check all internal links
bundle exec jekyll build
bundle exec htmlproofer ./_site --disable-external
# Check external links (slower)
bundle exec htmlproofer ./_site
Screenshot Updates
# Automated screenshot capture
npm run capture-docs-screenshots
# Compare with existing
npm run diff-screenshots
Search Index
# Rebuild search index
bundle exec jekyll algolia
# Test search locally
bundle exec jekyll serve --livereload
Version Management
Documentation Versions
Keep documentation in sync with ButterStack releases:
- Major Release (v2.0)
- Create version branch
- Update all integration guides
- Add migration guide
- Minor Release (v1.5)
- Update affected pages
- Add changelog entry
- Patch Release (v1.4.1)
- Update only if docs affected
Deprecation Process
When deprecating features:
<div class="callout callout-warning">
<h4>Deprecation Notice</h4>
This feature will be removed in v3.0. Please use [alternative] instead.
</div>
Team Training
New Contributor Onboarding
- Setup Environment
cd docs bundle install bundle exec jekyll serve - Make First Contribution
- Fix a typo or broken link
- Review PR process
- Understand style guide
- Learn Advanced Features
- Custom includes
- Layout system
- Search configuration
Documentation Reviews
All documentation changes require:
- Technical accuracy review
- Style guide compliance
- Screenshot verification
- Link validation
Performance Optimization
Page Load Speed
Target metrics:
- First Contentful Paint: < 1.5s
- Time to Interactive: < 3.5s
- Lighthouse Score: > 90
Optimization techniques:
<!-- Lazy load images -->
<img src="placeholder.jpg" data-src="actual.jpg" loading="lazy">
<!-- Preload critical assets -->
<link rel="preload" href="/assets/css/main.css" as="style">
Search Performance
# _config.yml optimizations
search:
tokenizer_separator: /[\s/]+/
rel_url: true
button: true
focus_shortcut_key: 'k'
Feedback Loop
User Feedback Integration
- Collect Feedback
- Page-level feedback widget
- GitHub issues
- Support tickets
- Analyze Patterns
- Common confusion points
- Missing information
- Feature requests
- Implement Changes
- Prioritize by impact
- Test with users
- Measure improvement
Success Metrics
Track improvement over time:
- Support ticket reduction
- Time to first integration
- User satisfaction score
- Documentation coverage
Emergency Procedures
Rollback Process
If documentation breaks:
# Revert to last known good
git revert HEAD
git push origin main
# Or restore from backup
git checkout <last-good-commit> -- .
Critical Updates
For security or breaking changes:
- Update affected pages immediately
- Add banner notification
- Email registered users
- Update changelog
Resources
Tools
Style Guides
Contact
- Documentation Lead: docs@butterstack.com
- GitHub Issues: butterstack/butter_stack