|
1 | 1 | --- |
2 | | -description: Documentation style guidelines and writing standards for Apify docs |
| 2 | +description: Cursor-specific documentation style rules for Apify docs |
3 | 3 | globs: ["sources/**/*.md", "sources/**/*.mdx"] |
4 | 4 | alwaysApply: true |
5 | 5 | --- |
6 | 6 |
|
7 | | -# Documentation Style Guidelines |
| 7 | +# Cursor-Specific Documentation Rules |
8 | 8 |
|
9 | | -## Project overview |
| 9 | +## Context-Aware Writing |
10 | 10 |
|
11 | | -This is the Apify documentation repository containing platform documentation, academy content, and API reference. The project uses Docusaurus with MDX, OpenAPI specifications, and follows Microsoft style guide principles. |
| 11 | +When editing documentation in Cursor, consider the broader context: |
12 | 12 |
|
13 | | -## Documentation structure |
| 13 | +- **Cross-references**: When mentioning other pages, use Cursor's file navigation to verify links |
| 14 | +- **Consistency checks**: Use Cursor's search to ensure terminology consistency across files |
| 15 | +- **Code examples**: Leverage Cursor's syntax highlighting and validation for code blocks |
14 | 16 |
|
15 | | -- **Platform docs**: `/sources/platform/` - Core platform features and functionality |
16 | | -- **Academy**: `/sources/academy/` - Educational content, tutorials, and courses |
17 | | -- **API reference**: `/apify-api/` - Generated from OpenAPI specifications |
| 17 | +## Cursor-Specific Workflows |
18 | 18 |
|
19 | | -## Writing style & guidelines |
| 19 | +### Using Cursor Chat for Documentation |
20 | 20 |
|
21 | | -### Language & tone |
| 21 | +- Ask Cursor to "review this documentation for clarity and completeness" |
| 22 | +- Use "explain this technical concept in simpler terms" for complex topics |
| 23 | +- Request "suggest improvements for this tutorial structure" |
22 | 24 |
|
23 | | -- Use **US English** spelling and grammar |
24 | | -- Write in **inclusive language** - avoid gendered terms and assumptions |
25 | | -- Use **active voice** whenever possible |
26 | | -- Write for a **technical audience** but keep explanations clear and accessible |
27 | | -- Avoid directional language (don't use "left/right") |
28 | | -- Be **action-oriented** in descriptions and titles |
| 25 | +### Using Cmd+K for Quick Edits |
29 | 26 |
|
30 | | -### Technical writing best practices |
| 27 | +- Use `@AGENTS.md` to reference the main documentation standards |
| 28 | +- Use `@sources/**/*.md` to search across all documentation files |
| 29 | +- Use `@apify-api/**/*.yaml` to reference API specifications |
31 | 30 |
|
32 | | -- **Start with the user's goal** - what are they trying to accomplish? |
33 | | -- **Use clear, concise sentences** - avoid unnecessary complexity |
34 | | -- **Provide context** before diving into technical details |
35 | | -- **Use consistent terminology** throughout the documentation |
36 | | -- **Include examples** for complex concepts |
37 | | -- **Structure content logically** - from basic to advanced concepts |
| 31 | +## File-Specific Guidance |
38 | 32 |
|
39 | | -### Microsoft style guide compliance |
| 33 | +### For Platform Documentation (`sources/platform/**/*.md`) |
40 | 34 |
|
41 | | -- Use **sentence case** for headings (except main titles) |
42 | | -- Use **title case** for UI elements and proper nouns |
43 | | -- **Bold** for UI elements, buttons, menu items |
44 | | -- _Italics_ for emphasis and new terms |
45 | | -- `code` for inline code, file names, and technical terms |
46 | | -- Use **numbered lists** for sequential steps |
47 | | -- Use **bullet points** for non-sequential items |
| 35 | +- Focus on practical, actionable guidance |
| 36 | +- Include real-world examples and use cases |
| 37 | +- Reference related API endpoints when applicable |
48 | 38 |
|
49 | | -## Common patterns |
| 39 | +### For Academy Content (`sources/academy/**/*.md`) |
50 | 40 |
|
51 | | -### Tutorial structure |
| 41 | +- Structure content for learning progression |
| 42 | +- Include hands-on exercises and examples |
| 43 | +- Provide clear prerequisites and next steps |
52 | 44 |
|
53 | | -1. **Introduction** - What will the user learn? |
54 | | -2. **Prerequisites** - What do they need to know/have? |
55 | | -3. **Step-by-step instructions** - Clear, numbered steps |
56 | | -4. **Code examples** - Complete, working examples |
57 | | -5. **Summary** - What they accomplished and next steps |
| 45 | +### For MDX Files |
58 | 46 |
|
59 | | -### Troubleshooting sections |
| 47 | +- Leverage Cursor's MDX syntax highlighting |
| 48 | +- Use component imports and JSX syntax appropriately |
| 49 | +- Ensure proper frontmatter formatting |
60 | 50 |
|
61 | | -- **Common issues** and solutions |
62 | | -- **Error messages** and their meanings |
63 | | -- **Debugging steps** for complex problems |
64 | | -- **Contact information** for additional help |
| 51 | +## Quality Assurance in Cursor |
65 | 52 |
|
66 | | -## Accessibility guidelines |
67 | | - |
68 | | -- Use **descriptive link text** (avoid "click here") |
69 | | -- Include **alt text** for all images |
70 | | -- Use **proper heading hierarchy** (H1 → H2 → H3) |
71 | | -- Write **clear, concise content** |
72 | | - |
73 | | -## SEO best practices |
74 | | - |
75 | | -- Use **descriptive page titles** |
76 | | -- Include **relevant keywords** naturally |
77 | | -- Write **meta descriptions** (140-160 characters) |
78 | | -- Use **proper heading structure** |
79 | | -- Include **internal links** to related content |
80 | | - |
81 | | -Remember: The goal is to help users succeed with Apify. Every piece of documentation should serve that purpose by being clear, accurate, and actionable. |
| 53 | +- Use Cursor's spell check for documentation files |
| 54 | +- Leverage Cursor's markdown preview for formatting verification |
| 55 | +- Use Cursor's search to find similar content and maintain consistency |
0 commit comments