Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@
"guides/accessibility",
"guides/content-types",
"guides/content-templates",
"guides/reference-use-cases",
"guides/improving-docs",
"guides/internationalization",
"guides/linking",
Expand Down
90 changes: 90 additions & 0 deletions guides/reference-use-cases.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
title: "Reference documentation use cases"
description: "Understand when and how to use reference documentation effectively."
---

Use reference documentation when users need to look up specific details about your product's functionality. Reference docs serve as the authoritative source for technical specifications, parameters, and options.

Check warning on line 6 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L6

Use 'capability' or 'feature' instead of 'functionality'.

## When to use reference documentation

Reference documentation works best for:

- **API endpoints**: Document request parameters, response fields, authentication methods, and error codes.
- **Configuration options**: List all available settings, their data types, default values, and valid ranges.
- **Component properties**: Specify props, attributes, and customization options for UI components or libraries.
- **Command-line tools**: Detail commands, flags, arguments, and their behaviors.
- **Data schemas**: Define database tables, object structures, and field specifications.

## Key characteristics

Reference documentation prioritizes:

- **Accuracy**: Every detail must be correct and up-to-date.
- **Consistency**: Use uniform formatting, terminology, and structure across all reference pages.
- **Scannability**: Users should quickly find specific information without reading everything.

Check warning on line 24 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L24

Did you really mean 'Scannability'?
- **Completeness**: Document all options, even rarely-used ones.

Check warning on line 25 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L25

'rarely-used' doesn't need a hyphen.

## What reference docs are not

Reference documentation is not the place for:

- **Step-by-step tutorials**: Use [how-to guides](/guides/content-types) instead.
- **Conceptual explanations**: Create explanation pages for understanding complex topics.
- **Getting started content**: Write tutorials or quickstarts for new users.

Check warning on line 33 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L33

Did you really mean 'quickstarts'?
- **Marketing content**: Keep reference docs technical and factual.

## Common use cases

### API documentation

Document REST APIs, GraphQL schemas, or RPC methods with complete parameter and response specifications.

Check warning on line 40 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L40

Spell out 'REST', if it's unfamiliar to the audience.

Check warning on line 40 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L40

Spell out 'RPC', if it's unfamiliar to the audience.

Check warning on line 40 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L40

Use 'rpc' instead of 'RPC'.

```json
{
"endpoint": "/api/users",
"method": "POST",
"parameters": {
"name": "string (required)",
"email": "string (required)",
"role": "string (optional, default: 'user')"
}
}
```

### SDK and library references

Provide complete documentation for classes, methods, functions, and their signatures.

### Configuration files

List all available configuration options for tools, frameworks, or applications.

### CLI commands

Document command syntax, flags, and usage patterns for command-line interfaces.

## Best practices

- Start with a one-sentence description of what the feature or API does.
- Use consistent formatting for all parameters and properties.
- Include code examples showing typical usage.
- Specify data types, default values, and whether fields are required.

Check warning on line 71 in guides/reference-use-cases.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/reference-use-cases.mdx#L71

In general, use active voice instead of passive voice ('are required').
- Link to related reference pages and how-to guides.
- Keep descriptions brief and end them with periods.

## Related pages

<CardGroup cols={2}>
<Card title="Content types" icon="shapes" href="/guides/content-types">
Choose the right content type for your documentation goals.
</Card>
<Card title="Content templates" icon="file-text" href="/guides/content-templates">
Copy and modify templates for different content types.
</Card>
<Card title="API documentation" icon="file-json" href="/api-playground/overview">
Learn how to document APIs with OpenAPI specifications.
</Card>
<Card title="Style and tone" icon="pen" href="/guides/style-and-tone">
Write effective documentation with consistent style.
</Card>
</CardGroup>