|
1
|
# Documentation Issue Triage |
|
2
|
|
|
3
|
## Step 1 — Identify the Doc Type |
|
4
|
|
|
5
|
The user may not explicitly mention where the problem is. Use their description to infer what kind of documentation is affected, then map it to the correct fix location. |
|
6
|
|
|
7
|
**Inference guide:** |
|
8
|
|
|
9
|
| User describes... | Likely doc type | Fix location | |
|
10
|
| --- | --- | --- | |
|
11
|
| API reference content (e.g., "the product variant object description", "this endpoint's response schema", "missing field in the API docs") | API reference | See API reference section below | |
|
12
|
| A guide, tutorial, or concept page being wrong or missing | General docs | MDX file in `www/apps/` | |
|
13
|
| A reference page for a class, method, or type (e.g., "the docs for `IProductModuleService`") | Auto-generated reference | TSDoc in source code | |
|
14
|
| A UI component's prop description being wrong or missing | UI component docs | `www/apps/ui/specs/` | |
|
15
|
|
|
16
|
**For API reference issues**, distinguish further: |
|
17
|
|
|
18
|
- **Description/text is unclear or wrong** → fix is in generated OAS output: `www/utils/generated/oas-output/` |
|
19
|
- **Schema structure is wrong** (missing field, wrong type, wrong shape) → fix is in HTTP types: `packages/core/types/src/http/` |
|
20
|
|
|
21
|
When in doubt, look at the relevant source to confirm before responding. |
|
22
|
|
|
23
|
--- |
|
24
|
|
|
25
|
## Step 2 — Verify the Issue |
|
26
|
|
|
27
|
Read the relevant file(s) to confirm whether the issue is real. For each doc type: |
|
28
|
|
|
29
|
- **Auto-generated references** → Check the TSDoc comments in the relevant source file under `packages/` |
|
30
|
- **API reference descriptions** → Check `www/utils/generated/oas-output/` and/or the source code if the description originates there |
|
31
|
- **API reference schema** → Check `packages/core/types/src/http/` for the relevant type definition |
|
32
|
- **UI component props** → Check `www/apps/ui/specs/` and/or the component source under `packages/design-system/` |
|
33
|
- **General MDX docs** → Read the MDX file directly in `www/apps/` |
|
34
|
|
|
35
|
Always look at the underlying source code (under `packages/`) when the generated output is the symptom but the root cause may be upstream. |
|
36
|
|
|
37
|
--- |
|
38
|
|
|
39
|
## Step 3 — Respond |
|
40
|
|
|
41
|
### Issue is VALID |
|
42
|
|
|
43
|
Add a comment confirming the issue and indicating where the fix should go. Then add the `good first issue` label. |
|
44
|
|
|
45
|
**Comment template — valid doc issue:** |
|
46
|
|
|
47
|
```markdown |
|
48
|
Thanks for pointing this out! You're right that the documentation [is missing / has incorrect information about / is unclear about] [topic]. |
|
49
|
|
|
50
|
[Include the fix location guidance below if it's non-obvious to contributors] |
|
51
|
|
|
52
|
This is a great opportunity for a community contribution — we'd welcome a PR! Check out our [docs contribution guidelines](https://docs.medusajs.com/learn/resources/contribution-guidelines/docs) to get started. |
|
53
|
``` |
|
54
|
|
|
55
|
**Fix location wording by doc type:** |
|
56
|
|
|
57
|
- **Auto-generated references:** "The reference docs are auto-generated from TSDoc comments. The fix should be made in the TSDoc comments of [relevant source file]." |
|
58
|
- **API reference descriptions:** "The API reference is generated from OpenAPI specs. The description fix should be made in `www/utils/generated/oas-output/`." |
|
59
|
- **API reference schema:** "The schema structure comes from the HTTP types. The fix should be made in `packages/core/types/src/http/`." |
|
60
|
- **UI component props:** "The component prop descriptions come from the component specs. The fix should be made in `www/apps/ui/specs/`." |
|
61
|
- **General MDX docs:** No special routing needed. |
|
62
|
|
|
63
|
```bash |
|
64
|
bash scripts/labels.sh <issue_number> add good first issue |
|
65
|
``` |
|
66
|
|
|
67
|
--- |
|
68
|
|
|
69
|
### Issue is NOT valid |
|
70
|
|
|
71
|
Add a comment explaining what the docs actually say or why the report is inaccurate, then close the issue. |
|
72
|
|
|
73
|
**Comment template — not a valid doc issue:** |
|
74
|
|
|
75
|
```markdown |
|
76
|
Thanks for the report! After reviewing the documentation, [explanation of why the docs are actually correct / where the correct information is]. |
|
77
|
|
|
78
|
[Link to the relevant docs section if helpful] |
|
79
|
|
|
80
|
I'm going to close this, but please feel free to reopen if you believe something is still unclear or incorrect. |
|
81
|
``` |
|
82
|
|
|
83
|
```bash |
|
84
|
bash scripts/close_issue.sh <issue_number> |
|
85
|
``` |