Be Concise
Developers want quick answers. Get to the point.
This guide helps contributors write documentation that is clear, consistent, and helpful for developers using SolidRusT AI.
Be Concise
Developers want quick answers. Get to the point.
Be Accurate
Test all code examples. Verify API details.
Be Inclusive
Avoid jargon. Define technical terms.
Be Practical
Include working examples for every feature.
Address the reader directly with “you” and “your”:
| Do | Don’t |
|---|---|
| ”You can configure the client…" | "Users can configure the client…" |
| "Your API key is…" | "The user’s API key is…” |
| Do | Don’t |
|---|---|
| ”The API returns a response" | "A response is returned by the API" |
| "Configure your environment" | "Your environment should be configured” |
| Do | Don’t |
|---|---|
| ”Run this command" | "You might want to consider running" |
| "This feature requires…" | "It should be noted that this feature…” |
Every code example should be:
from openai import OpenAI
# Initialize client with SolidRusT AI endpointclient = OpenAI( base_url="https://api.solidrust.ai/v1", api_key="YOUR_API_KEY" # Replace with your key)
# Make a chat completion requestresponse = client.chat.completions.create( model="vllm-primary", messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} ])
# Print the responseprint(response.choices[0].message.content)# Don't do this - incomplete and unclearresponse = client.chat.completions.create( model="...", messages=[...])For API endpoints, provide examples in multiple languages:
curl https://api.solidrust.ai/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "vllm-primary", "messages": [{"role": "user", "content": "Hello!"}] }'from openai import OpenAI
client = OpenAI( base_url="https://api.solidrust.ai/v1", api_key="YOUR_API_KEY")
response = client.chat.completions.create( model="vllm-primary", messages=[{"role": "user", "content": "Hello!"}])import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.solidrust.ai/v1', apiKey: 'YOUR_API_KEY',});
const response = await client.chat.completions.create({ model: 'vllm-primary', messages: [{ role: 'user', content: 'Hello!' }],});---title: Clear, Descriptive Titledescription: One sentence explaining what this page covers.---
Introductory paragraph explaining the topic and why it matters.
## Prerequisites
List what the reader needs before starting.
## Main Content
Step-by-step instructions or explanations.
### Subsection
Break complex topics into digestible sections.
## Examples
Working code examples demonstrating the concept.
## Next Steps
Link to related documentation.---title: Endpoint Namedescription: Brief description of what this endpoint does.---
## Endpoint
`POST /v1/endpoint`
## Request
### Headers
| Header | Required | Description ||--------|----------|-------------|| Authorization | Yes | Bearer token || Content-Type | Yes | application/json |
### Body Parameters
| Parameter | Type | Required | Description ||-----------|------|----------|-------------|| param1 | string | Yes | Description || param2 | number | No | Description (default: 10) |
### Example Request
[Code examples here]
## Response
### Success Response (200)
[Example response JSON]
### Error Responses
[Error codes and descriptions]Use callouts to highlight important information:
Use tables for structured data like parameters or comparison:
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Data | Data | Data |
| Do | Don’t |
|---|---|
| See the authentication guide | Click here |
| Learn about rate limits | https://docs.solidrust.ai/guides/rate-limits |
import { Card, CardGrid } from '@astrojs/starlight/components';
<CardGrid> <Card title="Title" icon="rocket"> Card content </Card></CardGrid>import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs> <TabItem label="Tab 1">Content 1</TabItem> <TabItem label="Tab 2">Content 2</TabItem></Tabs>import { Steps } from '@astrojs/starlight/components';
<Steps>1. First step2. Second step3. Third step</Steps>Before submitting documentation:
npm run build)Have questions about the style guide? Open a discussion.