API Integration
Integrate Manu Documentation with external tools and services
Integration Overview
You integrate Manu Documentation with various external tools to streamline your workflow. These integrations automate documentation updates and improve collaboration.
GitHub
Sync documentation with GitHub repositories.
Slack
Receive notifications in Slack channels.
Jira
Link documentation to Jira issues.
GitHub Integration
You connect GitHub repositories to automatically sync documentation changes. This keeps your docs up-to-date with code changes.
Connect Repository
Authorize Manu Documentation to access your GitHub repository.
Configure Sync
Set up automatic sync for specific branches and folders.
Monitor Changes
Track documentation updates in real-time.
{
"event": "push",
"repository": {
"name": "my-docs",
"owner": "my-org"
},
"commits": [
{
"modified": ["README.md", "api-docs/endpoints.md"],
"added": ["new-feature.md"],
"removed": ["deprecated.md"]
}
]
}
const github = new GitHubClient({
token: process.env.GITHUB_TOKEN
});
const syncResult = await github.syncDocs({
repo: 'my-org/my-docs',
branch: 'main',
folder: 'docs/'
});
console.log(`Synced ${syncResult.files.length} files`);
Slack Integration
You configure Slack notifications for documentation events. Get notified when team members make changes or when reviews are requested.
Set up notifications for various events.
Slack channel for notifications.
Events to notify about.
Use Slack commands to interact with documentation.
Jira Integration
You link documentation to Jira issues for better project tracking. This creates a seamless workflow between development and documentation.
Automatically link documentation pages to Jira issues.
Webhook Configuration
You set up webhooks to receive real-time notifications about documentation changes. Webhooks enable custom integrations with your existing tools.
const express = require('express');
const app = express();
app.post('/webhook/manu-docs', (req, res) => {
const { event, document, changes } = req.body;
console.log(`Document ${document.title} was ${event}`);
// Handle the webhook
if (event === 'updated') {
// Send notification or trigger CI/CD
}
res.status(200).send('OK');
});
app.listen(3000);
from flask import Flask, request
app = Flask(__name__)
@app.route('/webhook/manu-docs', methods=['POST'])
def handle_webhook():
data = request.get_json()
event = data['event']
document = data['document']
print(f"Document {document['title']} was {event}")
if event == 'updated':
# Send notification or trigger action
pass
return 'OK', 200
if __name__ == '__main__':
app.run(port=3000)
API Endpoints
You use specific API endpoints for integration purposes. These endpoints allow programmatic access to documentation features.
Unique identifier for the integration.
Current status of the integration.
Timestamp of the last successful sync.
Troubleshooting Integrations
If integrations fail, you check these common issues. Most problems stem from authentication or configuration errors.
| Integration | Common Issue | Solution |
|---|---|---|
| GitHub | Permission denied | Check repository access permissions |
| Slack | Token expired | Regenerate Slack bot token |
| Jira | Connection timeout | Verify Jira server URL and credentials |
New Integrations Added
- Added support for Notion workspaces
- Improved webhook retry logic
- Enhanced error reporting for failed syncs
Last updated 6 days ago