Skip to content
Merged
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 @@ -270,6 +270,7 @@
"pages": [
"guides/accessibility",
"guides/content-types",
"guides/content-templates",
"guides/improving-docs",
"guides/maintenance",
"guides/media",
Expand Down
274 changes: 274 additions & 0 deletions guides/content-templates.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,274 @@
---
title: "Content templates"
description: "Copy and modify these templates to quickly create documentation for different content types."
keywords: ["templates"]
---

Use these templates as starting points for creating documentation. Customize the templates for your documentation and your audience.

1. Copy the template that matches your content type.

Check warning on line 9 in guides/content-templates.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-templates.mdx#L9

Use 'media type' instead of 'content type'.
2. Replace placeholders and example content with your actual content.
3. Adjust sections as needed.
4. Remove any sections that don't apply.

<Tip>
Not sure which template to use? Read about [content types](/guides/content-types) to understand when to use each one.
</Tip>

## How-to guide template

Use how-to guides when users need to accomplish a specific task and already have some familiarity with your product. How-tos are goal-driven and get straight to the solution.

````mdx How-to guide template
---
title: "[Titles should start with a verb]"
description: "[Do specific task] to [achieve outcome]."
---

Start with a brief statement of what this guide helps users accomplish.

## Prerequisites (optional)

List only what's necessary:

- Required setup or configuration
- Permissions needed
- Related features that should be configured first

## [Action-oriented heading describing the task]

Provide direct instructions focused on achieving the goal.

1. Open [location] and navigate to [specific place]
2. Click [button or option]
3. Enter [required information]
4. Click [confirmation button]

```language
// Include code examples that users can copy and modify
```

<Tip>
Include practical tips that help users avoid common mistakes or work more efficiently.
</Tip>

## Verify the result (optional)

Check warning on line 55 in guides/content-templates.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-templates.mdx#L55

Use parentheses judiciously.

If success is ambiguous, explain how users can confirm they completed the task successfully.

## Troubleshooting (optional)

Check warning on line 59 in guides/content-templates.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-templates.mdx#L59

Use parentheses judiciously.

Address common issues users might encounter:

- **Problem description**: Solution or workaround
- **Another common issue**: How to resolve it

## Related tasks

Link to related how-to guides or next steps.
````

## Tutorial template

Use tutorials when you want to help new users learn through hands-on practice. Tutorials guide users step-by-step through a complete learning experience with a clear outcome.

````mdx Tutorial template
---
title: "[Action verb] [specific outcome]"
description: "Learn how to [specific outcome] by [method or approach]."
---

Use an introduction paragraph to explain what users will learn and what they'll be able to do after completing this tutorial.

## Prerequisites

List what users need before starting:

- Required knowledge or skills
- Tools, accounts, or permissions
- Time commitment (optional)

## Step 1: [First action]

Provide clear, specific instructions for the first step.

```language
// Include code examples where helpful
```

Explain what this step accomplishes and why it matters.

## Step 2: [Second action]

Continue with sequential steps that build on previous work.

Point out milestones and progress markers so users know they're on track.

## Step 3: [Third action]

Keep steps focused on concrete actions rather than theory.

Minimize choices that users need to make.

## Next steps

Check warning on line 113 in guides/content-templates.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-templates.mdx#L113

'Next steps' should use sentence-style capitalization.

Summarize what users learned and suggest logical next steps:

- Related tutorials to try
- How-to guides for common tasks
- Additional resources for deeper learning
````

## Explanation template

Use explanations when users need to understand concepts, design decisions, or how complex features work. Explanations provide context and deepen understanding rather than giving step-by-step instructions.

````mdx Explanation template
---
title: "About [concept or feature]"
description: "Understand [concept] and how it works within [product or context]."
---

Start with a clear statement of what this explanation covers and why understanding it matters.

Define the concept in plain language. Explain what it is, what it does, and why it exists.

Use analogies or comparisons to familiar concepts when helpful.

## How [concept] works

Explain the underlying mechanics, architecture, or process.

<Frame>
<img src="/path/to/diagram.png" alt="Diagram showing how [concept] works" />
</Frame>

Break down complex ideas into digestible sections.

## Why [design decision or approach]

Provide context about why things work the way they do.

Discuss trade-offs, alternatives that were considered, or constraints that influenced the design.

## When to use [concept]

Help users understand when this concept or approach is most appropriate.

- **Use case 1**: When this approach makes sense
- **Use case 2**: Another scenario where this is the right choice
- **Not recommended for**: Situations where alternatives are better

## Relationship to other features

Draw connections to related concepts or features in your product.

Explain how this concept fits into the broader system or workflow.

## Common misconceptions

Address misunderstandings or clarify subtle distinctions.

## Further reading

Link to related explanations, tutorials, or reference documentation.
````

## Reference template

Use reference documentation when users need to look up specific details about your product's functionality. Reference docs prioritize accuracy, consistency, and scannability.

Check warning on line 179 in guides/content-templates.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-templates.mdx#L179

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

Check warning on line 179 in guides/content-templates.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-templates.mdx#L179

Did you really mean 'scannability'?

````mdx Reference template
---
title: "[Feature or API name] reference"
description: "Complete reference for [feature or API] properties, parameters, and options."
---

Provide a one-sentence description of what this feature or API does.

## Properties

<ParamField body="property1" type="string" required>
Brief description of the property.
</ParamField>

<ParamField body="property2" type="number">
Brief description with default value if applicable.
</ParamField>

<ParamField body="property3" type="boolean" default="false">
Brief description.
</ParamField>

## Parameters

<ParamField body="parameterName" type="string">
Description of what this parameter does and when to use it.

```language
// Example showing typical usage
```
</ParamField>

<ParamField body="anotherParameter" type="object">
Description of the parameter.

Available options:

- `option1`: Description of this option.
- `option2`: Description of this option.
</ParamField>

## Examples

### Basic example

```language title="Basic usage"
// Minimal example showing common use case
```

### Advanced example

```language title="Advanced configuration"
// Example with multiple options configured
```

## Response

If documenting an API, describe the response structure.

<ResponseField name="field1" type="string" required>
Description of the response field.
</ResponseField>

<ResponseField name="field2" type="number">
Description of another response field.
</ResponseField>

Example response:

```json
{
"field1": "value",
"field2": 123
}
```

## Related references

Link to related reference documentation.
````

## 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="Style and tone" icon="pen" href="/guides/style-and-tone">
Write effective documentation with consistent style.
</Card>
<Card title="Format text" icon="text" href="/create/text">
Learn how to format text and style content.
</Card>
</CardGroup>
6 changes: 5 additions & 1 deletion guides/content-types.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Content types"
description: "Choose the right content type for your documentation goals."

Check warning on line 3 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L3

Use 'media type' instead of 'content type'.
keywords: ["Diátaxis", "tutorials", "how-tos", "reference", "explanation", "categorization"]
---

Expand All @@ -8,11 +8,11 @@
This page explains different content types, when to use each one, and how to approach writing for each type.
</Tip>

Documentation should be organized around the specific goal you're trying to help people achieve.

Check warning on line 11 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L11

In general, use active voice instead of passive voice ('be organized').

## Categorize using the Diátaxis framework

The [Diátaxis framework](https://diataxis.fr) is a helpful guide for categorizing content based on your audience's needs. Documentation can generally be mapped into one of these types:

Check warning on line 15 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L15

In general, use active voice instead of passive voice ('be mapped').

1. Tutorials: Learning-oriented content for new users
2. How-to guides: Task-oriented guidance for specific problems
Expand All @@ -29,44 +29,44 @@

| Question | Tutorial | How-To | Reference | Explanation |
|:-----------------------------|:---------------------|:---------------------|:---------------------|:---------------------|
| What is the user's goal? | Learn through practice | Solve a specific problem | Find precise information | Understand concepts |

Check warning on line 32 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L32

Use 'what's' instead of 'What is'.
| What is the user's knowledge? | Beginner | Intermediate | Experienced | Any level |

Check warning on line 33 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L33

Use 'what's' instead of 'What is'.
| What is the primary focus? | Learning by doing | Achieving a goal | Providing information | Deepening understanding |

Check warning on line 34 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L34

Use 'what's' instead of 'What is'.
| How is the content structured? | Step-by-step | Problem-solution | Organized facts | Conceptual discussions |

Check warning on line 35 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L35

Use 'how's' instead of 'How is'.
| Is it task-oriented? | Yes, guided tasks | Yes, specific tasks | No, informational | No, conceptual |
| Is it designed for linear progression? | Yes | No | No | No |

## Writing for each type

### Tutorials (Learning-oriented)

Check warning on line 41 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L41

'Tutorials (Learning-oriented)' should use sentence-style capitalization.

Check warning on line 41 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L41

Use parentheses judiciously.

- **Audience goal**: Learn something new through step-by-step instructions.
- **Characteristics**: Sequential and assumes no prior knowledge.
- **Writing approach**:
- Set expectations of what the user will achieve after reading.

Check warning on line 46 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L46

Avoid using 'will'.
- Use clear, incremental steps. Minimize choices that need to be made by the user.

Check warning on line 47 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L47

In general, use active voice instead of passive voice ('be made').
- Point out milestones along the way.
- Minimize theory and focus on concrete actions.

### How-To Guides (Problem-oriented)

Check warning on line 51 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L51

'How-To Guides (Problem-oriented)' should use sentence-style capitalization.

Check warning on line 51 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L51

Use parentheses judiciously.

- **Audience goal**: Perform a specific task correctly.
- **Characteristics**: Goal-driven and assumes some prior knowledge.
- **Writing approach**:
- Write from the perspective of the user, not the product.
- Describe a logical sequence and omit unnecessary details.
- Minimize context beyond what is necessary.

Check warning on line 58 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L58

Use 'what's' instead of 'what is'.

### Reference (Information-oriented)

Check warning on line 60 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L60

Use parentheses judiciously.

- **Audience goal**: Find details about a product's functionality.

Check warning on line 62 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L62

Use 'capability' or 'feature' instead of 'functionality'.
- **Characteristics**: Unambiguous, product-focused, scannable.
- **Writing approach**:
- Be scannable and concise.
- Prioritize consistency.
- Avoid explanatory content. Focus on examples that are easy to copy and modify.

### Explanation (Understanding-oriented)

Check warning on line 69 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L69

'Explanation (Understanding-oriented)' should use sentence-style capitalization.

Check warning on line 69 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L69

Use parentheses judiciously.

- **Audience goal**: Expand general understanding of a concept or highly complex feature.
- **Characteristics**: Theoretical, potentially opinionated, broad in scope.
Expand All @@ -77,15 +77,19 @@

## Tips and tricks

1. **Maintain purpose**: Before writing, assign each page a specific content type and make it top of mind in the doc throughout your writing.
1. **Maintain purpose**: Before writing, assign each page a specific content type and make it top of mind in the doc throughout your writing.

Check warning on line 80 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L80

Use 'media type' instead of 'content type'.
2. **Consider content freshness**: Regardless of content type, try to optimize for evergreen documentation. If something represents a moment in time of what a feature looks like on a specific date, it's probably better suited for a changelog or blog post than in your documentation. Or if something changes very frequently avoid putting it in your docs.

Check warning on line 81 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L81

Use 'media type' instead of 'content type'.
3. **Think like your users**: Consider different user personas when organizing content. See [Understand your audience](/guides/understand-your-audience) for more information.
4. **Use templates**: Start with [content templates](/guides/content-templates) that provide the basic structure for each content type.

Check warning on line 83 in guides/content-types.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/content-types.mdx#L83

Use 'media type' instead of 'content type'.

While the Diátaxis framework provides a starting point, successful documentation requires contextual adaptation to your product. Start by understanding the framework's principles, then adjust them to serve your users' needs.

## Related pages

<CardGroup cols={2}>
<Card title="Content templates" icon="file-code" href="/guides/content-templates">
Copy and modify templates for each content type.
</Card>
<Card title="Style and tone" icon="pen" href="/guides/style-and-tone">
Write effective documentation with consistent style.
</Card>
Expand Down
1 change: 1 addition & 0 deletions guides/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

- [Accessibility](/guides/accessibility): Make your docs accessible to as many users as possible.
- [Content types](/guides/content-types): Choose the right format for tutorials, how-tos, references, and explanations.
- [Content templates](/guides/content-templates): Copy and modify templates for each content type.

Check warning on line 33 in guides/index.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

guides/index.mdx#L33

Use 'media type' instead of 'content type'.
- [Improve your docs](/guides/improving-docs): Use data and feedback to continuously improve your documentation.
- [Maintenance](/guides/maintenance): Keep your documentation accurate and up-to-date.
- [Media](/guides/media): Add images, videos, and other media effectively while managing maintenance burden.
Expand Down