|
1
|
# User Guide Style Guide |
|
2
|
|
|
3
|
The `user-guide` project (`www/apps/user-guide/`) covers how non-technical admin users perform tasks in the Medusa dashboard (`packages/admin/dashboard`). |
|
4
|
|
|
5
|
## Audience |
|
6
|
|
|
7
|
The user guide is for store operators and merchants, not developers. Assume the reader: |
|
8
|
- Has no coding knowledge |
|
9
|
- Manages the store through the Medusa admin UI |
|
10
|
- Needs step-by-step UI instructions |
|
11
|
|
|
12
|
## Page Structure |
|
13
|
|
|
14
|
```mdx |
|
15
|
--- |
|
16
|
sidebar_label: "Manage Products" |
|
17
|
tags: |
|
18
|
- user guide |
|
19
|
- product |
|
20
|
products: |
|
21
|
- product |
|
22
|
--- |
|
23
|
|
|
24
|
export const metadata = { |
|
25
|
title: `Manage Products in Medusa Admin`, |
|
26
|
} |
|
27
|
|
|
28
|
# {metadata.title} |
|
29
|
|
|
30
|
In this guide, you'll learn how to manage products in the Medusa admin. |
|
31
|
|
|
32
|
## Overview |
|
33
|
|
|
34
|
[What this section covers — 1-2 sentences] |
|
35
|
|
|
36
|
--- |
|
37
|
|
|
38
|
## Create a Product |
|
39
|
|
|
40
|
To create a new product: |
|
41
|
|
|
42
|
1. Go to the **Products** section from the sidebar. |
|
43
|
2. Click the **Create** button in the top-right corner. |
|
44
|
3. Fill in the product details. |
|
45
|
4. Click **Save**. |
|
46
|
|
|
47
|
--- |
|
48
|
|
|
49
|
## Edit a Product |
|
50
|
|
|
51
|
... |
|
52
|
``` |
|
53
|
|
|
54
|
## Frontmatter |
|
55
|
|
|
56
|
Always include: |
|
57
|
- `sidebar_label` — short label shown in navigation |
|
58
|
- `tags` — always include `user guide` and the domain tag (e.g. `product`) |
|
59
|
- `products` — list of product domains covered (e.g. `product`, `order`, `customer`) |
|
60
|
|
|
61
|
## Writing Style |
|
62
|
|
|
63
|
- **Task-based titles**: "Manage Orders", not "Orders" |
|
64
|
- **Imperative instructions**: "Click Save", "Enter the product name", "Select a region" |
|
65
|
- **Present tense**: "The order appears in the list", not "The order will appear" |
|
66
|
- **Bold UI elements**: `**Products**`, `**Save**`, `**Create**` |
|
67
|
- **No code**: This project never contains TypeScript or JavaScript code examples |
|
68
|
- **No developer concepts**: Don't mention modules, workflows, APIs, or container resolution |
|
69
|
|
|
70
|
## Screenshots |
|
71
|
|
|
72
|
Screenshots are Cloudinary-hosted images. DO NOT add images. Images can be added manually later if needed. |
|
73
|
|
|
74
|
## Navigation |
|
75
|
|
|
76
|
The sidebar is in `www/apps/user-guide/sidebar.mjs`. When adding a new page: |
|
77
|
|
|
78
|
```javascript |
|
79
|
{ |
|
80
|
type: "link", |
|
81
|
path: "/<section>/<topic>", |
|
82
|
title: "Page Title", |
|
83
|
} |
|
84
|
``` |
|
85
|
|
|
86
|
Some sections use `autogenerate_path` — check if your target section uses that pattern before manually adding entries. |
|
87
|
|
|
88
|
## When to update user-guide |
|
89
|
|
|
90
|
- A new page or screen is added to the Medusa admin dashboard |
|
91
|
- An existing admin workflow changes (new steps, different UI flow) |
|
92
|
- A new feature becomes available to users in the admin (e.g. new order action, new product field) |
|
93
|
- A button, form, or flow is renamed or reorganized |
|
94
|
|
|
95
|
## What NOT to put in user-guide |
|
96
|
|
|
97
|
- Developer instructions (code, API calls, CLI commands) |
|
98
|
- Architecture explanations |
|
99
|
- Module configuration |
|
100
|
- Anything not visible in the Medusa admin UI |